Here it goes a dirty fix. Nevertheless, I'm getting a bunch of shlibs warnings like these: dpkg-shlibdeps: warning: format of 'NEEDED libxpcom.so' not recognized
I attached the patch I used, it changes the visibility with #pragma to the offended parts. Regards, Gerard.
gcc4.2_warnings.dpatch
Description: Binary data