From: Julian S. <lor...@po...> - 2006-01-25 20:04:32
|
Darren Salt napisa=C5=82(a): > In message <43D...@po...> you wrote: >=20 >=20 >>Darren Salt napisa=C3=85=E2=80=9A(a): >> >>>I demand that Julian Sikorski may or may not have written... >>> >>>>Hi. I have built gxine rpm under Fedora Core 4. It built fine, but = the >>>>player refuses to start due to problem: >>>>gxine: error while loading shared libraries: libmozjs.so: cannot op= en >>>>shared object file: No such file or directory >>>>Under fc4 the mentioned library is present in /usr/lib/mozilla-{ver= sion}. >>>>Previous versions of gxine worked fine. Greets. >>> >>>AFAICS, configuring with --enable-rpath should help. >=20 >=20 >>But then rpmbuild will yell at me. >=20 >=20 > You have a couple of options: >=20 > * file a bug against mozilla (or whichever package provides libmozjs= =2Eso) for > not putting the library in /usr/lib; >=20 > * file a bug against mozilla-devel for not ensuring that the runpath= is > set (via its JS .pc file) for any binary which is linked against > libmozjs.so >=20 > * use libjs-devel instead. >=20 > I may yet decide to force --enable-rpath if a required library isn't = in /lib, > /usr/lib or a location listed in /etc/ld.so.conf. >=20 Hmm, I have looked deeper into it and figued out that I have both js an= d mozilla installed. libmozjs.so goes into /usr/lib/mozilla-1.7.12, and mozilla-devel contains /usr/lib/autopackage/mozilla-js.pc. libjs.so is in /usr/lib, but unfortuaterly js-devel does not contain the pc file. Here is the mozilla-js.pc content: prefix=3D/usr exec_prefix=3D/usr libdir=3D/usr/lib/mozilla-1.7.12 includedir=3D/usr/include/mozilla-1.7.12 Name: JavaScript Description: The Mozilla JavaScript Library Version: 1.7.12 Requires: mozilla-nspr =3D 1.7.12 Libs: -L${libdir} -lmozjs Cflags: -I${includedir}/js -DXP_UNIX |