Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643848 - net-fs/nfs-utils-2.3.1-r1: cacheio.c:(.text+0x5c7): undefined reference to `etab'
Summary: net-fs/nfs-utils-2.3.1-r1: cacheio.c:(.text+0x5c7): undefined reference to `e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-01-08 02:20 UTC by Samuel Bernardo
Modified: 2018-01-18 16:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
complete build log (build.log,98.89 KB, text/x-log)
2018-01-08 02:20 UTC, Samuel Bernardo
Details
more info (nfs-utils-2.3.1-r1.info,9.78 KB, text/plain)
2018-01-08 02:24 UTC, Samuel Bernardo
Details
nfs-utils-2.3.1-etab.patch (nfs-utils-2.3.1-etab.patch,2.64 KB, patch)
2018-01-12 10:46 UTC, Honza Macháček
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2018-01-08 02:20:25 UTC
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
Comment 1 Samuel Bernardo 2018-01-08 02:24:30 UTC
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)"
Comment 2 Honza Macháček 2018-01-12 10:46:25 UTC
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.
Comment 3 Samuel Bernardo 2018-01-18 00:09:31 UTC
Applied the patch and is working like a charm.

Thanks
Comment 5 Larry the Git Cow gentoo-dev 2018-01-18 16:45:48 UTC
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(-)