Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65226

Summary: epiphany-1.4.0 does not work with nspr-4.4.1 installed
Product: Gentoo Linux Reporter: Jonathan Briggs <zlynx>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: amd64, azarah, cp, jackmort37, jlp.bugs, mozilla, sebastian
Priority: High    
Version: 2004.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 64135, 66864    

Description Jonathan Briggs 2004-09-24 09:43:15 UTC
I discovered that epiphany-1.4.0 would not run because it could not find needed symbols in its libraries.  It turns out that it was linking to /usr/lib/libnspr.so instead of the libraries in /usr/lib/mozilla.

Uninstalling the nspr package fixed the problem but this is probably not a long term solution because other installed packages depend on nspr.

Reproducible: Always
Steps to Reproduce:
1.  Install nspr
2.  Install epiphany-1.4.0
3.  Run epiphany

Actual Results:  
epiphany did not start.

Expected Results:  
It should have run my currently favorite web browser.

# emerge info
Portage 2.0.51_rc1 (default-linux/amd64/gcc34-2004.2, gcc-3.4.2,
glibc-2.3.4.20040808-r0, 2.6.9-rc2 x86_64)
=================================================================
System uname: 2.6.9-rc2 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -funit-at-a-time -ffast-math -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -funit-at-a-time -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox strict"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.ccccom.com
http://128.213.5.34/gentoo/ http://gentoo.osuosl.org/
http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 avi berkdb bonobo cdr crypt cups dmx dvd dvdr edl eds
encode esd evo flac foomaticdb gcj gdbm gif gnome gpm gstreamer gtk gtk2 guile
hal imap imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mozsvg
mpeg ncurses nls nomultilib nptl nvidia offensive oggvorbis opengl pam pcmcia
pdflib perl png python quicktime readline rtc samba sdl slang spell ssl svg tcpd
theora tiff truetype unicode usb wmf xml2 xmms xprint xv xvid xvmc zlib"
Comment 1 foser (RETIRED) gentoo-dev 2004-09-24 23:53:50 UTC
what were the exact errors ? Did mozilla itself run without errors ?
Comment 2 Jonathan Briggs 2004-09-27 08:31:45 UTC
epiphany: symbol lookup error: /usr/lib/mozilla/components/libnecko.so: undefined symbol: PR_GetAddrInfoByName

And yes, Mozilla itself works fine.
Comment 3 Jonathan Briggs 2004-09-27 08:53:32 UTC
Another clue and workaround!

LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib epiphany

runs fine.  So the problem seems to be in the order of library lookups.
Comment 4 jack_mort 2004-09-28 09:46:18 UTC
I also have the same problem and the same workaround !
Comment 5 foser (RETIRED) gentoo-dev 2004-09-30 08:59:43 UTC
i guess.. can both libs be installed at the same time mozilla team ?
Comment 6 foser (RETIRED) gentoo-dev 2004-10-04 02:35:46 UTC
using nspr-4.4.1 ? afaik azarah added a fix to it, so it wouldn't put it's libs in /usr/lib anymore, but it didn't get rev bumped. So please rebuild & check if there's still a problem.
Comment 7 jack_mort 2004-10-04 09:31:10 UTC
For me, re-emerging din't solve the problem...

BTW, here's my emerge info :

Portage 2.0.51_rc7 (default-linux/amd64/gcc34-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.8-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe -ftracer -fweb -momit-leaf-frame-pointer -fweb -frename-registers -fno-asynchronous-unwind-tables"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -ftracer -fweb -momit-leaf-frame-pointer -fweb -frename-registers -fno-asynchronous-unwind-tables"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 audiofile avi bitmap-fonts cdr crypt cups dedicated dga dvd dvdr encode esd fam flac foomaticdb gif gnome gtk gtk2 hal imagemagick imlib java jpeg mad matroska mikmod mozilla mpeg multilib ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell ssl tcpd tiff truetype unicode wmf xml xml2 xprint xv zlib"
Comment 8 foser (RETIRED) gentoo-dev 2004-10-10 09:07:52 UTC
*** Bug 66925 has been marked as a duplicate of this bug. ***
Comment 9 foser (RETIRED) gentoo-dev 2004-10-11 09:16:07 UTC
*** Bug 67113 has been marked as a duplicate of this bug. ***
Comment 10 Philip Walls (RETIRED) gentoo-dev 2004-10-11 14:44:46 UTC
I have the same problem. In my case Epiphany does start, but it does not ever resolve the IP address of the host put into the address bar. Using the stated workaround does fix the problem (in both mozilla-firefox and epiphany). mozilla-firefox-bin does not suffer from this problem.

Typing a specific IP in the address bar does work fine.


Portage 2.0.51_rc9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.8-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /usr/X11R6/lib/X11/xkb /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 apache2 apm avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode evo f77 foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imap imlib java jpeg libg++ libwww mad maildir mikmod motif mozilla moznocompose moznoirc moznomail mpeg multilib mysql ncurses network nls nogcj nvidia oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang snmp spell ssl svg tcltk tcpd tiff truetype v4l2 xml2 xprint xv zlib"
Comment 11 jack_mort 2004-10-17 14:42:27 UTC
The upgrade to 1.4.4 didn't solve the problem :-(
Comment 12 Mike Gardiner (RETIRED) gentoo-dev 2004-11-08 19:53:28 UTC
foser, azarah's patch was to not install the libraries in /usr/bin, not /usr/lib.

@reporters: okay, I have mozilla-1.7.3 installed (with libnspr4.so in /usr/lib/mozilla/), and I have nspr-4.4.1 installed (with libnspr4.so in /usr/lib) and epiphany-1.4.4 always links correctly to /usr/lib/mozilla/libnspr4.so.

Jonathon and Jack, can you please remerge with lower CFLAGS?

I notice you're all using amd64 as well, and I don't see this problem on x86 or ppc. 

@amd64 team: could this be at all related to some sort of multi-lib handling?

Comment 13 Travis Tilley (RETIRED) gentoo-dev 2004-11-10 20:43:37 UTC
can everyone here "ldd `which epiphany` | grep nspr" ?

i mean the devs on x86 with working epiphany installs with nspr also installed as well.
Comment 14 Mike Gardiner (RETIRED) gentoo-dev 2004-11-11 00:04:19 UTC
obz@azure obz $ ldd /usr/bin/epiphany | grep nspr
libnspr4.so => /usr/lib/mozilla/libnspr4.so (0x0fd21000)
Comment 15 jack_mort 2004-11-11 00:45:25 UTC
For me :

gentoo ~ # ldd `which epiphany` | grep nspr
	libnspr4.so => /usr/lib/libnspr4.so (0x0000002a95eb4000)

So, it doesn't use mozilla's one !
Comment 16 Jonathan Briggs 2004-11-11 08:58:09 UTC
AMD64 laptop:
$ ldd /usr/bin/epiphany  | grep nspr
libnspr4.so => /usr/lib/libnspr4.so (0x00000031c7900000)

I've been using a script that sets LD_LIBRARY_PATH as a workaround.
Comment 17 Jonathan Briggs 2004-11-11 09:28:19 UTC
Here's why, although I don't know how it got this way.  Probably something in the compile/link options in the build scripts.

x86 system:
$ objdump -x /usr/bin/epiphany | grep RPATH
  RPATH       /usr/lib/gcc/i686-pc-linux-gnu/3.4.2:/usr/lib/mozilla

amd64 system:
$ objdump -x /usr/bin/epiphany | grep RPATH
  RPATH       /usr/lib:/usr/lib/mozilla
Comment 18 Alastair Tse (RETIRED) gentoo-dev 2004-11-15 07:33:03 UTC
can you try the newest nspr? this was fixed a while back but the version never updated. nspr should be installed in its own directory /usr/lib/nspr/
Comment 19 Jean Bréfort 2004-11-17 02:31:24 UTC
On my amd64 nspr still installs itself in /usr/lib. No /usr/lib/nspr directory!
Comment 20 jack_mort 2004-11-17 11:33:07 UTC
Yep, same thing here. nspr is still in /usr/lib...
Comment 21 Alastair Tse (RETIRED) gentoo-dev 2004-11-17 13:20:15 UTC
tried -r1 ?
Comment 22 jack_mort 2004-11-17 13:37:11 UTC
Yep, it's 4.4.1-r1 which is installed, and epiphany recompiled as well.
Comment 23 Travis Tilley (RETIRED) gentoo-dev 2004-11-24 21:02:50 UTC
just fixed this in nspr 4.4.1-r2. have a blast :)