Subject: 1.2.1 Dynamic Library problem
To: None <netbsd-help@NetBSD.ORG>
From: Michael Maciolek <mikem@centerline.com>
List: netbsd-help
Date: 08/12/1997 09:28:38
I'm running the 1.2.1 Sparc release - nice job! - but I'm having problems
with some of the X dynamic libraries, and I don't know if the problem is
with those particular libraries, or with the dynamic library system as a
whole.

If I just set LD_LIBRARY_PATH to include the X libraries (/usr/X11R6/lib)
and run an X application, the app says it can't find certain libraries.

'ldd' reveals some interesting information...some libraries seem OK, and
others are listed twice; the first time, the library is found, but the
second time, the library is not found.  (see example below)

Finally, I've found that if I run 'ldconfig /usr/X11R6/lib' everything
runs perfectly.

I'm aware that setuid programs ignore LD_LIBRARY_PATH, but xclock is not
setuid.  Can anyone enlighten me?  I'll be happy to RTFM if someone will
be so kind as to tell me which FM to R.

I've observed the problem both as root and as an ordinary user.

Here's an example that illustrates the problem.

netbsd# setenv LD_LIBRARY_PATH /usr/X11R6/lib
netbsd# /usr/X11R6/bin/xclock -display beat:0
/usr/libexec/ld.so: xclock: libXext.so.6.1: No such file or directory
netbsd# ldd /usr/X11R6/bin/xclock
/usr/X11R6/bin/xclock:
        -lXaw.6 => /usr/X11R6/lib/libXaw.so.6.1 (0x4040000)
        -lXmu.6 => /usr/X11R6/lib/libXmu.so.6.0 (0x4080000)
        -lXext.6 => /usr/X11R6/lib/libXext.so.6.1 (0x40a0000)
        -lXt.6 => /usr/X11R6/lib/libXt.so.6.0 (0x40b0000)
        -lX11.6 => /usr/X11R6/lib/libX11.so.6.1 (0x4100000)
        -lSM.6 => /usr/X11R6/lib/libSM.so.6.0 (0x41a0000)
        -lICE.6 => /usr/X11R6/lib/libICE.so.6.0 (0x41b0000)
        -lc.12 => /usr/lib/libc.so.12.5 (0x41d0000)
        -lXext.6 => not found (0x0)
        -lXt.6 => not found (0x0)
        -lX11.6 => not found (0x0)

Thank you for any assistance!

	regards,

	Michael