Sunny Chan blogs

Can you see the Logic in my Madness?

Entries tagged [linux]

Saturday Nov 12, 2011

More OpenJDK compile notes for Fedora 16

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

Friday Aug 07, 2009

Autofs hints

Just to save other people out there who have try to use autofs:

All automount map file must be non executable (eg rw-r-r-)

If not automounter will refuse to load it. I was scratching my head for a whole night trying to figure out my new ubuntu installation refuse to mount my NFS home directory. I am just about to blame ubuntu for this :-)