Dave,
Thanks for the response. Below is the output for the command
$ net-snmp-config --agent-libs
-L/usr/local/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp
-ldl -lcrypto -lm
And below is how iam compiling net-snmp
./configure \
14 --prefix=${INSTALL_DIR} \
15 --with-default-snmp-version="2" \
16 --with-mibdirs=${INSTALL_DIR}/snmp/mibs \
17 --with-sys-contact="[EMAIL PROTECTED]" \
18 --with-sys-location="Aylus Networks" \
19 --with-logfile="${INSTALL_DIR}/var/log/snmpd.log" \
20 --with-persistent-directory="${INSTALL_DIR}/var/net-snmp" \
21 --without-perl-modules\
22 --with-libwrap="yes"
Thanks,
Anu.
-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 4:20 AM
To: Anusuja Gagganapally
Cc: [email protected]
Subject: Re: Undefined reference to perl_construct when compiling
netsnmp
On 06/03/07, Anusuja Gagganapally <[EMAIL PROTECTED]> wrote:
> I have recently upgraded the net-snmp to 5.4 . I could compile
net-snmp
> without any problem , but when I try to compile my local code , which
uses
> netsnmp library , the following happens.
> /opt/aylus/lib/libnetsnmpagent.so: undefined reference to
> `perl_construct'
> `perl_parse'
<etc>
It looks as if the agent was probably compiled with support for
embedded perl
> L../../../../platform/ams/.atca/lib
> -L../../../../common/.atca/lib
> -L../../../../platform/log/logapi/.atca/lib -lams
> -lcommon -llogapi
> -L../../../../platform/pmutil/.atca/lib
> -L../../../../platform/ahm/.atca/lib
> -L../../../../platform/log/logapi/.atca/lib
> -L../../../../platform/enm/.atca/lib -lpmutil -lahm
> -llogapi -lenm /opt/aylus/lib/libnetsnmp.so
> /opt/aylus/lib/libnetsnmpagent.so
> /opt/aylus/lib/libnetsnmpmibs.so
> /opt/aylus/lib/libnetsnmphelpers.so -lpmutil -lahm
> -llogapi -lenm
What is the output of
net-snmp-config --agent-libs
?
How does this compare to the linking flags that you are
using? (See above)
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users