Styma, Robert E (Robert)
2013-Oct-07 01:10 UTC
[CentOS] Unresolved references in libnetsnmpagent.so
Hi, I am running an up to date centos5.9 system. The package, net-snmp-devel-5.3.2.2-20.el5 Contains among oteher things: /usr/lib/libnetsnmpagent.so When I link with this library (-lnetsnmpagent), I get a bunch of unresolved references.: My Google searches has not given me hints to where the C to Perl library exists. I would guess that yum would have loaded the correct package as a dependency: Could someone point me to the correct library? Thank you. /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_free' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_parse' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `Perl_eval_pv' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_run' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_alloc' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `make_tempfile' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `boot_DynaLoader' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_construct' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_destruct' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `hosts_ctl' /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `Perl_newXS' Bob Styma Phoenix, AZ
From: "Styma, Robert E (Robert)" <robert.styma at alcatel-lucent.com>> ? I am running an up to date centos5.9 system. > The package, > net-snmp-devel-5.3.2.2-20.el5 > > Contains among oteher things: > /usr/lib/libnetsnmpagent.so > > When I link with this library (-lnetsnmpagent), I get a bunch of unresolved > references.: > My Google searches has not given me hints to where the C to Perl library exists. > I would guess that yum would have? loaded the correct package as a dependency: > > Could someone point me to the correct library? > Thank you. > > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `perl_free' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `perl_parse' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `Perl_eval_pv' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `perl_run' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `perl_alloc' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `make_tempfile' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `boot_DynaLoader' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `perl_construct' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `perl_destruct' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `hosts_ctl' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined > reference to `Perl_newXS' > > Bob Styma > Phoenix, AZ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >Not sure what you mean by "C to Perl library" but does the following find something...? ? grep -ri 'perl_eval_pv' /usr/lib*/perl* JD
On 10/06/2013 08:10 PM, Styma, Robert E (Robert) wrote:> Hi, > I am running an up to date centos5.9 system. > The package, > net-snmp-devel-5.3.2.2-20.el5 > > Contains among oteher things: > /usr/lib/libnetsnmpagent.so > > When I link with this library (-lnetsnmpagent), I get a bunch of unresolved references.: > My Google searches has not given me hints to where the C to Perl library exists. > I would guess that yum would have loaded the correct package as a dependency: > > Could someone point me to the correct library? > Thank you. > > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_free' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_parse' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `Perl_eval_pv' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_run' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_alloc' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `make_tempfile' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `boot_DynaLoader' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_construct' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `perl_destruct' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `hosts_ctl' > /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libnetsnmpagent.so: undefined reference to `Perl_newXS'http://www.mail-archive.com/net-snmp-users at lists.sourceforge.net/msg14531.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20131007/6825f13f/attachment-0004.sig>
Styma, Robert E (Robert)
2013-Oct-07 15:41 UTC
[CentOS] Unresolved references in libnetsnmpagent.so
> > http://www.mail-archive.com/net-snmp-users at lists.sourceforge.net/msg14531.htmlThank you. The command net-snmp-config --agent-libs referenced in the above message did the trick. This is definitely worth writing down as it is not "obvious to the casual observer" (to quote an old professor) Thanks again.