perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] undefined symbol: load_module
Date Wed, 07 Jul 2004 19:44:29 GMT
Markus Wichitill wrote:
>>Any difference with this patch:
>>-    load_module(PERL_LOADMOD_NOIMPORT,
>>-                newSVpvn("B::Deparse", 10),
>>-                newSVnv(SvOBJECT((SV*)cv) ? 0.61 : 0.60));
>>+    Perl_load_module(aTHX_ PERL_LOADMOD_NOIMPORT,
>>+                     newSVpvn("B::Deparse", 10),
>>+                     newSVnv(SvOBJECT((SV*)cv) ? 0.61 : 0.60));
> 
> 
> Yep, now it works.

OK, but then it's a perl problem? The perlapi manpage advertises this 
function is load_module(), not Perl_load_module(). I'm not sure what's 
happening.

Can you try compiling the attached program?

gcc -o load load.c `perl  -MExtUtils::Embed -e ccopts -e ldopts` -Wall -g

it should resolve to Perl_load_module_nocontext:

% nm load | grep load_module
          U Perl_load_module_nocontext

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message