You are not logged in.

#1 2006-05-25 14:46:35

learner
Member
Registered: 2006-01-14
Posts: 21

xulrunner-1.8.0.1 dependency missing?

Hi,
   I ran prelink -all today, and found that 2 of the libraries within the xulrunner-1.8.0.1 folder have missing dependencies. So I ran ldd on the two library, libxpcom.so and libgtkembedmoz.so respectively, and find that the they both have libxul.so missing, and libgtkembedmoz.so have libxpcom.so missing.

   Pretty strange, all were there in place, so i ldd libxul.so, and find that it have libmozjs.so missing, but again that in the very same directory with the other three. another ldd on libmozjs.so indicate that it have nothing missing.

   Can someone tell if this indicates a package dependency problem, or just ldd didn't detect it right. one last thing to note, firefox runs alright, with no problems so far.

   Below is the output from the 4 ldd.

[kevin@solti133 ~]$ ldd /opt/mozilla/lib/xulrunner-1.8.0.1/libmozjs.so
        linux-gate.so.1 =>  (0xffffe000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7e81000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7e7c000)
        libplds4.so => /usr/lib/libplds4.so (0xb7e79000)
        libplc4.so => /usr/lib/libplc4.so (0xb7e74000)
        libnspr4.so => /usr/lib/libnspr4.so (0xb7e42000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7e30000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7d16000)
        /lib/ld-linux.so.2 (0x80000000)
[kevin@solti133 ~]$ ldd /opt/mozilla/lib/xulrunner-1.8.0.1/libxul.so
        linux-gate.so.1 =>  (0xffffe000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7366000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0xb7332000)
        libmozjs.so => not found
        libz.so.1 => /usr/lib/libz.so.1 (0xb7320000)
        libplds4.so => /usr/lib/libplds4.so (0xb731d000)
        libplc4.so => /usr/lib/libplc4.so (0xb7318000)
        libnspr4.so => /usr/lib/libnspr4.so (0xb72e6000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb72d3000)
        libdl.so.2 => /lib/libdl.so.2 (0xb72cf000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb71e1000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb71ce000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb71c5000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7196000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7128000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb6e45000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb6dc6000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6dad000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6d97000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6d8f000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6d55000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6d0b000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6cd1000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb6cce000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6c46000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb6bf5000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb6bcf000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6af2000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb6ae7000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb69cd000)
        /lib/ld-linux.so.2 (0x80000000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb69ca000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb69c4000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb69a4000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb6996000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6993000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb698b000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6986000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb697d000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6978000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6953000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6920000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb6916000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb68fe000)
[kevin@solti133 ~]$ ldd /opt/mozilla/lib/xulrunner-1.8.0.1/libxpcom.so
        linux-gate.so.1 =>  (0xffffe000)
        libxul.so => not found
        libplds4.so => /usr/lib/libplds4.so (0xb7f54000)
        libplc4.so => /usr/lib/libplc4.so (0xb7f4f000)
        libnspr4.so => /usr/lib/libnspr4.so (0xb7f1d000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7f0b000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7f07000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e2a000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7e04000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7df9000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7cdf000)
        /lib/ld-linux.so.2 (0x80000000)
[kevin@solti133 ~]$ ldd /opt/mozilla/lib/xulrunner-1.8.0.1/libgtkembedmoz.so
        linux-gate.so.1 =>  (0xffffe000)
        libxpcom.so => not found
        libxul.so => not found
        libplds4.so => /usr/lib/libplds4.so (0xb7fc2000)
        libplc4.so => /usr/lib/libplc4.so (0xb7fbd000)
        libnspr4.so => /usr/lib/libnspr4.so (0xb7f8b000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7f79000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7f75000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7c91000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7c12000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7bf9000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7be3000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7bdb000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7ba2000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7b57000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7b1d000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7b1a000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7a92000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7a6d000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7990000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7984000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb786a000)
        /lib/ld-linux.so.2 (0x80000000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb777c000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb774d000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb773f000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7735000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7732000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb772a000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7726000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb771d000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7718000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb76f2000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7685000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7673000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7640000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb763d000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7637000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7617000)

And here is the ls -la from that directory:

 ls -la /opt/mozilla/lib/xulrunner-1.8.0.1/
total 13488
drwxr-xr-x  9 root root      704 2006-05-16 14:46 .
drwxr-xr-x  6 root root      232 2006-05-01 02:39 ..
-rwxr-xr-x  1 root root    20740 2006-05-04 08:27 TestGtkEmbed
drwxr-xr-x  2 root root      424 2006-05-16 14:46 chrome
drwxr-xr-x  2 root root     5248 2006-05-16 14:46 components
drwxr-xr-x  6 root root      160 2006-05-16 14:46 defaults
drwxr-xr-x  2 root root      144 2006-05-16 14:46 greprefs
drwxr-xr-x  2 root root      176 2006-05-16 14:46 icons
-rwxr-xr-x  1 root root    79740 2006-05-04 08:27 libgtkembedmoz.so
-rwxr-xr-x  1 root root   642236 2006-05-04 08:27 libmozjs.so
-rwxr-xr-x  1 root root    10064 2006-05-04 08:27 libxpcom.so
-rwxr-xr-x  1 root root 12636660 2006-05-04 08:27 libxul.so
-rwxr-xr-x  1 root root    11908 2006-05-04 08:27 mozilla-xremote-client
drwxr-xr-x  2 root root      120 2006-05-16 14:46 plugins
-rwxr-xr-x  1 root root    32116 2006-05-04 08:27 regxpcom
drwxr-xr-x  8 root root     1824 2006-05-16 14:46 res
-rwxr-xr-x  1 root root    10492 2005-10-01 01:36 run-mozilla.sh
-rwxr-xr-x  1 root root    83848 2006-05-04 08:27 updater
-rwxr-xr-x  1 root root    20532 2006-05-04 08:27 xpcshell
-rwxr-xr-x  1 root root    30656 2006-05-04 08:27 xpicleanup
-rwxr-xr-x  1 root root    80636 2006-05-04 08:27 xpidl
-rwxr-xr-x  1 root root    28900 2006-05-04 08:27 xpt_dump
-rwxr-xr-x  1 root root    22952 2006-05-04 08:27 xpt_link
-rwxr-xr-x  1 root root    18588 2006-05-04 08:27 xulrunner-bin
-rwxr-xr-x  1 root root    28628 2006-05-04 08:27 xulrunner-stub

Offline

#2 2006-05-25 14:50:56

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: xulrunner-1.8.0.1 dependency missing?

The reason why ldd can't find these libs is because we didn't add the location to /etc/ld.so.conf. Xulrunner is used for embedding only, and when you compile something against these xulrunner libs, you have to link in the runtime path with LDFLAGS+=-R/opt/mozilla/lib/xulrunner

This way xulrunner stays out of the way for firefox, thunderbird or whatever mozilla-* app that links to the same libs.

Offline

#3 2006-05-25 14:57:03

learner
Member
Registered: 2006-01-14
Posts: 21

Re: xulrunner-1.8.0.1 dependency missing?

Thanks, it is good to know that there isn't anything wrong with my system after all.

Offline

#4 2006-10-24 22:15:36

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 673
Website

Re: xulrunner-1.8.0.1 dependency missing?

Found this post usefull to make seamonkey stops to cry about "missing" libxpcom.so shared library.

seamonkey started only after I added its /lib PATH to /etc/ld.so.conf. (I eventually added every missing PATH (from echo $PATH) to ld.so.conf)

First I added the PATH but that didn't make any change.

Now seamonkey finally starts smile
Question is : may one edit /etc/ld.so.conf then run ldconfig just when one thinks he needs ?

Réference :

- Arch 64 with seamonkey-1.0.5 compiled from AUR's PKGBUILD.

$ /opt/mozilla/lib/seamonkey/seamonkey-bin
/opt/mozilla/lib/seamonkey/seamonkey-bin: error while loading shared libraries: libxpcom.so: cannot open shared object file: No such file or directory

ldd /opt/mozilla/lib/seamonkey/seamonkey-bin
        libxpcom.so => not found
        libxpcom_core.so => not found
        libmozjs.so => not found
        libplds4.so => /usr/lib/libplds4.so (0x00002b9d7c900000)
        ...

ls -l /opt/mozilla/lib/seamonkey-1.0.5/libxpcom*
-rwxr-xr-x 1 root root   13048 2006-10-18 22:03 /opt/mozilla/lib/seamonkey-1.0.5/libxpcom.so
-rwxr-xr-x 1 root root  148704 2006-10-18 22:03 /opt/mozilla/lib/seamonkey-1.0.5/libxpcom_compat.so
-rwxr-xr-x 1 root root 1102568 2006-10-18 22:03 /opt/mozilla/lib/seamonkey-1.0.5/libxpcom_core.so


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#5 2006-10-24 22:45:40

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: xulrunner-1.8.0.1 dependency missing?

Ehm, seamonkey is an official archlinux package.

2nd: you're not supposed to launch seamonkey-bin, but the seamonkey launcher script, which will look for a seamonkey installation and add that to the LD_LIBRARY_PATH variable, which gets prepended to the contents of /etc/ld.so.conf when executing a program

Offline

#6 2006-10-26 17:45:59

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 673
Website

Re: xulrunner-1.8.0.1 dependency missing?

JGC > do you mean as root ?
In fact sea-monkey auto-launched at the end of the build therafter I totally forgot about pre-launch it as root.


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#7 2006-10-26 20:21:51

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: xulrunner-1.8.0.1 dependency missing?

AFAIK, the mozilla-* packages I build run the required things from the PKGBUILD. Running seamonkey as root isn't required, the PKGBUILD takes care of that.

Offline

#8 2006-10-27 11:05:03

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 673
Website

Re: xulrunner-1.8.0.1 dependency missing?

Then, but I was unable to launch seamonkey after succesfully compiled the PKGBUILD --with seamonkey automatically launching at the end of it-- & installed.
Since then, launching seamonkey as root once made it.


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB