Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641912 - =net-fs/nfs-utils-2.3.1 failes with "error: undefined reference to 'conf_init'"
Summary: =net-fs/nfs-utils-2.3.1 failes with "error: undefined reference to 'conf_init'"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-21 10:53 UTC by Steffen Hau
Modified: 2017-12-29 13:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Hau 2017-12-21 10:53:01 UTC
Excerpt from build.log:

/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wstrict-prototypes  -pipe -march=native -O3 -pipe -flto=5 -fuse-linker-plugin    -march=native -O3 -pipe -flto=5 -fuse-linker-plugin  -march=native -O3 -pipe -flto=5 -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,--icf=safe -o 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 ../../support/nfs/libnfs.la ../../support/nfsidmap/libnfsidmap.la  -L/usr/lib64 -lkrb5 -lk5crypto -lcom_err -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -ltirpc -lresolv
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wstrict-prototypes -pipe -march=native -O3 -pipe -flto=5 -fuse-linker-plugin -march=native -O3 -pipe -flto=5 -fuse-linker-plugin -march=native -O3 -pipe -flto=5 -fuse-linker-plugin -Wl,-O1 -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,--icf=safe -o gssd gssd-context.o gssd-context_mit.o gssd-context_heimdal.o gssd-context_lucid.o gssd-gss_util.o gssd-gss_oids.o gssd-gss_names.o gssd-err_util.o gssd-gssd.o gssd-gssd_proc.o gssd-krb5_util.o  -Wl,--as-needed ../../support/nfs/.libs/libnfs.a -levent -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -ltirpc -lpthread -lresolv
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wstrict-prototypes -pipe -march=native -O3 -pipe -flto=5 -fuse-linker-plugin -march=native -O3 -pipe -flto=5 -fuse-linker-plugin -march=native -O3 -pipe -flto=5 -fuse-linker-plugin -Wl,-O1 -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,--icf=safe -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
/home/gentoo/tmp/portage/net-fs/nfs-utils-2.3.1/temp/cc21Vdlg.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'conf_init'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:602: svcgssd] Error 1



http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=8d9bf479441d9d7a44a86b69026a7e9d431d3ade

This commit forgot to rename conf_init in utils/gssd/svcgssd.c.

--- a/utils/gssd/svcgssd.c.orig 2017-12-20 16:40:36.000000000 +0100
+++ b/utils/gssd/svcgssd.c      2017-12-20 16:40:36.000000000 +0100
@@ -101,7 +101,7 @@
        char *principal = NULL;
        char *s;

-       conf_init(NFS_CONFFILE); 
+       conf_init_file(NFS_CONFFILE); 

        s = conf_get_str("svcgssd", "principal");
        if (!s)

This small patch fixes the issue.



emerge --info nfs-utils
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/systemd, gcc-7.2.0, glibc-2.26-r3, 4.14.6-HAUIHAU x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.6-HAUIHAU-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.4.1
KiB Mem:    20309880 total,   6316996 free
KiB Swap:   20971516 total,  20970492 free
Timestamp of repository gentoo: Thu, 21 Dec 2017 07:30:01 +0000
Head commit of repository gentoo: d9ffb1067a3eafc7354d898de9e4421cb61476cb
sh bash 4.4_p12
ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

hauihau
    location: /usr/local/portage/hauihau
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -flto=5 -fuse-linker-plugin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -pipe -flto=5 -fuse-linker-plugin -fno-delete-null-pointer-checks -flifetime-dse=1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going=y --quiet-build=y --quiet-fail=y --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-march=native -O3 -pipe -flto=5 -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,--icf=safe"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/home/gentoo/tmp/"
USE="X a52 aac aalib acl alsa amd64 avx avx2 bash-completion berkdb bluetooth bluray branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt cups curl cxx dbus dga dri dts dv dvd egl encode exif ffmpeg flac fontconfig fortran ftp gd gdbm gif gmp gstreamer iconv icu imagemagick imlib ipv6 jpeg jpeg2k lame latex libcaca libnotify libsamplerate lzma lzo mad matroska mmx mmxext mng modules mp3 mpeg mtp multilib musepack ncurses networkmanager nls nptl nsplugin ogg openal opengl openmp pam pcre pdf png policykit pulseaudio qt5 quicktime readline seccomp session sndfile spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 svg syslog systemd tcpd theora threads tiff truetype udev unicode usb v4l vaapi vcd vim-syntax vorbis wavpack wayland webkit x264 xattr xcb xcomposite xinerama xml xmp xorg xosd xpm xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-fs/nfs-utils-2.2.2_rc1_p20171107::gentoo was built with the following:
USE="caps ipv6 kerberos libmount nfsidmap nfsv4 tcpd uuid -ldap -nfsdcld -nfsv41 (-selinux)" ABI_X86="(64)"
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-12-21 12:44:35 UTC
Have you sent this fix to upstream by any chance?
Comment 2 Steffen Hau 2017-12-21 14:11:26 UTC
I've informed the commiter and he replied they will fix it. In the meantime you could add my small patch until a fixed version is available.
Comment 3 Larry the Git Cow gentoo-dev 2017-12-21 15:56:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c748c2b6705c7c7137e3edb9811fa71d7629631

commit 2c748c2b6705c7c7137e3edb9811fa71d7629631
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2017-12-21 15:56:06 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2017-12-21 15:56:38 +0000

    net-fs/nfs-utils: Fixed undefined reference in svcgssd.
    
    Closes: https://bugs.gentoo.org/641912
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/nfs-utils-2.3.1-svcgssd_undefined_reference.patch | 13 +++++++++++++
 net-fs/nfs-utils/nfs-utils-2.3.1.ebuild                     |  1 +
 2 files changed, 14 insertions(+)
Comment 4 Juergen Rose 2017-12-29 13:51:37 UTC
nfs-utils-2.3.1-r1 fails as well with undefined reference to `etab'.