Subject: dynamic linking
To: None <tech-userlevel@netbsd.org>
From: Lucio De Re <lucio@proxima.alt.za>
List: tech-userlevel
Date: 03/19/2003 10:31:58
I have no doubt that the answer to this question is trivial and I'll
kick myself for not realising it.

I have a freshly compiled copy of rdesktop 1.2.0
<http://www.rdesktop.org/> that complains, when I execute:

	Shared object "libX11.so.6" not found

This is a fairly straight-forward

	NetBSD sparkle 1.5.2 NetBSD 1.5.2 (TWINKLE) #0: Tue Aug 20 15:31:19 SAST 2002   

configuration and I don't understand what went astray during the
compilation.  Adding

	export LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib:/usr/pkg/lib:/usr/local/lib

solves the problem perfectly adequately, but I'm lost as to why this
is required.  I thought I knew how ".so"s worked, but evidently I'm
missing something.

All help appreciated.

++L