Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299786 - random emerge fails: undefined reference to '__dlopen' & 'dlsym'
Summary: random emerge fails: undefined reference to '__dlopen' & 'dlsym'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 16:48 UTC by John L. Poole
Modified: 2010-01-07 00:56 UTC (History)
0 users

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 John L. Poole 2010-01-05 16:48:29 UTC
emerge update of sys-apps/baselayout-1.12.13 from
tiny build # eix sys-apps/baselayout
[U] sys-apps/baselayout
     Available versions:  [P]1.11.15-r3 1.12.11.1 ~1.12.12 1.12.13 ~2.0.0 ~2.0.1 {bootstrap build static unicode}
     Installed versions:  1.12.11.1(19:26:50 10/13/09)(unicode -bootstrap -build -static)
     Homepage:            http://www.gentoo.org/
     Description:         Filesystem baselayout and init scripts

fails at:


Reproducible: Always

Steps to Reproduce:
1. emerge sys-apps/baselayout


Actual Results:  
tiny build # emerge --update --newuse --deep world 
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 88) sys-apps/baselayout-1.12.13
 * baselayout-1.12.13.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...            [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking baselayout-1.12.13.tar.bz2 to /d1/var/tmp/portage/sys-apps/baselay
out-1.12.13/work
>>> Source unpacked in /d1/var/tmp/portage/sys-apps/baselayout-1.12.13/work
>>> Compiling source in /d1/var/tmp/portage/sys-apps/baselayout-1.12.13/work/bas
elayout-1.12.13 ...
make: Entering directory `/d1/var/tmp/portage/sys-apps/baselayout-1.12.13/work/b
aselayout-1.12.13/src'
armv5tel-softfloat-linux-gnueabi-gcc -Os -march=armv5te -pipe -DLIBDIR=\"lib\"  
-Wl,-O1  consoletype.c   -o consoletype
armv5tel-softfloat-linux-gnueabi-gcc -Os -march=armv5te -pipe -DLIBDIR=\"lib\"  
 -c -o runscript.o runscript.c
armv5tel-softfloat-linux-gnueabi-gcc -Os -march=armv5te -pipe -DLIBDIR=\"lib\" -
c -o rs-misc.o core/misc.c
armv5tel-softfloat-linux-gnueabi-gcc -Wl,-O1 -Wl,-O1 -o runscript runscript.o rs
-misc.o -ldl
runscript.o: In function `setup_selinux':
runscript.c:(.text+0x84c): warning: Using 'dlopen' in statically linked applicat
ions requires at runtime the shared libraries from the glibc version used for li
nking
/d1/usr/armv5tel-softfloat-linux-gnueabi/gcc-bin/4.3.4/../../../lib/gcc/armv5tel
-softfloat-linux-gnueabi/4.3.4/../../../libdl.a(dlopen.o): In function `dlopen':
(.text+0xc): undefined reference to `__dlopen'
/d1/usr/armv5tel-softfloat-linux-gnueabi/gcc-bin/4.3.4/../../../lib/gcc/armv5tel
-softfloat-linux-gnueabi/4.3.4/../../../libdl.a(dlsym.o): In function `dlsym':
(.text+0xc): undefined reference to `__dlsym'
collect2: ld returned 1 exit status
make: *** [runscript] Error 1
make: Leaving directory `/d1/var/tmp/portage/sys-apps/baselayout-1.12.13/work/ba
selayout-1.12.13/src'
 * 
 * ERROR: sys-apps/baselayout-1.12.13 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2768:  Called die
 * The specific snippet of code:
 *       make -C "${S}"/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" CFLAGS=
"${CFLAGS}" LIBDIR="${libdir}" || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if rele
vant.
 * A complete build log is located at '/d1/var/tmp/portage/sys-apps/baselayout-1
.12.13/temp/build.log'.
 * The ebuild environment file is located at '/d1/var/tmp/portage/sys-apps/basel
ayout-1.12.13/temp/environment'.
 * 

>>> Failed to emerge sys-apps/baselayout-1.12.13, Log file:

>>>  '/d1/var/tmp/portage/sys-apps/baselayout-1.12.13/temp/build.log'

 * Messages for package sys-apps/baselayout-1.12.13:

 * 
 * ERROR: sys-apps/baselayout-1.12.13 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2768:  Called die
 * The specific snippet of code:
 *       make -C "${S}"/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" CFLAGS=
"${CFLAGS}" LIBDIR="${libdir}" || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if rele
vant.
 * A complete build log is located at '/d1/var/tmp/portage/sys-apps/baselayout-1
.12.13/temp/build.log'.
 * The ebuild environment file is located at '/d1/var/tmp/portage/sys-apps/basel
ayout-1.12.13/temp/environment'.
 * 
tiny build 

Expected Results:  
successful install

tiny build # emerge --info
Portage 2.1.6.13 (default/linux/arm/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32-rc2 armv5tel)
=================================================================
System uname: Linux-2.6.32-rc2-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 05 Jan 2010 01:45:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="arm"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-Os -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=armv5te -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl apache2 arm berkdb bzip2 cli cracklib crypt cups cxx emacs fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode xorg zlib" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident      voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

tiny build #
Comment 1 John L. Poole 2010-01-05 16:53:56 UTC
After filing this bug, I tried to emerge  www-client/mozilla-firefox which pulled in
 dev-libs/nss-3.12.3-r1 which failed:
 ...
/d1/usr/armv5tel-softfloat-linux-gnueabi/gcc-bin/4.3.4/../../../lib/gcc/armv5tel-softfloat-linux-gnueabi/4.3.4/../../../libdl.a(dlopen.o): In function `dlopen':
(.text+0xc): undefined reference to `__dlopen'
/d1/usr/armv5tel-softfloat-linux-gnueabi/gcc-bin/4.3.4/../../../lib/gcc/armv5tel-softfloat-linux-gnueabi/4.3.4/../../../libdl.a(dlclose.o): In function `dlclose':
(.text+0x0): undefined reference to `__dlclose'
/d1/usr/armv5tel-softfloat-linux-gnueabi/gcc-bin/4.3.4/../../../lib/gcc/armv5tel-softfloat-linux-gnueabi/4.3.4/../../../libdl.a(dlsym.o): In function `dlsym':
(.text+0xc): undefined reference to `__dlsym'
collect2: ld returned 1 exit status
make[2]: *** [Linux2.6_arm_armv5tel-softfloat-linux-gnueabi-gcc_glibc_PTH_OPT.OBJ/libsoftokn3.so] Error 1

Given that the above error message occurred in a different package, it looks like the problem is not with sys-apps/baselayout, but possibly with GCC?
Comment 2 John L. Poole 2010-01-05 16:56:22 UTC
Yup... the culprit very well may be GCC since it was just installed:

tiny build # eix -I GCC                            
[I] sys-devel/gcc
     Available versions:  
        (2.95)  [P]*2.95.3-r9 [P]~*2.95.3-r10!s
        (3.1)   [P]*3.1.1-r2
        (3.2)   **3.2.2!s *3.2.3-r4
        (3.3)   ~*3.3.6-r1!s
        (3.4)   3.4.6-r2!s
        (4.0)   ~*4.0.4!s
        (4.1)   4.1.2!s
        (4.2)   ~4.2.4-r1!s
        (4.3)   ~4.3.2-r3!s 4.3.2-r4!s ~4.3.3-r2!s 4.3.4!s
        (4.4)   -4.4.1!s ~4.4.2!s
        {altivec bootstrap boundschecking build d doc fixed-point fortran gcj graphite gtk hardened ip28 ip32r10k java libffi mudflap multilib multislot n32 n64 nls nocxx nopie nossp nptl objc objc++ objc-gc openmp static test vanilla}
     Installed versions:  4.3.4(4.3)!s(03:31:30 01/05/10)(fortran mudflap nls nptl openmp -altivec -bootstrap -build -doc -fixed-point -gcj -gtk -hardened -ip28 -ip32r10k -libffi -multilib -multislot -n32 -n64 -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla)
     Homepage:            http://gcc.gnu.org/
     Description:         The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking

[I] sys-devel/gcc-config
     Available versions:  1.3.16 1.4.0-r4 1.4.1 **1.5
     Installed versions:  1.4.1(19:26:41 10/13/09)
     Homepage:            http://www.gentoo.org/
     Description:         Utility to change the gcc compiler being used

[I] x11-misc/gccmakedep
     Available versions:  1.0.2 {debug}
     Installed versions:  1.0.2(19:27:50 10/13/09)(-debug)
     Homepage:            http://xorg.freedesktop.org/
     Description:         create dependencies in makefiles using 'gcc -M'

Found 3 matches.
tiny build # 


Should this bug be assigned to the owner of the GCC package?
Comment 3 John L. Poole 2010-01-06 18:19:48 UTC
I found this link to a similar problem
where the author posted: http://www.mail-archive.com/ion-general@lists.berlios.de/msg01639.html
vvvvv
  I have /usr as
  a symlink to another location and /usr/lib cannot be symlinked in
  any way.  I had similar problems with compiling something else
  and using `mount --bind' instead of a symlink resolved it.
^^^^^
I, too, have my /usr directory symlinked to another directory.  I'll
change to the "mount --bind" solution and updated this bug with my findings.
Comment 4 John L. Poole 2010-01-06 23:54:16 UTC
Still working on it... I also had /var sym linked, too, and my reconfiguration (which had a typo) has resulted in my not being able to boot from the base image.  I'm certain that problem arises over the inability of some programs to accept symlinked /usr or /var (I have successfully used this method on an identical machine, so it can be done... if you don't make typos and catapult yourself into a rabbit hole).
Comment 5 SpanKY gentoo-dev 2010-01-07 00:49:05 UTC
not a bug in baselayout.  your glibc and/or paths to glibc looks hosed.
Comment 6 John L. Poole 2010-01-07 00:56:27 UTC
I agree: my system was corrupted.  I compared my /sbin directory with another box and notice several files missing.

I'm closing this bug as "INVALID" as it arises from a system that determinately had corruption on the disk.