Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391817 - sys-apps/busybox-1.19.3 - util-linux/lib.a(mount.o): In function `xdr_fhstatus': mount.c:(.text.xdr_fhstatus+0x16): undefined reference to `xdr_u_int'
Summary: sys-apps/busybox-1.19.3 - util-linux/lib.a(mount.o): In function `xdr_fhstatu...
Status: RESOLVED DUPLICATE of bug 379481
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 21:59 UTC by Guy
Modified: 2011-11-29 20:17 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/sys-apps/busybox-1.19.3/temp/build.log (build.log,420.28 KB, text/plain)
2011-11-27 09:05 UTC, Juergen Rose
Details
busybox build log (busybox.log,424.64 KB, text/plain)
2011-11-27 11:09 UTC, Bart Kus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2011-11-24 21:59:40 UTC
busybox fails:

  LINK    busybox_unstripped
Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static -Wl,-O1 -Wl,--as-needed -Wl,-O1 -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group
==========
networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x46): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0xe3): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xbd): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x166): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0xdf): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x41): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x70): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util-linux/lib.a(mount.o): In function `xdr_fhstatus':
mount.c:(.text.xdr_fhstatus+0x16): undefined reference to `xdr_u_int'
mount.c:(.text.xdr_fhstatus+0x44): undefined reference to `xdr_opaque'
util-linux/lib.a(mount.o): In function `xdr_dirpath':
mount.c:(.text.xdr_dirpath+0x1c): undefined reference to `xdr_string'
util-linux/lib.a(mount.o): In function `xdr_mountres3':
mount.c:(.text.xdr_mountres3+0x16): undefined reference to `xdr_enum'
mount.c:(.text.xdr_mountres3+0x4b): undefined reference to `xdr_bytes'
mount.c:(.text.xdr_mountres3+0x61): undefined reference to `xdr_int'
mount.c:(.text.xdr_mountres3+0x81): undefined reference to `xdr_array'
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0x953): undefined reference to `pmap_getmaps'
mount.c:(.text.nfsmount+0xa2f): undefined reference to `clnttcp_create'
mount.c:(.text.nfsmount+0xa3e): undefined reference to `authunix_create_default'
mount.c:(.text.nfsmount+0xb93): undefined reference to `bindresvport'
mount.c:(.text.nfsmount+0xbe4): undefined reference to `pmap_getport'
mount.c:(.text.nfsmount+0xd4e): undefined reference to `clntudp_create'
mount.c:(.text.nfsmount+0xed1): undefined reference to `clnt_sperror'
mount.c:(.text.nfsmount+0xf2a): undefined reference to `clnt_sperror'
mount.c:(.text.nfsmount+0x105b): undefined reference to `clnt_spcreateerror'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
emake failed

This is true for both x86 and amd64.

Not that it means anything, I note during this world update several toolchain packages were also (successfully) updated including 'glibc' and 'gcc-config'. I can't help but wonder if I need to do something toolchain related before updating busybox.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-26 17:23:58 UTC
1) Please post your `emerge --info' output.
2) Please post your `emerge -vpq sys-apps/busybox' output too.
Comment 2 Juergen Rose 2011-11-27 09:03:59 UTC
I have the same issue. Could it be, that it is connected to glibc-2.14.1?


root@impala:/usr/local/portage/sci-electronics/fritzing(218)# emerge --info =sys-apps/busybox-1.19.3
Portage 2.1.10.37 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r0, 3.1.0-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.0-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1
Timestamp of tree: Thu, 24 Nov 2011 23:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3::sage-on-gentoo, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1
Repositories: gentoo x11 lordvan bicatali science sage-on-gentoo java-overlay sunrise x-portage x-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /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=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/lordvan /var/lib/layman/bicatali /var/lib/layman/science /var/lib/layman/sage-on-gentoo /var/lib/layman/java-overlay /var/lib/layman/sunrise /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac abiword accessibility acl acpi admin afs alsa amd64 amrr ao apache2 applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth boo boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras fame ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib glpk gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 imagemagick imap innodb inotify ipod ipv6 ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lm_sensors lua lzo mad mail maildir mapnik math matroska mkl mmx mmxext mng modules mono moonlight motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ogdi ogg ole openexr opengl openmp overview pam pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl science sdk sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4a ssl subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter v4l2 vaapi video virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets xattr xcb xemacs xext xft xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nouveau vesa" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

sys-apps/busybox-1.19.3 was built with the following:
USE="ipv6 mdev (multilib) nfs pam -make-symlinks -savedconfig (-selinux) -static"
CFLAGS="-march=amdfam10 -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=amdfam10 -O2 -pipe -fno-strict-aliasing"



root@impala:/usr/local/portage/sci-electronics/fritzing(219)# emerge -pqv =sys-apps/busybox-1.19.3
[ebuild   R   ] sys-apps/busybox-1.19.3  USE="ipv6 mdev nfs pam -make-symlinks -savedconfig (-selinux) -static"
Comment 3 Juergen Rose 2011-11-27 09:05:31 UTC
Created attachment 293919 [details]
/var/tmp/portage/sys-apps/busybox-1.19.3/temp/build.log
Comment 4 Bart Kus 2011-11-27 11:09:28 UTC
Created attachment 293925 [details]
busybox build log

Confirming problem with busybox here as well:


jo ~ # emerge --info
Portage 2.1.10.38 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r0, 2.6.38-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r2-x86_64-Six-Core_AMD_Opteron-tm-_Processor_8439_SE-with-gentoo-2.1
Timestamp of tree: Sun, 27 Nov 2011 09:45:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=barcelona -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-mtune=barcelona -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write=y --quiet-build=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j26"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X X509 acl acpi aliaschain amd64 apache2 apm async automount bash-completion berkdb bgpclassless bindist bzip2 cairo cdda cgi clamav cli cnamefix cpudetection crypt cups curl cxx daemon dbus declarative device-mapper diskio djvu dri elf event-callback examples exif extras fat ffmpeg fix-connected-rt fontconfig fortran gcj gd gdbm gdu geoip git gpm graphviz hpn iconv imap inotify iproute2 ipv6 jpeg jpeg2k kde kerberos latex libextractor lm_sensors loop-aes milter mmap mmx mng modules mp3 mudflap multidata multilib multipath multipleip mysql ncurses network networking nfs nfsv3 nfsv4 nls nptl nptlonly offensive ogg opencore-amr opengl openmp pam parcheck pcre perl pkcs11 png policykit pop pop3d pppd profile qt3support qt4 raw readline realms roundrobin rss rtc samba semanticfix sensord server session sieve smtp snmp sockets sql sqlite sse sse2 ssl subversion svg sysfs syslog taglib tcpd threads tiff tokenizer tordns truetype unicode utp vim-syntax vorbis webinterface webkit x264 xml xmlrpc xorg xulrunner xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

jo ~ # emerge -vpq busybox
[ebuild     U ] sys-apps/busybox-1.19.3 [1.19.0] USE="ipv6 mdev nfs pam -make-symlinks -savedconfig (-selinux) -static (-debug%)"
Comment 5 Bart Kus 2011-11-29 11:22:49 UTC
The actual first compilation error is this:


util-linux/lib.a(mount.o): In function `xdr_fhstatus':
mount.c:(.text.xdr_fhstatus+0xd): undefined reference to `xdr_u_int'


Which comes from this compile line, broken out for legibility:


x86_64-pc-linux-gnu-gcc
-mtune=barcelona
-O2
-pipe
-ggdb
-fno-strict-aliasing
-Wall
-Wshadow
-Wwrite-strings
-Wundef
-Wstrict-prototypes
-Wunused
-Wunused-parameter
-Wunused-function
-Wunused-value
-Wmissing-prototypes
-Wmissing-declarations
-Wdeclaration-after-statement
-Wold-style-definition
-fno-builtin-strlen
-finline-limit=0
-ffunction-sections
-fdata-sections
-fno-guess-branch-probability
-funsigned-char
-static
-Wl,-O1
-Wl,--as-needed
-o busybox_unstripped
-Wl,--sort-common
-Wl,--sort-section,alignment
-Wl,--start-group
	applets/built-in.o
	archival/lib.a
	archival/libarchive/lib.a
	console-tools/lib.a
	coreutils/lib.a
	coreutils/libcoreutils/lib.a
	debianutils/lib.a
	e2fsprogs/lib.a
	editors/lib.a
	findutils/lib.a
	init/lib.a
	libbb/lib.a
	libpwdgrp/lib.a
	loginutils/lib.a
	mailutils/lib.a
	miscutils/lib.a
	modutils/lib.a
	networking/lib.a
	networking/libiproute/lib.a
	networking/udhcp/lib.a
	printutils/lib.a
	procps/lib.a
	runit/lib.a
	selinux/lib.a
	shell/lib.a
	sysklogd/lib.a
	util-linux/lib.a
	util-linux/volume_id/lib.a
	archival/built-in.o
	archival/libarchive/built-in.o
	console-tools/built-in.o
	coreutils/built-in.o
	coreutils/libcoreutils/built-in.o
	debianutils/built-in.o
	e2fsprogs/built-in.o
	editors/built-in.o
	findutils/built-in.o
	init/built-in.o
	libbb/built-in.o
	libpwdgrp/built-in.o
	loginutils/built-in.o
	mailutils/built-in.o
	miscutils/built-in.o
	modutils/built-in.o
	networking/built-in.o
	networking/libiproute/built-in.o
	networking/udhcp/built-in.o
	printutils/built-in.o
	procps/built-in.o
	runit/built-in.o
	selinux/built-in.o
	shell/built-in.o
	sysklogd/built-in.o
	util-linux/built-in.o
	util-linux/volume_id/built-in.o
-Wl,--end-group
-Wl,--start-group
	-lcrypt
	-lm
-Wl,--end-group


The "xdr_u_int" symbol looks to be available in the dynamic glibc, but not in the static:


jo ~ # readelf --syms /lib64/libc.so.6 | grep xdr_u_int
  1148: 000000000010bb80   101 FUNC    GLOBAL DEFAULT   12 xdr_u_int@@GLIBC_2.2.5
jo ~ # nm /usr/lib64/libc.a 2> /dev/null | grep xdr_u_int
jo ~ #


It also looks like all this is deprecated in glibc:


[quote]
commit 7b57bfe5988e476ea40934457dfd1c8a231e2391
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sat Apr 16 21:59:36 2011 -0400

    Obsolete RPC implementation in libc.

diff --git a/ChangeLog b/ChangeLog
index d376610..468799c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,77 @@
+2011-04-16  Ulrich Drepper  <drepper@gmail.com>
+
+       * Makefile: Add rules to build linkobj/libc.so.
+       * include/libc-symbols.h: Define libc_hidden_nolink.
+       * include/rpc/auth.h: Mark functions which are to be hidden.
+       * include/rpc/auth_des.h: Likewise.
+       * include/rpc/auth_unix.h: Likewise.
[...snip!...]
+       * sunrpc/xdr.c: Likewise.
+       * sunrpc/xdr_array.c: Likewise.
+       * sunrpc/xdr_float.c: Likewise.
+       * sunrpc/xdr_intXX_t.c: Likewise.
+       * sunrpc/xdr_mem.c: Likewise.
+       * sunrpc/xdr_rec.c: Likewise.
+       * sunrpc/xdr_ref.c: Likewise.
+       * sunrpc/xdr_sizeof.c: Likewise.
+       * sunrpc/xdr_stdio.c: Likewise.
[...snip!...]
 Version 2.14

+* The RPC implementation in libc is obsoleted.  Old programs keep working
+  but new programs cannot be linked with the routines in libc anymore.
+  Programs in need of RPC functionality must be linked against TI-RPC.
+  The TI-RPC implemtation is IPv6 enabled and there are other benefits.
+  Implemented by Ulrich Drepper.
+
 * New Linux interfaces: clock_adjtime, name_to_handle_at, open_by_handle_at,
   syncfs
[...snip!...]
+libc_hidden_proto (xdr_u_int)
[/quote]


So I tried to change the compile line to link against -ltirpc as well (after having rebuilt it with:


jo ~ # emerge -vpq libtirpc
[ebuild   R   ] net-libs/libtirpc-0.2.2-r1  USE="kerberos static-libs"


It complained about pthreads being missing, so I added -lpthread to the mix and:


/var/tmp/portage/sys-apps/busybox-1.19.3/work/busybox-1.19.3/libbb/xconnect.c:109: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libtirpc.a(libtirpc_la-auth_des.o): In function `authdes_validate':
(.text+0xee): undefined reference to `ecb_crypt'


a new error!  However I cannot seem to find this symbol at all anymore in static land:


jo / # find / -xdev -type f -name "lib*.a" -exec nm -A {} 2>/dev/null \; | grep ecb_crypt
/usr/lib64/libtirpc.a:libtirpc_la-auth_des.o:                 U ecb_crypt
/usr/lib64/libgcrypt.a:des.o:0000000000000400 t des_ecb_crypt
/usr/lib64/libgcrypt.a:des.o:0000000000000d60 t tripledes_ecb_crypt
jo / #


But it does seem to exist in libc's dynamic version:


jo lib64 # readelf --syms libc.so.6 | grep ecb_crypt
   321: 0000000000102ba0    25 FUNC    GLOBAL DEFAULT   12 ecb_crypt@@GLIBC_2.2.5


The same git commit as mentioned earlier looks to mess with its exportability.

I re-compiled libtirpc without kerberos support (USE=static-libs -kerberos), but it still wants to link with ecb_crypt and friends.

I'm thinkin it's presently impossible to compile busybox and the latest glibc?  Toggling the "static" USE flag on busybox does not get rid of the CONFIG_STATIC=y phase of the build:


jo busybox # USE=static emerge -b1v --digest busybox 2>&1 | grep CONFIG_STATIC
 * CONFIG_STATIC=y
jo busybox # USE=-static emerge -b1v --digest busybox 2>&1 | grep CONFIG_STATIC
 * # CONFIG_STATIC is not set
make -j26 CONFIG_STATIC=y busybox
 *           emake CONFIG_STATIC=y busybox || die;
 *           emake CONFIG_STATIC=y busybox || die;
jo busybox #


I applied this patch to the ebuild to try and fix the "static" USE flag:


--- busybox-1.19.3.ebuild       2011-11-29 03:24:28.000000000 -0800
+++ busybox-1.19.3-trythis.ebuild       2011-11-29 03:25:06.000000000 -0800
@@ -195,7 +195,7 @@
        export SKIP_STRIP=y

        emake V=1 busybox || die
-       if ! use static ; then
+       if use static ; then
                cp .config{,.bak}
                mv busybox_unstripped{,.bak}
                use pam && busybox_config_option n PAM



But my efforts did not yield success:


>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/busybox-1.19.3

>>> Install busybox-1.19.3 into /var/tmp/portage/sys-apps/busybox-1.19.3/image/ category sys-apps
 * Your configuration for sys-apps/busybox-1.19.3 has been saved in
 * /etc/portage/savedconfig/sys-apps/busybox-1.19.3 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
!!! dobin: bb does not exist
dobin failed
 * ERROR: sys-apps/busybox-1.19.3 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  84:  Called src_install
 *   environment, line 2605:  Called die
 * The specific snippet of code:
 *           dobin bb || die;
 *
 * If you need support, post the output of 'emerge --info =sys-apps/busybox-1.19.3',
 * the complete build log and the output of 'emerge -pqv =sys-apps/busybox-1.19.3'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.19.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.19.3/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/busybox-1.19.3/work/busybox-1.19.3'
 * QA Notice: file does not exist:
 *
 *      dobin: bb does not exist

>>> Failed to emerge sys-apps/busybox-1.19.3, Log file:


At this point, I'm at a loss as to what to do next.  Someone help! :)
Comment 6 Bart Kus 2011-11-29 11:51:53 UTC
I've filed busybox bug #4562 with their bug tracker.

https://bugs.busybox.net/show_bug.cgi?id=4562
Comment 7 SpanKY gentoo-dev 2011-11-29 20:17:26 UTC

*** This bug has been marked as a duplicate of bug 379481 ***