[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dynamic linking under emulation (and netscape)
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Dynamic linking under emulation (and netscape)
- From: matthew patton <mep_(_at_)_netsec_(_dot_)_net>
- Date: Tue, 22 Feb 2000 19:15:03 -0500 (EST)
I was playing with Netscape for FreeBSD and I have most if not all of the
files I need. The problem is that netscape tries to resolve the libraries
it needs and is apparently running OpenBSD's ld.so instead of the FreeBSD
one I have in /emul/freebsd. Namely the error I get is:
ld.so failed: Undefined symbol "__tolower_tab_" in
netscape:/usr/X11R6/lib/libX11.so.6.1
First, how come our (OpenBSD's) libX11 doesn't have this routine?
Now if I run FreeBSD's ldd (chrooted, otherwise it cores - anyone know
why??) on the netscape binary I get
/usr/local/netscape/netscape:
-lXt.6 => /usr/lib/aout/libXt.so.6.0 (0x4067d000)
-lXmu.6 => /usr/lib/aout/libXmu.so.6.0 (0x406b9000)
-lXext.6 => /usr/lib/aout/libXext.so.6.3 (0x406c9000)
-lX11.6 => /usr/lib/aout/libX11.so.6.1 (0x406d2000)
-lSM.6 => /usr/lib/aout/libSM.so.6.0 (0x40763000)
-lICE.6 => /usr/lib/aout/libICE.so.6.3 (0x4076b000)
-lg++.4 => /usr/lib/aout/libg++.so.4.0 (0x4077c000)
-lstdc++.2 => /usr/lib/aout/libstdc++.so.2.0 (0x407b8000)
-lm.2 => /usr/lib/aout/libm.so.2.0 (0x407ee000)
-lc.3 => /usr/lib/aout/libc.so.3.1 (0x40808000)
which doesn't appear to have a problem resolving stuff since FreeBSD's
ld.so knows where to look. And if I chroot myself down to /emul/freebsd
and run netscape, I get X11 errors "can't connect to server on
localhost:0.0" This latter I can understand, it's an artifact of being
chrooted.
Is it possible to instruct netscape (or any freebsd application) to use
the ld.so in /emul/freebsd/usr/libexec instead of OpenBSD's? That would be
nice.
Or is the workaround simply to use LD_LIBRARY_PATH? (which does work, BTW)
For those who care, I have a Freebsd-lib package that is the essence of a
freebsd system to get said apps running. It's from their v3.2
release. mail me if you want to test. As far as I can tell, compared to
the BSDI version, it fairly screams.
--
Network Security Technologies Inc. - Commercial support for OpenBSD
www.netsec.net (703) 561-0420 matthew_(_dot_)_patton_(_at_)_netsec_(_dot_)_net
"Government is not reason; it is not eloquence; it is force!
Like fire, it is a dangerous servant and a fearful master."
- George Washington
Visit your host, monkey.org