OpenJDK linking error

Andrew Haley aph at redhat.com
Mon Jan 12 17:22:36 UTC 2009


Peng Du wrote:

> However, the problem is still not resolved even if I've installed
> libstdc++ from my distribution: 
> 
> =================================================================
> [peng at localhost openjdk]$ locate libstdc++.so
> /usr/lib/libstdc++.so.5
> /usr/lib/libstdc++.so.5.0.7
> /usr/lib/libstdc++.so.6
> /usr/lib/libstdc++.so.6.0.10
> /usr/lib/gcc/i586-manbo-linux-gnu/4.3.2/libstdc++.so 
> =================================================================
> 
> I've even tried to create a symbolic link "libstdc++.so" at /usr/lib/ to
> all the above libstdc++.so.*. The problem still does not go away. I am
> really out of solution. 

On my box it's actually in the gcc-c++ package:

rpm -ql /usr/lib/gcc/x86_64-redhat-linux/4.3.1/libstdc++.so
package /usr/lib/gcc/x86_64-redhat-linux/4.3.1/libstdc++.so is not installed
zorro:icedtea6 $ rpm -qf /usr/lib/gcc/x86_64-redhat-linux/4.3.1/libstdc++.so
gcc-c++-4.3.1-6.x86_64

The gcc you're using should have its library paths set to include
usr/lib/gcc/i586-manbo-linux-gnu/4.3.2/

Andrew.



More information about the build-dev mailing list