| View previous topic :: View next topic |
| Author |
Message |
pat Tux's lil' helper


Joined: 26 Aug 2002 Posts: 102 Location: Lausanne, Switzerland
|
Posted: Sat Jul 26, 2003 4:01 pm Post subject: java and shared library problem... |
|
|
I was doing an emerge -u world, but it stops when trying to update gettext. The reason was that the java compiler was unable to find a shared library (I've got the same answer whith /opt/blackdown-jdk-1.4.1/bin/java -version):
| Code: | Error: failed /usr/opt/blackdown-jdk-1.4.1/jre/lib/i386/client/libjvm.so, because libstdc++.so.5: cannot open shared object file: No such file or directory
|
locate libstdc++gives: | Code: | /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++-3-libc6.2-2-2.10.0.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++-libc6.2-2.a.3
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++-libc6.1-1.so.2
/usr/lib/libstdc++.so.2.7.2.8
/usr/lib/libstdc++.so.2.8.0
/usr/lib/libstdc++.so.2.8
/usr/lib/libstdc++.so.2.7.2
/usr/lib/libstdc++-libc6.2-2.so.3
/usr/portage/dev-util/ddd/files/ddd-3.3.1-link-libstdc++.patch
/usr/portage/sys-devel/gcc/files/3.1/gcc31-libstdc++-pr6594.patch.bz2
/usr/portage/sys-devel/gcc/files/3.1/gcc31-libstdc++-pr6648.patch.bz2
/usr/portage/sys-devel/gcc/files/3.1/gcc31-libstdc++-setrlim.patch.bz2
/usr/share/doc/gcc-2.95.3-r5/libstdc++
/usr/share/doc/gcc-2.95.3-r5/libstdc++/ChangeLog.gz
/usr/share/doc/gcc-2.95.3-r5/libstdc++/NEWS.gz
/usr/share/doc/gcc-2.95.3-r8/libstdc++
/usr/share/doc/gcc-2.95.3-r8/libstdc++/ChangeLog.gz
/usr/share/doc/gcc-2.95.3-r8/libstdc++/NEWS.gz
/usr/share/doc/gcc-2.95.3-r7/libstdc++
/usr/share/doc/gcc-2.95.3-r7/libstdc++/ChangeLog.gz
/usr/share/doc/gcc-2.95.3-r7/libstdc++/NEWS.gz
/usr/opt/OpenOffice.org1.0.2/program/libstdc++.so.3.0.4
/usr/opt/OpenOffice.org1.0.2/program/libstdc++.so.3
/usr/opt/OpenOffice.org1.0.2/program/libstdc++
|
Why is the libstdc++.so.5: missing in my system ?
Thanks for any help.
By the way, here is my portage config: | Code: | Portage 2.0.48-r5 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r8)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 3dnow apm avi crypt cups encode jpeg mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv aalib alsa arts berkdb directfb gdbm ggi gif gnome-libs gpm gphoto2 gtk guile imlib java kde libwww motif mozilla mysql nas nls oggvorbis opengl pam perl png python qt readline scanner sdl slang ssl svga tcltk tcpd tetex tiff X acpi cjk clamav curl dga emacs fbcon freewnn gd imap jikes ladcca lcms leim maildir mcal memlimit moznocompose moznoirc mule oav plotutils rage128 sasl slp socks5 sse usb wmf xml zlib -oss -libg++ -esd"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
|
|
|
| Back to top |
|
 |
pat Tux's lil' helper


Joined: 26 Aug 2002 Posts: 102 Location: Lausanne, Switzerland
|
Posted: Wed Jul 30, 2003 1:58 am Post subject: |
|
|
I have emerge -C \=blackdown-jdk-1.4.1 and re-emerge it again to see if it helped. It didn't, but I noticed that portage choose the -gcc3.2.bin file, but not the -gcc2.95.bin.
| Code: | Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/blackdown-jdk-1.4.1 to /
>>> md5 src_uri ;-) j2sdk-1.4.1-01-linux-i586-gcc3.2.bin
|
| Code: | gcc -dumpversion
2.95.3
|
I don't have the 3.2 version of gcc installed on that PC and I can't figure out why portage download the wrong file...
As I had an older version (1.3.1-r7), I just tried to update the gettext package with that older version, and it works.
Bye |
|
| Back to top |
|
 |
Jaspur n00b

Joined: 19 Sep 2003 Posts: 4
|
Posted: Tue Jan 20, 2004 4:51 am Post subject: blackdown-jdk-1.4.1 ebuild does not detect correct gcc ver |
|
|
| This fixed my problem as well. The blackdown-jdk-1.4.1 ebuild uses the linux-i586-gcc3.2.bin file instead of linux-i586-gcc2.95.bin file despite my system using gcc2.95. My fix was to comment out the detection of gcc version in the blackdown ebuild and force it to use 2.95. |
|
| Back to top |
|
 |
|