Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657974 - =net-libs/libnsl-1.2.0 fails to build - undefined reference to `key_secretkey_is_set'
Summary: =net-libs/libnsl-1.2.0 fails to build - undefined reference to `key_secretkey...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-12 13:17 UTC by Jaco Kroon
Modified: 2018-11-14 16:22 UTC (History)
3 users (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 Jaco Kroon 2018-06-12 13:17:56 UTC
# emerge -1av libnsl

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/libnsl-1.2.0:0/2::gentoo  0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

...
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -W -Wall -Wbad-function-cast -Wcast-align -Winline -Wnested-externs -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -D_REENTRANT=1 -O2 -march=native -pipe --param ggc-min-expand=20 --param ggc-min-heapsize=32768 -version-info 2:0:0 -Wl,--no-undefined -Wl,--version-script=/var/tmp/portage/net-libs/libnsl-1.2.0/work/libnsl-1.2.0/src/libnsl.map -Wl,-O1 -Wl,--as-needed -o libnsl.la -rpath /usr/lib64 yp_xdr.lo do_ypcall.lo ypprot_err.lo yp_master.lo yp_maplist.lo yp_order.lo yp_first.lo yp_next.lo yp_match.lo yperr_string.lo ypbinderr_string.lo yp_get_default_domain.lo taddr2host.lo taddr2ipstr.lo taddr2port.lo nis_add.lo nis_addmember.lo nis_callback.lo nis_call.lo nis_checkpoint.lo nis_clone_dir.lo nis_clone_obj.lo nis_clone_res.lo nis_creategroup.lo nis_defaults.lo nis_destroygroup.lo nis_domain_of.lo nis_domain_of_r.lo nis_error.lo nis_file.lo nis_findserv.lo nis_free.lo nis_getservlist.lo nis_ismember.lo nis_local_names.lo nis_lookup.lo nis_mkdir.lo nis_modify.lo nis_ping.lo nis_print.lo nis_print_group_entry.lo nis_remove.lo nis_removemember.lo nis_rmdir.lo nis_server.lo nis_subr.lo nis_table.lo nis_util.lo nis_verifygroup.lo nis_xdr.lo -ltirpc  
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/yp_xdr.o .libs/do_ypcall.o .libs/ypprot_err.o .libs/yp_master.o .libs/yp_maplist.o .libs/yp_order.o .libs/yp_first.o .libs/yp_next.o .libs/yp_match.o .libs/yperr_string.o .libs/ypbinderr_string.o .libs/yp_get_default_domain.o .libs/taddr2host.o .libs/taddr2ipstr.o .libs/taddr2port.o .libs/nis_add.o .libs/nis_addmember.o .libs/nis_callback.o .libs/nis_call.o .libs/nis_checkpoint.o .libs/nis_clone_dir.o .libs/nis_clone_obj.o .libs/nis_clone_res.o .libs/nis_creategroup.o .libs/nis_defaults.o .libs/nis_destroygroup.o .libs/nis_domain_of.o .libs/nis_domain_of_r.o .libs/nis_error.o .libs/nis_file.o .libs/nis_findserv.o .libs/nis_free.o .libs/nis_getservlist.o .libs/nis_ismember.o .libs/nis_local_names.o .libs/nis_lookup.o .libs/nis_mkdir.o .libs/nis_modify.o .libs/nis_ping.o .libs/nis_print.o .libs/nis_print_group_entry.o .libs/nis_remove.o .libs/nis_removemember.o .libs/nis_rmdir.o .libs/nis_server.o .libs/nis_subr.o .libs/nis_table.o .libs/nis_util.o .libs/nis_verifygroup.o .libs/nis_xdr.o   -Wl,--as-needed -ltirpc  -O2 -march=native -Wl,--no-undefined -Wl,--version-script=/var/tmp/portage/net-libs/libnsl-1.2.0/work/libnsl-1.2.0/src/libnsl.map -Wl,-O1   -Wl,-soname -Wl,libnsl.so.2 -o .libs/libnsl.so.2.0.0
.libs/nis_callback.o: In function `__nis_create_callback':
nis_callback.c:(.text+0x711): undefined reference to `key_secretkey_is_set'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:479: libnsl.la] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-libs/libnsl-1.2.0/work/libnsl-1.2.0-abi_x86_64.amd64/src'
make[1]: *** [Makefile:486: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/libnsl-1.2.0/work/libnsl-1.2.0-abi_x86_64.amd64'
make: *** [Makefile:395: all] Error 2
 * ERROR: net-libs/libnsl-1.2.0::gentoo failed (compile phase):
 *   emake failed

# emerge --info =net-libs/libnsl-1.2.0
Portage 2.3.40 (python 2.7.14-final-0, default/linux/amd64/17.0/no-multilib, gcc-6.4.0, glibc-2.26-r7, 4.14.13-uls x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.13-uls-x86_64-AMD_Opteron_63xx_class_CPU-with-gentoo-2.4.1
KiB Mem:     2044516 total,    968472 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 11 Jun 2018 23:00:01 +0000
Head commit of repository gentoo: 3f5d05a2e241db8ae7f5804e349943a94344ed2a
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.8::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://ftp.is.co.za/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe --param ggc-min-expand=20 --param ggc-min-heapsize=32768"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe --param ggc-min-expand=20 --param ggc-min-heapsize=32768"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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="en_ZA.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en af"
MAKEOPTS="-j1"
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="/var/tmp"
USE="acl acpi amd64 apache2 bash-completion bzip2 cli crypt cxx diskio dri g729 gzip iconv iproute2 ipv6 ithreads jpeg kpathsea latin1 libtirpc logrotate mad modules mysql ncurses nptl nptlonly openmp pam pcre png readline seccomp sox ssl threads xattr xetex zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias autoindex deflate dav dir env expires headers include info mime mime_magic negotiation rewrite status vhost_alias filter authz_core authz_host auth_basic auth_digest authz_default authz_user authn_core dav_fs dav_lock cgi unixd log_config socache_shmcb proxy proxy_fcgi version" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0 php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jonas Stein gentoo-dev 2018-06-14 21:20:46 UTC
 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Please work on these items and retry.
Comment 2 Jaco Kroon 2018-06-15 08:51:11 UTC
Hi Jonas,

Those three news items were actually checked before finalizing the bug report, and they did not relate.

If there is a specific news item you'd like to draw my attention to I'll be happy to recheck myself, according to my records those three news items are the only items for 2018 and their subjects are as follows:

  [45]     2018-01-30  Portage rsync tree verification
  [46]     2018-03-13  Portage rsync tree verification unstable
  [47]     2018-05-22  Python 3.6 to become the default target

Looking back at 2017 and 2016 I don't see any subjects jumping out at me that could relate either.

Kind Regards,
Jaco
Comment 3 Jonas Stein gentoo-dev 2018-06-23 23:18:18 UTC
is it related to this? https://bugs.alpinelinux.org/issues/7041
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2018-06-23 23:25:05 UTC
(In reply to Jonas Stein from comment #3)
> is it related to this? https://bugs.alpinelinux.org/issues/7041

Could be, yes. However, I remember fixing that in Gentoo...

Jaco, what's your net-libs/libtirpc version?
Comment 5 Jaco Kroon 2018-06-25 08:36:11 UTC
Hey,

I can't remember on which of a number of machines I've encountered this, perhaps just add a minimum version to the libtirpc DEPEND in the ebuild ... ?

On the test machine I just hoped I could duplicate this on libnsl-1.2.0 built correctly, net-libs/libtirpc-1.0.2-r1:0/3 and sys-libs/glibc-2.26-r7:2.2 - based on that I'd say you can possibly close this bug, if (when rather) I bump into this again in the next week or two as there are still a number of machines to update I'll remember to also update libtirpc first.  I that doesn't fix it I'll re-open.
Comment 6 Maciej S. Szmigiero 2018-07-02 16:11:36 UTC
I have hit the same issue on an old machine with net-libs/libtirpc-1.0.1
installed.

Updating net-libs/libtirpc let net-libs/libnsl-1.2.0 build successfully.
Comment 7 Nikolay Antonov 2018-08-06 21:15:26 UTC
Same issue. Updating net-libs/libtirpc from 1.0.1 to 1.0.2-r1 helped.
Comment 8 Larry the Git Cow gentoo-dev 2018-11-14 16:22:33 UTC
The bug has been closed via the following commit(s):

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

commit c4071644ee1f138527ad2293c514053f42bf60de
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2018-11-14 16:14:34 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2018-11-14 16:22:27 +0000

    net-libs/libnsl: update min libtirpc dep
    
    libtirpc-1.0.2 added the key_secretkey_is_set symbol needed by
    libnsl-1.2.0. Update the dependency to ensure deptree is ordered
    correctly for upgrade.
    
    Fixes: https://bugs.gentoo.org/657974
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.10

 net-libs/libnsl/libnsl-1.2.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)