linking error libnetsnmpagent.so: undefined reference to

This is a discussion on linking error libnetsnmpagent.so: undefined reference to within the SNMP Users forums, part of the Networking and Network Related category; --===============0712475938== Content-Type: multipart/alternative; boundary="----=_Part_18509_11170598.1181735376112" ------=_Part_18509_11170598.1181735376112 Content-Type: text/plain; charset=ISO-8859-1; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2007
Anjali Riat
 
Posts: n/a
Default linking error libnetsnmpagent.so: undefined reference to

--===============0712475938==
Content-Type: multipart/alternative;
boundary="----=_Part_18509_11170598.1181735376112"

------=_Part_18509_11170598.1181735376112
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I have recently upgraded the netsnmp version we are using from
net-snmp-5.3.1 to net-snmp-5.4. I used the following installation
procedure -
./configure --with-perl-modules
make
make install

After upgrade, on compiling the agent code, I received the following linking
errors -
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`perl_construct'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`perl_parse'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`Perl_newXS'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`perl_run'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`boot_DynaLoader'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`Perl_eval_pv'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`perl_destruct'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`perl_alloc'
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`perl_free'
collect2: ld returned 1 exit status

These I have managed to resolve by modifying the Makefile to add the libperl
library to the libraries being linked. I am now facing the following error
-
../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to
`boot_DynaLoader'
collect2: ld returned 1 exit status
make: *** [snmpAgent] Error 1

Need some info on how this can be resolved.

Thanks in advance,
Anjali

------=_Part_18509_11170598.1181735376112
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, <br><br>I have recently upgraded the netsnmp version we are using from net-snmp-5.3.1 to net-snmp-5.4.&nbsp;&nbsp; I used the following installation procedure - <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./configure --with-perl-modules <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make install
<br><br>After upgrade, on compiling the agent code, I received the following linking errors - <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_construct' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_parse'
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `Perl_newXS' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_run' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `boot_DynaLoader'
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `Perl_eval_pv' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_destruct' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_alloc'
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_free' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collect2: ld returned 1 exit status <br><br>These I have managed to resolve by modifying the Makefile to add the libperl library to the libraries being linked.&nbsp; I am now facing the following error -
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `boot_DynaLoader' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collect2: ld returned 1 exit status <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make: *** [snmpAgent] Error 1 <br><br>Need some info on how this can be resolved.
<br><br>Thanks in advance, <br>Anjali <br>

------=_Part_18509_11170598.1181735376112--


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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============0712475938==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0712475938==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0