Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
coreutils linked against libraries in /usr with USE=+acl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
entemoehre
n00b
n00b


Joined: 22 Jul 2003
Posts: 64

PostPosted: Tue Mar 15, 2005 3:49 pm    Post subject: coreutils linked against libraries in /usr with USE=+acl Reply with quote

Hi there!

While trying to solve another problem (https://forums.gentoo.org/viewtopic-t-307852.html), I stumbled across this:
According to ldd, some (all?, just checked for cp and mv) binaries from the coreutils package seemed to depend on libstdc++.so.5 via libacl and libattr when compiled with USE=+acl.
Code:
$ ldd /bin/cp
        linux-gate.so.1 =>  (0xffffe000)
        libacl.so.1 => /lib/libacl.so.1 (0xb7fc9000)
        libattr.so.1 => /lib/libattr.so.1 (0xb7fc5000)
        libc.so.6 => /lib/libc.so.6 (0xb7eb0000)
        libstdc++.so.5 => //usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5 (0xb7df6000)
        libm.so.6 => /lib/libm.so.6 (0xb7dd3000)
        libgcc_s.so.1 => //usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc_s.so.1 (0xb7dca000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7feb000)

$ ldd /lib/libacl.so.1
        linux-gate.so.1 =>  (0xffffe000)
        libattr.so.1 => /lib/libattr.so.1 (0xb7fda000)
        libstdc++.so.5 => //usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5 (0xb7f1f000)
        libm.so.6 => /lib/libm.so.6 (0xb7efc000)
        libc.so.6 => /lib/libc.so.6 (0xb7de8000)
        libgcc_s.so.1 => //usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc_s.so.1 (0xb7ddf000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

$ ldd /lib/libattr.so.1
        linux-gate.so.1 =>  (0xffffe000)
        libstdc++.so.5 => //usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5 (0xb7f42000)
        libm.so.6 => /lib/libm.so.6 (0xb7f03000)
        libc.so.6 => /lib/libc.so.6 (0xb7def000)
        libgcc_s.so.1 => //usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc_s.so.1 (0xb7de6000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

As the libstdc++.so.5 is located in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/ and /usr is a different partition on my system, this caused the problem mentioned in the above post.
As far as I can see, this seems to make the coreutils unusable when the /usr partition is not mounted, which would somehow contradict the general idea of putting /usr on a different partition.
Strangely, on my notebook, libacl does not depend on libstdc++:
Code:
$ ldd /bin/cp
        linux-gate.so.1 =>  (0xffffe000)
        libacl.so.1 => /lib/libacl.so.1 (0xb7fcb000)
        libattr.so.1 => /lib/libattr.so.1 (0xb7fc7000)
        libc.so.6 => /lib/libc.so.6 (0xb7eb5000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fec000)

So the question is: What's wrong with my desktop system?
All ideas and answers are welcome,
regards,

soenke


# emerge info
Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.2.3-r6,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11 2005, 20:51:15)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python: 2.2.3-r6, 2.3.4-r1
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.5, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.4, 1.6.3
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/srv/files/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib acl acpi alsa apache2 apm auctex audiofile avi bash-completion berkdb bitmap-fonts bonobo cdparanoia cdr crypt cups curl directfb divx4linux doc dvd dvdread edl emacs emboss encode f77 fam fbcon flac font-server foomaticdb fortran gdbm ggi gif gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib ipv6 java jikes jpeg junit kde lcms ldap lesstif libcaca libg++ libwww live lzo mad maildir matroska mbox mcal memlimit mikmod mmx mmx2 motif mozilla mpeg mysql nas ncurses netcdf network nls nptl nvidia oggvorbis opengl oss pam pda pdflib perl plotutils png ppds prelude python qt quicktime readline real rtc samba scanner sdl slang slp speex spell sse ssl svga tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 videos wmf xine xinerama xml xml2 xmms xosd xv xvid zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum