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; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============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. I used the following installation procedure - <br> ./configure --with-perl-modules <br> make <br> make install <br><br>After upgrade, on compiling the agent code, I received the following linking errors - <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_construct' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_parse' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `Perl_newXS' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_run' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `boot_DynaLoader' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `Perl_eval_pv' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_destruct' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_alloc' <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `perl_free' <br> 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. I am now facing the following error - <br> ../../cots/netsnmp/lib/libnetsnmpagent.so: undefined reference to `boot_DynaLoader' <br> collect2: ld returned 1 exit status <br> 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==-- |