Created attachment 254067 [details] [diff] [review] easy workaround The javaxpcom glue doesn't work when built with gcc 4.x because in such cases symbols are hidden by default and the JNI glue doesn't export the necessary symbols. I've been using a workaround, that I'll attach here for documentation purpose, with success for a few months.
Well, I've been building with GCC 4.1.2 on Ubuntu with no problems. There are only three methods in the glue lib that should be external, and all those are declared as NS_EXPORT, which makes them visibility == "default" (that is, not hidden).
on which branch ?
On the trunk and MOZILLA_1_8_BRANCH (1.8.1.x).
I can confirm this works on MOZILLA_1_8_BRANCH