Re: libc5 applications (Netscape, StarOffice, WordPerfect) segfault
-----BEGIN PGP SIGNED MESSAGE-----
On 2 Jun 1998, Tor Slettnes wrote:
> It seems that if I have /usr/X11R6/lib in my $LD_LIBRARY_PATH,
> libc5 applications such as Netscape, StarOffice 4.0 and WordPerfect
> causes segmentation fault right away.
Here's my best attempt at an explanation of all this. The libs in
/usr/X11R6/lib (mostly) are built with dependencies on libc6. Setting
LD_LIBRARY_PATH overrides the setting in /etc/ld.so.conf, forcing netscape
to link with the libc6 dependant libraries. If, when you've got the
LD_LIBRARY_PATH set, you do an ldd on the netscape executable, you'll see
that it is linking with both libc5 and libc6. This is BAD, and won't
work. By not setting LD_LIBRARY_PATH, you're letting ld.so figure out
which are the correct libraries to link with netscape (based on
dependencies built in to the libraries), and the crash doesn't occur. If
you do an ldd on the netscape executable *without* LD_LIBRARY_PATH set,
then you'll see that it only links with libc5, which is correct.
So, to sum it up, when netscape is dynamically linked with the libs in
/usr/X11R6/lib, it is also forced to link with libc6. Since it wasn't
built against libc6, it crashes.
I hope this was clear and helpful (and more or less correct).
PGP public key available at
or by 'finger -l email@example.com'
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com