build time options to set the runtime library path

2007-12-25 4:38:00

I am having problems trying to find the right build time options to set
the runtime library path; I want to include non-default system library
paths.

For example when I try to run snmpwalk I receive the following error:
ld.so.1: snmpwalk: fatal: libcrypto.so.0.9.7: open failed: No such file or
directory

I can work around this problem by setting LD_LIBRARY_PATH or updating the
runtime linking environment using crle, but I would rather recompile the
binaries with the correct search path.

I have tried giving the following options to the net-snmp configure script
with no luck(in this example libcrypto.so.0.9.7 is located in
/usr/local/ssl/lib):

--with-cflags="-L/usr/local/ssl/lib"
--with-ldflags="-L/usr/local/ssl/lib -l"
--with-ldflags="-R/usr/local/ssl/lib"

I am using gcc version 3.3.2 on Solaris 9.
Any help would be great.

Thank you in advance,

Stuart Weaver
Unix Systems Administrator
Element K
500 Canal View Blvd.
Rochester, NY 14620

Comments

Got something to say?

You must be logged in to post a comment.