Library error while opening firefox


 
Thread Tools Search this Thread
Operating Systems Solaris Library error while opening firefox
# 1  
Old 10-31-2013
Library error while opening firefox

I have Solaris-10 zone, where I can open firefox in GUI via MobaXterm with root user, but when I try to open it with non root user, it fails with below error
Code:
$ which firefox
/usr/bin/firefox
$ firefox
ld.so.1: firefox-bin: fatal: relocation error: file /usr/lib/firefox/components/libdocshell.so: symbol PR_GetPhysicalMemorySize: referenced symbol not found
Killed
$ ls -l /lib/sparcv9/ld.so.1 /lib/ld.so.1 /usr/lib/ld.so.1 /usr/lib/sparcv9/ld.so.1 /etc/lib/ld.so.1
lrwxrwxrwx   1 root     root          17 Mar  1  2013 /etc/lib/ld.so.1 -> ../../lib/ld.so.1
-rwxr-xr-x   1 root     bin       281248 Jun 14  2011 /lib/ld.so.1
-rwxr-xr-x   1 root     bin       301600 Jun 14  2011 /lib/sparcv9/ld.so.1
lrwxrwxrwx   1 root     root          17 Feb  7  2009 /usr/lib/ld.so.1 -> ../../lib/ld.so.1
lrwxrwxrwx   1 root     root          28 Feb  7  2009 /usr/lib/sparcv9/ld.so.1 -> ../../../lib/sparcv9/ld.so.1
$

Can somebody point me, what can be its fix ?
# 2  
Old 10-31-2013
From your current environment run the shell command
Code:
ldd /usr/lib/firefox/components/libdocshell.so

and compare with
Code:
env -i ldd /usr/lib/firefox/components/libdocshell.so

Is there a difference?
# 3  
Old 10-31-2013
There is no difference, when I do it from root. But there are differences with no root user. here is from non-root user
Code:
$ ldd /usr/lib/firefox/components/libdocshell.so
        libCrun.so.1 =>  /usr/lib/libCrun.so.1
        libCstd.so.1 =>  /usr/lib/libCstd.so.1
        libmozjs.so =>   /usr/lib/firefox/components/../libmozjs.so
        libxpcom_core.so =>      /usr/lib/firefox/components/../libxpcom_core.so
        libplc4.so =>    /t3/apps/documentum2/product/6.6/bin/libplc4.so
        libplc4.so (NSPR_4.0) =>         (version not found)
        libnspr4.so =>   /t3/apps/documentum2/product/6.6/bin/libnspr4.so
        libnspr4.so (NSPR_4.6) =>        (version not found)
        libm.so.2 =>     /lib/libm.so.2
        libgobject-2.0.so.0 =>   /usr/lib/libgobject-2.0.so.0
        libglib-2.0.so.0 =>      /usr/lib/libglib-2.0.so.0
        libc.so.1 =>     /lib/libc.so.1
        libnspr4.so (NSPR_4.0) =>        (version not found)
        libplds4.so =>   /t3/apps/documentum2/product/6.6/bin/libplds4.so
        libplds4.so (NSPR_4.0) =>        (version not found)
        libplc4.so (NSPR_4.0) =>         (version not found)
        libnspr4.so (NSPR_4.1) =>        (version not found)
        libpthread.so.1 =>       /usr/lib/firefox/../libpthread.so.1
        libdl.so.1 =>    /usr/lib/firefox/../libdl.so.1
        libthread.so.1 =>        /lib/libthread.so.1
        libposix4.so.1 =>        /lib/libposix4.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
        /platform/SUNW,Netra-T12/lib/libc_psr.so.1
        /platform/SUNW,Netra-T12/lib/libmd_psr.so.1
$ env -i ldd /usr/lib/firefox/components/libdocshell.so
        libCrun.so.1 =>  /usr/lib/libCrun.so.1
        libCstd.so.1 =>  /usr/lib/libCstd.so.1
        libmozjs.so =>   /usr/lib/firefox/components/../libmozjs.so
        libxpcom_core.so =>      /usr/lib/firefox/components/../libxpcom_core.so
        libplc4.so =>    /usr/lib/mps/libplc4.so
        libnspr4.so =>   /usr/lib/mps/libnspr4.so
        libm.so.2 =>     /lib/libm.so.2
        libgobject-2.0.so.0 =>   /usr/lib/libgobject-2.0.so.0
        libglib-2.0.so.0 =>      /usr/lib/libglib-2.0.so.0
        libc.so.1 =>     /lib/libc.so.1
        libplds4.so =>   /usr/lib/mps/libplds4.so
        libpthread.so.1 =>       /usr/lib/firefox/../libpthread.so.1
        libdl.so.1 =>    /usr/lib/firefox/../libdl.so.1
        librt.so.1 =>    /lib/librt.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
        /usr/lib/mps/cpu/sparcv8plus/libnspr_flt4.so
        /platform/SUNW,Netra-T12/lib/libc_psr.so.1
        /platform/SUNW,Netra-T12/lib/libmd_psr.so.1
$
$ ldd /usr/lib/firefox/components/libdocshell.so >> /tmp/121212
$ env -i ldd /usr/lib/firefox/components/libdocshell.so >> /tmp/454545
$ diff /tmp/121212 /tmp/454545
5,8c5,6
<       libplc4.so =>    /t3/apps/documentum2/product/6.6/bin/libplc4.so
<       libplc4.so (NSPR_4.0) =>         (version not found)
<       libnspr4.so =>   /t3/apps/documentum2/product/6.6/bin/libnspr4.so
<       libnspr4.so (NSPR_4.6) =>        (version not found)
---
>       libplc4.so =>    /usr/lib/mps/libplc4.so
>       libnspr4.so =>   /usr/lib/mps/libnspr4.so
13,17c11
<       libnspr4.so (NSPR_4.0) =>        (version not found)
<       libplds4.so =>   /t3/apps/documentum2/product/6.6/bin/libplds4.so
<       libplds4.so (NSPR_4.0) =>        (version not found)
<       libplc4.so (NSPR_4.0) =>         (version not found)
<       libnspr4.so (NSPR_4.1) =>        (version not found)
---
>       libplds4.so =>   /usr/lib/mps/libplds4.so
20,21c14
<       libthread.so.1 =>        /lib/libthread.so.1
<       libposix4.so.1 =>        /lib/libposix4.so.1
---
>       librt.so.1 =>    /lib/librt.so.1
31a25
>       /usr/lib/mps/cpu/sparcv8plus/libnspr_flt4.so
$

# 4  
Old 11-01-2013
You have an incompatible component /t3/apps/documentum2/product/6.6/bin/libplds4.so in your environment variable LD_LIBRARY_PATH.
Verify with
Code:
echo $LD_LIBRARY_PATH

Try
Code:
unset LD_LIBRARY_PATH
firefox

# 5  
Old 11-01-2013
Yes, I can open firefox after unsetting it.
Code:
/t3/apps/documentum$ firefox
ld.so.1: firefox-bin: fatal: relocation error: file /usr/lib/firefox/components/libdocshell.so: symbol PR_GetPhysicalMemorySize: referenced symbol not found
Killed
/t3/apps/documentum$ echo $LD_LIBRARY_PATH
/usr/lib:/t3/apps/wl/8.1.6/jdk142_11/lib:/t3/apps/documentum/product/5.3/bin:/t3/apps/documentum/fulltext/verity271/_ssol26/bin:/t3/oracle/product/9.2.0/lib:/t3/data/documentum/share/dfc:/t3/apps/wl/8.1.6/jdk142_11/jre/lib:/t3/apps/wl/8.1.6/jdk142_11/jre/lib/sparc/client
/t3/apps/documentum$ unset LD_LIBRARY_PATH
/t3/apps/documentum$ echo $LD_LIBRARY_PATH
/t3/apps/documentum$ firefox

But these env variables are needed for their application. Do we know, what can be done to fix this ?
# 6  
Old 11-01-2013
Fix your application more close to the application - so it does not impact other applications.
Maybe your /path/to/application is a start script?
Then insert at the beginning
Code:
export LD_LIBRARY_PATH; LD_LIBRARY_PATH=...

# 7  
Old 11-01-2013
or just unset it specifically for firefox:
Code:
LD_LIBRARY_PATH= firefox

These 2 Users Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

LibGL error when opening GUI version of MATLAB

Hi all, Today, I have a question regarding a libGL error. Currently, I access linux server by using the terminal application in MAC. However, when I try to use GUI version of MATLAB, I have faced an error message as shown below. libGL error: No matching fbConfigs or visuals found libGL... (1 Reply)
Discussion started by: syg3434
1 Replies

2. AIX

Opening a file in vi editor is giving out of memory error

Below is the error: Out of memory saving lines for undo - try using ed : Please help me how do I open this file. Best regards, Vishal (5 Replies)
Discussion started by: Vishal_dba
5 Replies

3. AIX

Error opening device: /dev/fscsi0

Hello, One one of my AIX boxes I'm having the following errror: fcstat fcs0: Port Speed (supported): 4 GBIT Error opening device: /dev/fscsi0 errno: 0000003d Has anyone encountered similar errors? Thank you! (1 Reply)
Discussion started by: aixn00b
1 Replies

4. Solaris

Error opening PAM libraries : solaris 10 on vmware workstation

Hi Admins, I am facing an issue with Solaris 10 sitting on vmware workstation... When I start it, it gives me an error : "Error opening PAM libraries, contact system administrator" Also I can reach it via putty, but none of the id/passwd working. I did revert pam.conf. But still no... (2 Replies)
Discussion started by: snchaudhari2
2 Replies

5. Slackware

I/O Error on starting firefox

I was trying to open the port for my ftp end also I´ve triedto start firefox and so i received the following error: Input / Output Error. When i try to start that one in console i receive the following: No Protocol Especified No Protocol Especified Error: Cannot open display: :0,0 (1 Reply)
Discussion started by: darkpirate
1 Replies

6. Windows & DOS: Issues & Discussions

Error opening script file - location error

Hello, I know nothing about UNIX, ftp, etc. I am building an excel VBA macro which calls a .bat file. I've taken a pre-existing batch file and am trying to modify it to fit my purposes. I would be very grateful for some assistance. Here is my .bat file: echo off set... (9 Replies)
Discussion started by: starcraftbud
9 Replies

7. Programming

Error in opening a file C++

Hi, I have written a function which will open the file with the input name provided.Input name is in string format so while opening I am converting it using c_str().detail code below Plz let me know what is the wrong in code. 1 #include<iostream> 2 #include<fstream> 3 ... (4 Replies)
Discussion started by: forstudy3
4 Replies

8. Windows & DOS: Issues & Discussions

error opening website

hi I have unusual problem you might say. I can't open microsoft.com , I've checked file hosts located somewhere in windows/system32/drivers .. and its not blocked from there, what else could cause this problem, I need to download microsoft visual studio and I can't cause I can't open the website,... (1 Reply)
Discussion started by: c0mrade
1 Replies

9. Programming

Error found while opening any pdf file from IE 6

Hello All, My application is followed J2ee architecture. It contains Java and jsp codes. This application generates some reports in pdf format. I am using Weblogic 10.3 and jdk 6. While I want to open the pdf in IE 6 with service pack 2 , the pdf not showing properly. It comes in byte code.... (3 Replies)
Discussion started by: priyankak
3 Replies

10. Shell Programming and Scripting

error while opening files in a directory

I tried opening the files in a directory and print thier names. But it was thowing the error "unable to open directorty at t5.pl line 2." Can u plz correct this error in below mentioned code. #!/data/scoredev/perl opendir(HOMEDIR,"c:\vin") || die("unable to open directorty");... (3 Replies)
Discussion started by: vinay123
3 Replies
Login or Register to Ask a Question