GCC 3.0+ and Mozilla 1.4rc2+/Mozilla Nightly 20030615+/Self-Built Mozilla

GCC 3.0 introduced a break in binary compatability. It now compiles software and has it reference libgcc. What this means is that if you compile Mozilla with gcc 3.0+ or use a Mozilla compiled with gcc 3.0+ (as Mozilla 1.4rc2/Mozilla Nightly 20030615+ are) you will need to have at least that version of gcc installed AND a version of Java that was compiled with it. This was a problem until recently.

Blackdown Java has offered Java 1.4.1 (or at least a near beta of it - not too sure as I don't use it) for quite a while but I never had the opportunity to use it (or need as Debian Woody does not use gcc 3.0+ yet - the next Debian will though). Despite this, many people emailed me to tell me about this and until today I've been too lazy to do an update of my Java page. Bad me. Anyways, recently, Sun have released Java 1.4.2 which includes a plugin for pre gcc3.0 Mozillas (this is the default one referenced on my main Java page) and post gcc3.0 Mozillas. If you are such an individual, instead of using the ns610 directory, please use the ns610-gcc32 directory. For you the plugin install instructions would be as follows:

Installing the Java Plugin for GCC 3.0+ Mozilla builds

Locally:

Doing a local plugin install is useful if you are the only user of your sytem and you tend to upgrade Mozilla a fair bit. It keeps your plugins out of the way of the Mozilla install directory which tends to get nuked on 'sea' installs.

mkdir ~/.mozilla/plugins
ln -s /usr/local/java.sun/java.current/plugin/i386/ns610-gcc32/libjavaplugin_oji.so ~/.mozilla/plugins/

Globally:

This is a useful option when your system has many users using it but it has the downside that you MUST be careful when installing a new version of Mozilla as you may windup fragging your plugins install.

ln -s /usr/local/java.sun/java.current/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/local/mozilla/plugins/

If you installed Mozilla via a .deb then the location of the plugins directory changes. Please use the line below instead.

ln -s /usr/local/java.sun/java.current/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla/plugins/

Additional:

If you're using Debian Woody then, by default, you'll mostlikely have gcc2.95.4 installed. What this means is that you wont have a libgcc which was introduced with the 3.0 series and as such Mozilla still wont work for you. The fix is simple though. Just do the following and you'll be sailing:

apt-get install libgcc1

All other instructions remain as normal.

Anyway, I hope this helps you out. If you would like to add anything to this document (like extra information for other Linux distributions or instructions for other operatings) then please contact me. Thanks. :)

Oh. Feedback rocks. Send me lots of feedback. :)