Package: mozilla
Version: 2:1.7.8-1
Severity: important
tags: patch
*** Please type your report below this line ***

Well, only slightly incorrectly. Don't take it personal, y'all.
I do believe this rates as "important" however.

Observation:

I upgraded from woody to sarge recently.
When I run /usr/bin/mozilla or /usr/bin/mozilla-firefox, the
wrapper script exits with status code 1, but no other indication of
a problem. This is mystifying to users...but I digress.


Analysis:

The problem in my case was LD_LIBRARY_PATH.
It gets set to
  
LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins:/usr/lib:${LD_LIBRARY_PATH}

During startup, /usr/lib/mozilla/mozilla-xremote-client searches for
the shared library libgcc_s.so.1. This is located in /lib, which is not
in the search path above. Instead, my system was finding this in
/usr/local/gnu/lib, (ie in my preexisting LD_LIBRARY_PATH) and barfing,
because of a compiler version mismatch (see strace attachment).


Suggested solution:

Trivial patches attached. Can these *please* be applied to the sarge
version as well as unstable.

This could be a problem with the libgcc1 package, ie they are missing
a symlink between /lib/libgcc_s.so.1 and /usr/lib/libgcc_s.so.1,
but I'm guessing the mozilla wrappers are more easily fixed.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages mozilla depends on:
ii  dpkg                          1.10.28    Package maintenance system for Deb
ii  mozilla-browser               2:1.7.8-1  The Mozilla Internet application s
ii  mozilla-mailnews              2:1.7.8-1  The Mozilla Internet application s
ii  mozilla-psm                   2:1.7.8-1  The Mozilla Internet application s

-- no debconf information

...

open("/usr/lib/mozilla/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/mozilla/plugins/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/usr/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/i686/cmov/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/i686/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/openwin/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/X11R6/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/local/gnu/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\23\0\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=815910, ...}) = 0
old_mmap(NULL, 31500, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4034c000
old_mmap(0x40353000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x7000) = 0x40353000
close(3)                                = 0
writev(2, [{"/usr/lib/mozilla/mozilla-xremote"..., 39}, {": ", 2}, 
{"/usr/local/gnu/lib/libgcc_s.so.1", 32}, {":
 ", 2}, {"version `GCC_3.3\' not found (req"..., 65}, {"\n", 1}], 
6/usr/lib/mozilla/mozilla-xremote-client: /usr
/local/gnu/lib/libgcc_s.so.1: version `GCC_3.3' not found (required by 
/usr/lib/libstdc++.so.5)
) = 141
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40354000
exit_group(1)                           = ?

--- /usr/bin/mozilla    2005-05-13 19:36:10.000000000 +1000
+++ ./mozilla   2005-07-04 14:35:59.122974000 +1000
@@ -97,9 +97,9 @@
 ##
 if [ "$LD_LIBRARY_PATH" ]
 then
-  
LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins:/usr/lib:$LD_LIBRARY_PATH
+  
LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins:/usr/lib:/lib:$LD_LIBRARY_PATH
 else
-  LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins:/usr/lib
+  LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins:/usr/lib:/lib
 fi
 
 export LD_LIBRARY_PATH
--- /usr/bin/firefox    2005-05-17 12:07:46.000000000 +1000
+++ ./firefox   2005-07-04 14:36:33.726916000 +1000
@@ -93,7 +93,7 @@
 ##
 ## Set LD_LIBRARY_PATH
 ##
-EXTENT_LD_LIB_PATH=/usr/lib/mozilla-firefox:/usr/lib/mozilla-firefox/plugins:/usr/lib/mozilla/plugins:/usr/lib
+EXTENT_LD_LIB_PATH=/usr/lib/mozilla-firefox:/usr/lib/mozilla-firefox/plugins:/usr/lib/mozilla/plugins:/usr/lib:/lib
 if [ "${LD_LIBRARY_PATH}" ]; then
     LD_LIBRARY_PATH=${EXTENT_LD_LIB_PATH}:${LD_LIBRARY_PATH}
 else

Reply via email to