build time options to set the runtime library path

From: Stuart_Weaver@ElementK.com
Date: Wed Mar 09 2005 - 11:14:13 EST


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
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:19 EDT