Skip Menu |

This queue is for tickets about the NetSNMP-default_store CPAN distribution.

Report information
The Basics
Id: 88144
Status: new
Priority: 0/
Queue: NetSNMP-default_store

People
Owner: Nobody in particular
Requestors: doran [...] bluehost.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: undefined symbol: Perl_Imarkstack_ptr_ptr
Date: Mon, 26 Aug 2013 10:38:33 -0600
To: bug-NetSNMP-default_store [...] rt.cpan.org
From: "Doran L. Barton" <doran [...] bluehost.com>
Hello, I'm running into a problem building NetSNMP-default_store for Perl 5.16.3 (x86_64). The error occurs during the 'make test' phase: PERL_DL_NONLAZY=1 /opt/rh/perl516/root/usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl 1..90 Can't load 'blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: blib/arch/auto/NetSNMP/default_store/default_store.so: undefined symbol: Perl_Imarkstack_ptr_ptr at /opt/rh/perl516/root/usr/lib64/perl5/DynaLoader.pm line 190. at test.pl line 97. I don't know if this is a problem with my configuration (I haven't had any problems with any other XS modules) or with this module. Please advise. -- Doran L. Barton <doran@bluehost.com> - Senior Developer, Bluehost, RHCE "Caution - This Truck is full of Political Promises" -- Sign on the back of septic tank service truck
Subject: Re: [rt.cpan.org #88144] AutoReply: undefined symbol: Perl_Imarkstack_ptr_ptr
Date: Tue, 27 Aug 2013 16:07:44 -0600
To: bug-NetSNMP-default_store [...] rt.cpan.org
From: "Doran L. Barton" <doran [...] bluehost.com>
On Mon, 26 Aug 2013 12:38:47 -0400 "Bugs in NetSNMP-default_store via RT" <bug-NetSNMP-default_store@rt.cpan.org> wrote: Show quoted text
> I'm running into a problem building NetSNMP-default_store for Perl 5.16.3 > (x86_64). The error occurs during the 'make test' phase: > > PERL_DL_NONLAZY=1 /opt/rh/perl516/root/usr/bin/perl "-Iblib/lib" > "-Iblib/arch" test.pl 1..90 > Can't load 'blib/arch/auto/NetSNMP/default_store/default_store.so' for > module NetSNMP::default_store: > blib/arch/auto/NetSNMP/default_store/default_store.so: undefined symbol: > Perl_Imarkstack_ptr_ptr > at /opt/rh/perl516/root/usr/lib64/perl5/DynaLoader.pm line 190. at test.pl > line 97. > > I don't know if this is a problem with my configuration (I haven't had any > problems with any other XS modules) or with this module. Please advise.
Thanks to dsteinbrunner and rafi in #perl-help for putting me on the correct track to solving this problem. The problem is that NetSNMP::default_store depends on the net-snmp-libs package, which depends on Perl. In an RPM environment, such as I am building in, that means net-snmp-libs depends on the distribution-installed Perl. I was building this NetSNMP::default_store RPM against a newer version of Perl and therein lies the cause of the symbol conflict. The solution: Build a separate net-snmp-libs package which is linked to the different/newer version of Perl and make NetSNMP::default_store depend on it instead. This is all being done with Red Hat Software Collections utilities. -- Doran L. Barton <doran@bluehost.com> - Senior Developer, Bluehost, RHCE "Avoid entanglement of dog with wheel spokes." -- Seen in a Tokyo traffic handbook