Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94760 - Acrobat Reader 7, mozilla-*-bin require libstdc++-v3 to run on >=gcc-3.4.4-only systems
Summary: Acrobat Reader 7, mozilla-*-bin require libstdc++-v3 to run on >=gcc-3.4.4-on...
Status: RESOLVED DUPLICATE of bug 84961
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 11:28 UTC by Krzysztof Pawlik (RETIRED)
Modified: 2005-06-02 16:24 UTC (History)
2 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 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-06-01 11:28:58 UTC
acroread doesn't depend on libstdc++-v3 and it doesn't run without it. Shouldn't it be added to it's RDEPEND? Same for mozilla-*-bin.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-01 11:48:22 UTC
Hmm, how did you find out? I have acroread-7 on a couple of machines that have
never seen libstdc++-v3 and same stands for mozilla-bin.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-01 14:20:15 UTC
Post some real error messages and reopen then. 
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-06-02 10:04:44 UTC
nelchael@nelchael ~$ cd /opt/Acrobat7/Reader/intellinux/lib/
nelchael@nelchael lib$ ldd *.so | grep libstdc++
        libstdc++.so.5 => /usr/lib/libstdc++-v3/libstdc++.so.5 (0xb7ed0000)
        libstdc++.so.5 => /usr/lib/libstdc++-v3/libstdc++.so.5 (0xb7e0e000)
        libstdc++.so.5 => /usr/lib/libstdc++-v3/libstdc++.so.5 (0xb7e46000)
nelchael@nelchael lib$ 

Acroread simply doesn't start for me without it. And here's end of `strace -f
acroread`:

7981  open("/opt/Acrobat7/Reader/intellinux/lib/libstdc++.so.5", O_RDONLY) = -1
ENOENT (No such file or directory)
7981  open("/etc/ld.so.cache", O_RDONLY) = 4
7981  fstat64(4, {st_mode=S_IFREG|0644, st_size=52693, ...}) = 0
7981  mmap2(NULL, 52693, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb6647000
7981  close(4)                          = 0
7981  open("/usr/lib/libstdc++-v3/libstdc++.so.5", O_RDONLY) = -1 EACCES
(Permission denied)
7981  open("/lib/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
7981  open("/usr/lib/tls/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
7981  open("/usr/lib/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
7981  munmap(0xb6647000, 52693)         = 0
7981  munmap(0xb6654000, 3359712)       = 0
7981  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
7981  exit_group(1)                     = ?

I've disabled libstdc++-v3 for this:

nelchael@nelchael ~$ ls -l /usr/lib/libstdc++-v3/libstdc++.so.5*
   0 lrwxrwxrwx  1 root root   18 Jun  1 20:22
/usr/lib/libstdc++-v3/libstdc++.so.5 -> libstdc++.so.5.0.6
689K ----------  1 root root 688K Jun  1 20:22
/usr/lib/libstdc++-v3/libstdc++.so.5.0.6
nelchael@nelchael ~$ 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-02 11:40:24 UTC
You failed to post emerge --info

$ cd /opt/Acrobat7/Reader/intellinux/lib/
$ ldd *.so | grep libstdc++
        libstdc++.so.5 =>
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5 (0xb7ec2000)
        libstdc++.so.5 =>
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5 (0xb7e00000)
        libstdc++.so.5 =>
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5 (0xb7e38000)

Comment 5 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-06-02 13:07:14 UTC
You have gcc 3.3.5, and I don't:

nelchael@nelchael ~$ emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-ck9 i686)
=================================================================
System uname: 2.6.11-ck9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.4.1
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://gentoo.osuosl.org/ ftp://mirrors1.netvisao.pt/gentoo/
http://gentoo.seren.com/gentoo http://gentoo.prz.rzeszow.pl/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 cdr
crypt dvd emboss extras foomaticdb fortran gtk gtk2 iconv imlib java jpeg
kdeenablefinal libg++ libwww mad mmx mmx2 mozilla mp3 mpeg ncurses nls
no-old-linux nptl offensive ogg oggvorbis opengl pam perl png postgres python qt
quicktime readline samba sse sse2 ssl svg tcpd tiff truetype truetype-fonts
type1-fonts vorbis xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

nelchael@nelchael ~$ emerge -pv gcc

These are the packages that I would merge, in order:

Calculating dependencies   ...done!
[ebuild     U ] sys-devel/gcc-3.4.4 [3.4.3.20050110-r2] (-altivec) -bootstrap
-boundschecking -build -debug +fortran -gcj +gtk -hardened -ip28 (-multilib)
-multislot (-n32) (-n64) +nls -nocxx -nopie -nossp -objc -static 0 kB 

Total size of downloads: 0 kB
nelchael@nelchael ~$ 
Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-06-02 13:16:33 UTC
sys-lib/libstdc++-v3 was dropped from gcc's 3.4.4 DEPEND, thus it got unmerged
on depclean on systems with 3.4.4 only. Maybe the bug should be assigned to gcc
people?
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-06-02 13:28:02 UTC
According to your emerge info you have gcc-3.4.3.20050110

There is no way how you could have gcc-3.4.3.20050110-r2 without libstdc++-v3,
unless you 

- unmerged libstdc++-v3 manually 
- or emerged gcc with --nodeps 
- or emerge gcc with USE="nocxx" which is bad idea(tm)
- or have played with emerge depclean. 

$ grep -C1 PDEPEND gcc-3.4.3.20050110-r2.ebuild

PDEPEND="sys-devel/gcc-config
        !nocxx? ( !mips? ( !ia64? ( !elibc_uclibc? ( !build? (
sys-libs/libstdc++-v3 ) ) ) ) )"

Watch what are you doing with depclean next time and read the warning. 
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-06-02 13:40:40 UTC
nelchael@nelchael ~$ grep -C1 PDEPEND /usr/portage/sys-devel/gcc/gcc-3.4.4.ebuild 
        amd64? ( >=sys-devel/binutils-2.15.90.0.1.1-r1 )"
PDEPEND="sys-devel/gcc-config"

nelchael@nelchael ~$ emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-ck9 i686)
=================================================================
System uname: 2.6.11-ck9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.4.1
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://gentoo.osuosl.org/ ftp://mirrors1.netvisao.pt/gentoo/
http://gentoo.seren.com/gentoo http://gentoo.prz.rzeszow.pl/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 cdr
crypt dvd emboss extras foomaticdb fortran gtk gtk2 iconv imlib java jpeg
kdeenablefinal libg++ libwww mad mmx mmx2 mozilla mp3 mpeg ncurses nls
no-old-linux nptl offensive ogg oggvorbis opengl pam perl png postgres python qt
quicktime readline samba sse sse2 ssl svg tcpd tiff truetype truetype-fonts
type1-fonts vorbis xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

And what with 3.4.4? My only mistake was running 'emerge depclean' before the
update, not after it. Anyway: libstdc++-v3 will be unmerged by depclean when
3.4.3 is unmerged and we're left only with 3.4.4. The main problem was stated in
comment #6 - maybe the dep should be added back to 3.4.4 ?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-06-02 14:59:27 UTC
OK, now it finally makes sense.
Comment 10 SpanKY gentoo-dev 2005-06-02 16:24:33 UTC

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