Sunny Chan blogs Can you see the Logic in my Madness?

More OpenJDK compile notes for Fedora 16

by schan


Posted on Friday Nov 11, 2011 at 11:01PM in Anything


Just to save people from scratching their heads - if you try and compile OpenJDK from vanilla source bundle (not IcedTea) on Fedora 16, you migth see libjvm.so fails to link with a message:


libstdc++ not found


If you look at OpeJDK build readme:


This is caused by a missing libstdc++.a library. This is installed as part of a specific package (e.g. libstdc++.so.devel.386). By default some 64-bit Linux versions (e.g. Fedora) only install the 64-bit version of the libstdc++ package. Various parts of the JDK build require a static link of the C++ runtime libraries to allow for maximum portability of the built images.


 DOH! So what you will need on Fedora 16 is libstdc++-static package



No one has commented yet.

Leave a Comment

HTML Syntax: Allowed