Mozilla fails to launch on Solaris

"Alan M. Feldstein" <[email protected]> Wed, 11 May 2005 19:01:07 -0500
Newsgroups gmane.comp.mozilla.devel.unix
Organization Global Network Services - Remote Access Mail & News Services
Message-ID <[email protected]>
fonzie% mozilla &
[1] 502
fonzie% ld.so.1: /usr/sfw/lib/mozilla/mozilla-bin: fatal: relocation 
error: file /usr/sfw/lib/mozilla/mozilla-bin: symbol gtk_init: 
referenced symbol not found
Killed

[1]    Exit 137             mozilla
fonzie%



See
http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-init


I know that /usr/lib is on Solaris' default search path.


fonzie% ls -l /usr/lib/*gtk*
lrwxrwxrwx   1 root     root          21 Jun 29  2004 
/usr/lib/libgtkhtml-2.so -> libgtkhtml-2.so.0.0.0
lrwxrwxrwx   1 root     root          21 Jun 29  2004 
/usr/lib/libgtkhtml-2.so.0 -> libgtkhtml-2.so.0.0.0
-rwxr-xr-x   1 root     other     467108 May 13  2003 
/usr/lib/libgtkhtml-2.so.0.0.0
lrwxrwxrwx   1 root     root          25 Jun 29  2004 
/usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.100.0
lrwxrwxrwx   1 root     root          25 Jun 29  2004 
/usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.100.0
-rwxr-xr-x   1 root     other    3234852 Jul 14  2003 
/usr/lib/libgtk-x11-2.0.so.0.100.0

/usr/lib/gtk-2.0:
total 6
drwxr-xr-x   5 root     other        512 Jun 29  2004 2.0.100
drwxr-xr-x   2 root     other        512 Jun 29  2004 include
drwxr-xr-x   2 root     other        512 Jun 29  2004 modules
fonzie%



I reinstalled the following packages:


SUNWmoznav
SUNWGtkr
SUNWGtku


The problem persists. I also set environment variable LD_DEBUG to 
"reloc" to display relocation processing:



...
00776: 1: ld.so.1: /usr/sfw/lib/mozilla/mozilla-bin: fatal: 
libiconv.so.2: open failed: No such file or directory
00776: 1:
00776: 1:
00776: 1: ld.so.1: /usr/sfw/lib/mozilla/mozilla-bin: fatal: relocation 
error: file /usr/sfw/lib/mozilla/mozilla-bin: symbol gtk_init: 
referenced symbol not found
00776: 1:
ld.so.1: /usr/sfw/lib/mozilla/mozilla-bin: fatal: relocation error: file 
/usr/sfw/lib/mozilla/mozilla-bin: symbol gtk_init: referenced symbol not 
found
Killed
...



Note the earlier problem with libiconv.so.2. It is true that that shared 
object is missing from /usr/lib but I don't know what package it is in, 
in order to reinstall it.

By the way, this is Solaris 9 4/04 for SPARC with Mozilla Suite 1.4.

I nondestructively (i.e. "upgrade") reinstalled Solaris and the problem 
persists!

Mozilla had been functional. The problem seems to have begun when I 
attempted to install ("make install" as root) a program called ffmpeg, a 
prerequisite for the following Sun-suggested DVD video player solution:

http://www.sun.com/bigadmin/descAll/dvd_for_solaris.html