This is a multi-part message in MIME format.

--===============0135299672==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C68896.B2C08467"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C68896.B2C08467
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
I am using 5.2.1 in Linux machine.
=09
I had linked shared library ( .so ) with snmpd binary by setting
$LDFLAGS , $CFLAGS , $CPPFLAGS environment variables.

But while compiling library is linked from the /usr/lib path. Is
this path is specified some where to look for library?

While building snmpd I am getting as,
gcc -D__INITSTAT_ERR_ -D__REQTAG_CHANGE_ -Dlinux -o .libs/snmpd snmpd.o
-L/tmp/yogesh/may22/ ./.libs/libnetsnmpmibs.so
../.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so
.../snmplib/.libs/libnetsnmp.so -ldl -lcrypto -lm -lMyProxy -lMyDummy
-lMyCommon -lUtils -lsftp /usr/lib/libexpat.so

How I can make "/usr/lib/libexpat.so" to "-lexpat"? I should not
change in the Makefile generated in configure script. Every time
configure script should generated with out /usr/lib.

Do I have to set some other env? I had checked LD_LIBRARY_PATH
also, /usr/lib path is not added on this.

Thanks and Regards,
Santhosh


------_=_NextPart_001_01C68896.B2C08467
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable




charset=3Dus-ascii">
6.5.7638.1">
linking shared library




Schoolbook">H Schoolbook">i LANG=3D"en-us">,



LANG=3D"en-us">        FACE=3D"Century Schoolbook">I am using 5.2.1 in Linux =
machine.



LANG=3D"en-us">        LANG=3D"en-us">



LANG=3D"en-us">        FACE=3D"Century Schoolbook">I had linked shared library ( .so ) with =
snmpd binary
LANG=3D"en-us"> by setting FACE=3D"Century Schoolbook"> LANG=3D"en-us"> Schoolbook">$LDFLAGS ,  $CF Schoolbook">LAGS , $CPPFLAGS LANG=3D"en-us"> Schoolbook"> environment LANG=3D"en-us"> Schoolbook">variables LANG=3D"en-us">. LANG=3D"en-us">



LANG=3D"en-us">        FACE=3D"Century Schoolbook">But while compiling library is linked from =
the /
usr/lib path FACE=3D"Century Schoolbook">. Schoolbook">Is this path is specified some where to look for =
lib
FACE=3D"Century Schoolbook">rary?



LANG=3D"en-us">        LANG=3D"en-us"> Schoolbook">While building snmpd LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> FACE=3D"Century Schoolbook">am getting as,



Schoolbook">gcc -D__INITSTAT_ERR_ -D__REQTAG_CHANGE_ -Dlinux -o =
..libs/snmpd snmpd.o  -L/tmp/yogesh/may22/ ./.libs/libnetsnmpmibs.so =
../.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so =
.../snmplib/.libs/libnetsnmp.so -ldl -lcrypto -lm -l
LANG=3D"en-us"> Schoolbook">My LANG=3D"en-us">Proxy =
-l
FACE=3D"Century Schoolbook">My LANG=3D"en-us"> Schoolbook">Dummy - Schoolbook">l LANG=3D"en-us">My LANG=3D"en-us"> Schoolbook">Common -lUtils =
-lsftp
LANG=3D"en-us"> Schoolbook">/usr/lib/libexpat.so LANG=3D"en-us">



LANG=3D"en-us">        FACE=3D"Century Schoolbook">How LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> FACE=3D"Century Schoolbook">can make LANG=3D"en-us"> Schoolbook">“ LANG=3D"en-us">/usr/lib/ FACE=3D"Century Schoolbook">libexpat.so LANG=3D"en-us"> Schoolbook">” LANG=3D"en-us"> to LANG=3D"en-us"> Schoolbook">“ LANG=3D"en-us"> Schoolbook">-lexpat LANG=3D"en-us"> Schoolbook">” LANG=3D"en-us">? FACE=3D"Century Schoolbook"> I =
should not
LANG=3D"en-us"> Schoolbook">change LANG=3D"en-us"> in the =
Makefile
=
generated
LANG=3D"en-us"> Schoolbook"> i LANG=3D"en-us">n configure =
script.
Every time configure =
script should gen
erated with =
out /usr/lib
LANG=3D"en-us">.



LANG=3D"en-us">        FACE=3D"Century Schoolbook">Do LANG=3D"en-us"> Schoolbook">I LANG=3D"en-us"> LANG=3D"en-us"> Schoolbook">have LANG=3D"en-us"> FACE=3D"Century Schoolbook">to set some other env? FACE=3D"Century Schoolbook">I had checked LD_LIBRARY_PATH also, /usr/lib =
path is not added on this.
LANG=3D"en-us">



LANG=3D"en-us"> Schoolbook">Thanks and Regards,



Schoolbook">Santhosh LANG=3D"en-us">







------_=_NextPart_001_01C68896.B2C08467--


--===============0135299672==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0135299672==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0135299672==--