Subject: Re: ldconfig
To: Jean-Edouard BABIN <listes@Jeb.com.fr>
From: Frederick Bruckman <fb@enteract.com>
List: port-i386
Date: 06/14/2001 12:28:07
On Thu, 14 Jun 2001, Jean-Edouard BABIN wrote:

> i compil it on net-bsd 1.5, and when i run it, after the compilation, i get
> message like "cannot found .././libs/snmp.so" (it's an example) when i type
> smnpd or snmpget...
> if i start the programe from his direcctory i haven't any probleme because
> he can found ../.libs/snmp.so

With the ELF toolchain, you should pass an argument to the linker to
encode the path to where the runtime libs may be found. (There is no
system-wide path, as with a.out and ldconfig.) Assuming that the
shared libraries will be installed into /usr/local/lib, you may be
able to simply set "LDFLAGS=-Wl,-R/usr/local/lib" or
"LIBS=-Wl,-R/usr/local/lib" in the environment before running
"configure". Alternatively, you could set
LD_LIBRARY_PATH=/usr/local/lib in the environment of the improperly
built program(s) at run-time, but that's a hack.

If you didn't know, NetBSD "pkgsrc" has both ucd-snmp and windowmaker.
Look here:

  http://www.netbsd.org/Documentation/software/packages.html


Frederick