Apache OpenOffice (AOO) Bugzilla – Issue 51415
TCR: 'Broken' RUNPATH in mozilla shared libraries
Last modified: 2010-08-25 12:33:48 UTC
Several mozilla shared libraries either (a) have a wrong RUNPATH set or (b) none at all, so that they do find other shared libraries that they depend upon. (a) Do not let the Sun Studio compiler record it's default RUNPATH (/opt/SUNWspro/...) into shared libraries. Use the compilers -norunpath option instead. (b) Always specify a RUNPATH in shared libraries. Affected are the mozilla following libraries: <instpath>/program/components/libaddrbook.so: <instpath>/program/components/libi18n.so: <instpath>/program/components/libmork.so: <instpath>/program/components/libmozldap.so: <instpath>/program/components/libnecko.so: <instpath>/program/components/libpipnss.so: <instpath>/program/components/libpref.so: <instpath>/program/components/libprofile.so: <instpath>/program/components/librdf.so: <instpath>/program/components/libuconv.so: <instpath>/program/components/libvcard.so: <instpath>/program/components/libxpcom_compat_c.so: <instpath>/program/components/libxpconnect.so: <instpath>/program/libfreebl_hybrid_3.so: <instpath>/program/libldap50.so: <instpath>/program/libmozjs.so: <instpath>/program/libmozz.so: <instpath>/program/libmsgbaseutil.so: <instpath>/program/libnss3.so: <instpath>/program/libplc4.so: <instpath>/program/libplds4.so: <instpath>/program/libprldap50.so: <instpath>/program/libsmime3.so: <instpath>/program/libsoftokn3.so: <instpath>/program/libssl3.so: <instpath>/program/libxpcom.so: <instpath>/program/libxpcom_compat.so: The following modules depend on (parts of) these libraries: (1) connectivity (Mozilla Addressbook adapter, only) (2) xmlsecurity + libxmlsec Causes: (a) the patch for mozilla even comment out correct runpath settings from 'Makefile's (b) libraries are not linked with CC -norunpath (wrong runpath, solaris only) or don't specify any runpath (c) installation filesystem layout (directory structure), split into two directories, even complicates the above (e.g. program/components/libaddrbook.so cannot find libnspr4.so).
Accepting... Adding CC: fs (connectivity), mt (xmlsecurity)...
Created attachment 27590 [details] Document 'broken' RUNPATH of mozilla libraries
Fixed on cws_src680_mhu09...
Verifying myself, as this is a developer issue. Using ldd, /usr/ccs/bin/dump -Lv (solaris), /usr/bin/objdump -p (linux), the libraries are verified to have the correct runpath recorded => verified.
Fix integrated into milestone SRC680_m120 => closing...
Created attachment 70503
Created attachment 71272
Created attachment 71331