Perl problem upgrading net-snmp

Ian Moore no-spam at swiftdsl.com.au
Mon Jun 13 05:19:06 GMT 2005


Hi, I'm trying to upgrade net-mgmt/net-snmp-5.2.1_1 to 
net-mgmt/net-snmp-5.2.1_2
I'm running 5.4p2 on this machine, which started life as 5.2.1-RELEASE & has 
been tracking 5.3-RELEASE & now 5.4-RELEASE.
My perl version is 5.8.6

I update my ports tree every night and update my installed ports at least once 
a week. I've had this build  problem with net-snmp ever since it was updated 
to 5.2.1_2, but I've only just got around to trying to solve the problem.
The build output is very long, so I've only pasted the last bit below - I can 
post the whole thing if required though.

I assume it's a perl problem and have tried googling for a solution. I found 
some stuff about the Undefined symbol "perl_get_sv" error, but haven't found 
anything that's helped me fix it so far.

A possible solution I thought might be to  pkg_delete perl, delete everything 
in /usr/local/lib/perl and then rebuild perl. Or is that not a good idea?

Here's the net-snmp build output:

<snip>
Checking if your kit is complete...
Looks good
Warning: -L../../snmplib/.libs changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../snmplib/.libs
Warning: -L../../snmplib/ changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../snmplib/
Warning: -L../../agent/.libs changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent/.libs
Warning: -L../../agent/ changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent/
Warning: -L../../agent/helpers/.libs changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent/helpers/.libs
Warning: -L../../agent/helpers/ changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent/helpers/
Unrecognized argument in LIBS ignored: '-rpath=/usr/local/lib'
Unrecognized argument in LIBS ignored: '-Wl,-E'
Unrecognized argument in LIBS ignored: 
'/usr/local/lib/perl5/5.8.6/mach/auto/DynaLoader/DynaLoader.a'
Warning: -L../../../snmplib/.libs changed to -L/usr/ports/net-mgmt/Undefined 
symbol 
"perl_get_sv"net-snmp/work/net-snmp-5.2.1/perl/agent/default_store/../../../snmplib/.libs
Warning: -L../../../snmplib/ changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/default_store/../../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=/usr/local/lib'
Writing Makefile for NetSNMP::agent::default_store
Writing Makefile for NetSNMP::agent
Checking if your kit is complete...
Looks good
Warning: -L../../snmplib/.libs changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/SNMP/../../snmplib/.libs
Warning: -L../../snmplib/ changed to 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/SNMP/../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=/usr/local/lib'
Writing Makefile for SNMP
Checking if your kit is complete...
Looks good
/libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.6/mach/auto/SNMP/SNMP.so: 
Undefined symbol "perl_get_sv"
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade39989.0 
make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! net-mgmt/net-snmp (net-snmp-5.2.1_1)  (new compiler error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

Cheers,
-- 
Ian
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050613/94816c2d/attachment.bin


More information about the freebsd-questions mailing list