Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109710 - broken java because missing libstdc++.so.5
Summary: broken java because missing libstdc++.so.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: High blocker
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 07:28 UTC by Tobias Nyström
Modified: 2005-10-18 16:03 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 Tobias Nyström 2005-10-18 07:28:27 UTC
blackdown-jdk-1.3.1-r10.ebuild

and

ibm-jdk-bin-1.4.2.ebuild

needs libstdc++.so.5 which I belive is a part of gcc-3.2

gcc-3.2.3-r4 fails to compile on my system, as Im running gcc-3.4.4-r1

Reproducible: Always
Steps to Reproduce:




Errors
-------------------------------------------

# java javaGUITestSwing
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/opt/ibm-jdk-bin-1.4.2/jre/bin/libfontmanager.so: libstdc++.so.5: cannot open
shared object file: No such file or directory

# java -Djava.library.path=/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/
javaGUITestSwing
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/opt/ibm-jdk-bin-1.4.2/jre/bin/libfontmanager.so: libstdc++.so.5: cannot open
shared object file: No such file or director

# ln -s libstdc++.so.6.0.3 libstdc++.so.5


# java -Djava.library.path=/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/
javaGUITestSwing
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/opt/ibm-jdk-bin-1.4.2/jre/bin/libfontmanager.so:
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/libstdc++.so.5: version
`GLIBCPP_3.2' not found (required by
/opt/ibm-jdk-bin-1.4.2/jre/bin/libfontmanager.so)


emerge info
-------------------------------------------

Portage 2.0.51.22-r3 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4,
glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r10 ppc)
=================================================================
System uname: 2.6.12-gentoo-r10 ppc 7447A, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.15.90.0.3-r5
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=powerpc -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=powerpc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec berkdb bitmap-fonts browserplugin crypt cups dvd eds
emboss fam fbcon fortran gcj gif gnome gpm gstreamer gtk gtk2 ipv6 java joystick
jpeg kde libwww mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl pam
pdflib perl png python qt readline samba sdl spell ssl tcpd truetype
truetype-fonts type1-fonts unicode vorbis xml2 xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

The java code (don't know if you need it)
-------------------------------------------

import javax.swing.*;        

public class javaGUITestSwing 
{
	private static void createAndShowGUI() 
	{
		JFrame frame = new JFrame("HelloWorldSwing");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JLabel label = new JLabel("Hello World");
		frame.getContentPane().add(label);
		frame.pack();
		frame.setVisible(true);
	}

    public static void main(String[] args) 
    {
    	javax.swing.SwingUtilities.invokeLater(new Runnable()
    	{
    		public void run()
    		{
    			createAndShowGUI();
    		}
    	});
    }
}
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-10-18 08:19:39 UTC
> # ln -s libstdc++.so.6.0.3 libstdc++.so.5

Going wild with symlinking is almost never a solution. You have to rebuild all
C++ libs after upgrading from <=gcc.3.3 to gcc 3.4 since the ABI changed.


toolchain herd: please add the relevant post install inforation
Comment 2 Tobias Nyström 2005-10-18 09:08:25 UTC
(In reply to comment #1)
> > # ln -s libstdc++.so.6.0.3 libstdc++.so.5
> 
> Going wild with symlinking is almost never a solution. You have to rebuild all
> C++ libs after upgrading from <=gcc.3.3 to gcc 3.4 since the ABI changed.
> 

Im not that good at this, but if you are reffering to revdep-rebuild, I have
tried it without luck. There's still no libstdc++.so.5, althogh it finds the break:

# revdep-rebuild -p

Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update,
will be recompiled.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /opt/blackdown-jdk-1.3.1/bin/ppc/native_threads/java_vm (requires
libmlib_image.so libverify.so libstdc++.so.5)
  broken /opt/blackdown-jdk-1.3.1/jre/bin/ppc/native_threads/java_vm (requires
libmlib_image.so libverify.so libstdc++.so.5)
  broken /opt/blackdown-jdk-1.3.1/jre/lib/ppc/libfontmanager.so (requires
libstdc++.so.5)
  broken /opt/blackdown-jdk-1.3.1/jre/lib/ppc/libjavaplugin_jni.so (requires
libmlib_image.so libverify.so libstdc++.so.5)
  broken /opt/blackdown-jdk-1.3.1/jre/plugin/ppc/mozilla/javaplugin_oji.so
(requires libstdc++.so.5)
  broken /opt/ibm-jdk-bin-1.4.2/jre/bin/libfontmanager.so (requires libstdc++.so.5)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

All prepared. Starting rebuild...
emerge --oneshot --nodeps -p =dev-java/blackdown-jdk-1.3.1-r10
=dev-java/ibm-jdk-bin-1.4.2 

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

Calculating dependencies ...done!
[ebuild   R   ] dev-java/blackdown-jdk-1.3.1-r10  
[ebuild   Rf  ] dev-java/ibm-jdk-bin-1.4.2 

Comment 3 SpanKY gentoo-dev 2005-10-18 16:03:28 UTC
done

libstdc++.so.5 is part of gcc-3.3.x or libstdc++-v3-3.3.x