Created attachment 513738 [details] complete build log libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wstrict-prototypes -pipe -O2 -pipe -march=native -O2 -pipe -march=native -Wl,-O1 -o .libs/svcgssd svcgssd-context.o svcgssd-context_mit.o svcgssd-context_heimdal.o svcgssd-context_lucid.o svcgssd-gss_util.o svcgssd-gss_oids.o svcgssd-gss_names.o svcgssd-err_util.o svcgssd-svcgssd.o svcgssd-svcgssd_main_loop.o svcgssd-svcgssd_mech2file.o svcgssd-svcgssd_proc.o svcgssd-svcgssd_krb5.o -Wl,--as-needed ../../support/nfs/.libs/libnfs.a ../../support/nfsidmap/.libs/libnfsidmap.so -ldl -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -ltirpc -lresolv ../../support/nfs/.libs/libnfs.a(cacheio.o): In function `cache_flush': cacheio.c:(.text+0x5c7): undefined reference to `etab' collect2: error: ld returned 1 exit status
Created attachment 513740 [details] more info -> % emerge -pqv '=net-fs/nfs-utils-2.3.1-r1::gentoo' [ebuild U ] net-fs/nfs-utils-2.3.1-r1 [2.2.2_rc1_p20171107] USE="caps ipv6 kerberos ldap libmount n fsidmap nfsv4 nfsv41 tcpd uuid -nfsdcld (-selinux)"
Created attachment 514456 [details, diff] nfs-utils-2.3.1-etab.patch Direct use of filenames declared as macros in nfslib.h was encapsulated in the etab variable. The variable is declared as extern in the sources of all library functions that use it. The utilities using those functions in turn declare and initialise, as well as subsequently destroy, the variable. But some utilities, at least svcgssd, have no use for etab, but use the library. Declaring the etab variable in nfslib.h — still leaving its initialisation to the programs that actually use it — seems to solve the problem.
Applied the patch and is working like a charm. Thanks
Upstream fix: http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=1451d7585bf1c622658ccc04abac7e79ffe40263
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcbc3b44c131b7b9e2c6f43243f3ca74309942fa commit dcbc3b44c131b7b9e2c6f43243f3ca74309942fa Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2018-01-18 16:45:13 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2018-01-18 16:45:13 +0000 net-fs/nfs-utils: replace svcgssd patch with upstream version Closes: https://bugs.gentoo.org/643848 Package-Manager: Portage-2.3.19_p11, Repoman-2.3.6_p45 ...s-utils-2.3.1-svcgssd_undefined_reference.patch | 37 +++++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-)