When I try to build 1.1.0 it gives this error message inside of
./mountd:
[root mountd]$ make
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -pipe -g -O2
-o mountd mountd-mountd.o mountd-mount_dispatch.o mountd-auth.o
mountd-rmtab.o mountd-cache.o mountd-svc_run.o mountd-fsloc.o
../../support/export/libexport.a ../../support/nfs/libnfs.a
../../support/misc/libmisc.a -lwrap -lblkid
gcc -Wall -pipe -g -O2 -o mountd mountd-mountd.o mountd-mount_dispatch.o
mountd-auth.o mountd-rmtab.o mountd-cache.o mountd-svc_run.o
mountd-fsloc.o ../../support/export/libexport.a
../../support/nfs/libnfs.a ../../support/misc/libmisc.a -lwrap -lblkid
/usr/lib/libblkid.a(probe.o): In function `set_uuid':
/usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:128: undefined reference
to `uuid_is_null'
/usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:129: undefined reference
to `uuid_unparse'
/usr/lib/libblkid.a(probe.o): In function `probe_ext3':
/usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:176: undefined reference
to `uuid_is_null'
collect2: ld returned 1 exit status
make: *** [mountd] Error 1
I suspect I may have built e2fsprogs or uuid incorrectly? 1.0.6 does
not have this link error.
It's on an RHEL3 Update 5 system.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
On Wednesday August 15, [email protected] wrote:
> When I try to build 1.1.0 it gives this error message inside of
> ./mountd:
>
> [root mountd]$ make
> /bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -pipe -g -O2
> -o mountd mountd-mountd.o mountd-mount_dispatch.o mountd-auth.o
> mountd-rmtab.o mountd-cache.o mountd-svc_run.o mountd-fsloc.o
> ../../support/export/libexport.a ../../support/nfs/libnfs.a
> ../../support/misc/libmisc.a -lwrap -lblkid
> gcc -Wall -pipe -g -O2 -o mountd mountd-mountd.o mountd-mount_dispatch.o
> mountd-auth.o mountd-rmtab.o mountd-cache.o mountd-svc_run.o
> mountd-fsloc.o ../../support/export/libexport.a
> ../../support/nfs/libnfs.a ../../support/misc/libmisc.a -lwrap -lblkid
> /usr/lib/libblkid.a(probe.o): In function `set_uuid':
> /usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:128: undefined reference
> to `uuid_is_null'
> /usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:129: undefined reference
> to `uuid_unparse'
> /usr/lib/libblkid.a(probe.o): In function `probe_ext3':
> /usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:176: undefined reference
> to `uuid_is_null'
> collect2: ld returned 1 exit status
> make: *** [mountd] Error 1
>
> I suspect I may have built e2fsprogs or uuid incorrectly?
Maybe... but it seems that the uuid_ function are in a separate
library: libuuid.
And while libblkid.so depends on libuuid.so, there is no similar
relationship between libblkid.a and libuuid.a. so if you are doing a
static link (which seems to be the case??) you will need to list
-luuid as well. And maybe -ldevmapper.
> 1.0.6 does not have this link error.
1.0.6 does not use libblkid.
NeilBrown
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
I tried -luuid and it has the same error:
[root mountd]$ make
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -pipe -g -O2
-o mountd mountd-mountd.o mountd-mount_dispatch.o mountd-auth.o
mountd-rmtab.o mountd-cache.o mountd-svc_run.o mountd-fsloc.o
../../support/export/libexport.a ../../support/nfs/libnfs.a
../../support/misc/libmisc.a -lwrap -lblkid -luuid
gcc -Wall -pipe -g -O2 -o mountd mountd-mountd.o mountd-mount_dispatch.o
mountd-auth.o mountd-rmtab.o mountd-cache.o mountd-svc_run.o
mountd-fsloc.o ../../support/export/libexport.a
../../support/nfs/libnfs.a ../../support/misc/libmisc.a -lwrap -lblkid
/usr/lib/libuuid.so
/usr/lib/libblkid.a(probe.o): In function `set_uuid':
/usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:128: undefined reference
to `uuid_is_null'
/usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:129: undefined reference
to `uuid_unparse'
/usr/lib/libblkid.a(probe.o): In function `probe_ext3':
/usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:176: undefined reference
to `uuid_is_null'
collect2: ld returned 1 exit status
make: *** [mountd] Error 1
ldd of /usr/lib/libuuid.so:
[root mountd]$ ldd /usr/lib/libuuid.so
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a95798000)
/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
(0x0000002a95556000)
Is RHEL3 Update 5 glibc broken?
-----Original Message-----
From: Neil Brown [mailto:[email protected]]
Sent: Wednesday, August 15, 2007 4:41 PM
To: Mitch Sako
Cc: [email protected]
Subject: Re: [NFS] Compilation Error nfs-utils-1.1.0
On Wednesday August 15, [email protected] wrote:
> When I try to build 1.1.0 it gives this error message inside of
> ./mountd:
>
> [root mountd]$ make
> /bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -pipe -g -O2
> -o mountd mountd-mountd.o mountd-mount_dispatch.o mountd-auth.o
> mountd-rmtab.o mountd-cache.o mountd-svc_run.o mountd-fsloc.o
> ../../support/export/libexport.a ../../support/nfs/libnfs.a
> ../../support/misc/libmisc.a -lwrap -lblkid
> gcc -Wall -pipe -g -O2 -o mountd mountd-mountd.o
mountd-mount_dispatch.o
> mountd-auth.o mountd-rmtab.o mountd-cache.o mountd-svc_run.o
> mountd-fsloc.o ../../support/export/libexport.a
> ../../support/nfs/libnfs.a ../../support/misc/libmisc.a -lwrap -lblkid
> /usr/lib/libblkid.a(probe.o): In function `set_uuid':
> /usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:128: undefined reference
> to `uuid_is_null'
> /usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:129: undefined reference
> to `uuid_unparse'
> /usr/lib/libblkid.a(probe.o): In function `probe_ext3':
> /usr/local/e2fsprogs-1.40.2/lib/blkid/probe.c:176: undefined reference
> to `uuid_is_null'
> collect2: ld returned 1 exit status
> make: *** [mountd] Error 1
>
> I suspect I may have built e2fsprogs or uuid incorrectly?
Maybe... but it seems that the uuid_ function are in a separate
library: libuuid.
And while libblkid.so depends on libuuid.so, there is no similar
relationship between libblkid.a and libuuid.a. so if you are doing a
static link (which seems to be the case??) you will need to list
-luuid as well. And maybe -ldevmapper.
> 1.0.6 does not have this link error.
1.0.6 does not use libblkid.
NeilBrown
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs