Skip Menu |

This queue is for tickets about the B-Generate CPAN distribution.

Report information
The Basics
Id: 56056
Status: resolved
Priority: 0/
Queue: B-Generate

People
Owner: Nobody in particular
Requestors: KARASIK [...] cpan.org
Cc:
AdminCc:

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



Subject: perl 5.12:: undefined symbol: Perl_fold_constants
$ export PERL_DL_NONLAZY=1 $ make test Can't load '/usr/local/lib/perl/site_perl/5.12.0/i686-linux-thread-multi/auto/B/Generate/Generate.so' for module B::Generate: /usr/local/lib/perl/site_perl/5.12.0/i686-linux-thread-multi/auto/B/Generate/Generate.so: undefined symbol: Perl_fold_constants at /usr/local/lib/perl/5.12.0/i686-linux-thread-multi/DynaLoader.pm line 200
Subject: Re: [rt.cpan.org #56056] perl 5.12:: undefined symbol: Perl_fold_constants
Date: Mon, 29 Mar 2010 15:50:29 +0200
To: bug-B-Generate [...] rt.cpan.org
From: Reini Urban <rurban [...] x-ray.at>
2010/3/29 KARASIK via RT <bug-B-Generate@rt.cpan.org>: Show quoted text
> Mon Mar 29 09:14:48 2010: Request 56056 was acted upon. > Transaction: Ticket created by KARASIK >       Queue: B-Generate >     Subject: perl 5.12:: undefined symbol: Perl_fold_constants >   Broken in: 1.26 >    Severity: Critical >       Owner: Nobody >  Requestors: KARASIK@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56056 > > > > $ export PERL_DL_NONLAZY=1 > $ make test > > Can't load > '/usr/local/lib/perl/site_perl/5.12.0/i686-linux-thread-multi/auto/B/Generate/Generate.so' > for module B::Generate: > /usr/local/lib/perl/site_perl/5.12.0/i686-linux-thread-multi/auto/B/Generate/Generate.so: > undefined symbol: Perl_fold_constants at > /usr/local/lib/perl/5.12.0/i686-linux-thread-multi/DynaLoader.pm line 200
Yes, I know and already complained at p5p, because I tought they removed the public A flag from embed.fnc. But it never was as Nick recently told me, so B::Generate always was wrong using this API. I just disabled some time ago it for known strict linkers: cygwin and mingw. So somebody (me or you :)) has to send a p5p patch to export the needed core functions - here are more, not only this - together with API docs and test case. -- Reini Urban http://phpwiki.org/ http://murbreak.at/
Hi Reini, If you remember, I DID send a patch in, looong time ago: http://rt.perl.org/rt3//Public/Bug/Display.html?id=56536 I'm just, well, don't know what else I can do. If Nicholas is unpingable,then... what?
Subject: Re: [rt.cpan.org #56056] perl 5.12:: undefined symbol: Perl_fold_constants
Date: Mon, 29 Mar 2010 17:42:18 +0200
To: bug-B-Generate [...] rt.cpan.org
From: Reini Urban <rurban [...] x-ray.at>
2010/3/29 KARASIK via RT <bug-B-Generate@rt.cpan.org>: Show quoted text
>       Queue: B-Generate >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56056 > > > Hi Reini, > If you remember, I DID send a patch in, looong time ago: > > http://rt.perl.org/rt3//Public/Bug/Display.html?id=56536
Ah, I remember now. Show quoted text
> I'm just, well, don't know  what else I can do. If Nicholas is > unpingable,then... what?
The problem is not the flag itself. The problem is the missing core documentation and testcases. And as Rafael already said, maybe pad_alloc() should be changed. From my POV p5p should now change it and leave then B::Generate work as expected. B::Generate is one of the rare modules which are mentioned in the core pods. -- Reini Urban http://phpwiki.org/ http://murbreak.at/
Subject: Re: [rt.cpan.org #56056] perl 5.12:: undefined symbol: Perl_fold_constants
Date: Mon, 29 Mar 2010 18:34:02 +0200
To: bug-B-Generate [...] rt.cpan.org
From: Reini Urban <rurban [...] x-ray.at>
2010/3/29 Reini Urban via RT <bug-B-Generate@rt.cpan.org>: Show quoted text
> 2010/3/29 KARASIK via RT <bug-B-Generate@rt.cpan.org>:
>>       Queue: B-Generate >>  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56056 > >> >> Hi Reini, >> If you remember, I DID send a patch in, looong time ago: >> >> http://rt.perl.org/rt3//Public/Bug/Display.html?id=56536
> > Ah, I remember now. >
>> I'm just, well, don't know  what else I can do. If Nicholas is >> unpingable,then... what?
> > The problem is not the flag itself. > The problem is the missing core documentation and testcases. > > And as Rafael already said, maybe pad_alloc() should be changed. > From my POV p5p should now change it and leave then B::Generate > work as expected. B::Generate is one of the rare modules which are > mentioned in the core pods.
According to Slaven's check http://gist.github.com/347647 fold_constants() also fails since Nick made it static with in b7783a124 Author: Nicholas Clark <nick@ccl4.org> Date: Wed Nov 26 19:36:06 2008 +0000 for AutoXS, Amb, Code::Splice
Hi again, I'm just thinking, if core- is so reluctant to open these functions, maybe you could just copy-paste them into Generate.xs, and that's it? I've seen that many modules do so. /dk
Subject: Re: [rt.cpan.org #56056] perl 5.12:: undefined symbol: Perl_fold_constants
Date: Wed, 31 Mar 2010 08:45:47 +0200
To: bug-B-Generate [...] rt.cpan.org
From: Reini Urban <rurban [...] x-ray.at>
2010/3/30 KARASIK via RT <bug-B-Generate@rt.cpan.org>: Show quoted text
>       Queue: B-Generate >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56056 > > I'm just thinking, if core- is so reluctant to open these functions, > maybe you could just copy-paste them into Generate.xs, and that's it? > I've seen that many modules do so.
Yes, will do. And I will prepare the p5p patches also, just not this month. -- Reini
I've added Perl_pad_alloc, Perl_cv_clone and fold_constants detections to the installer, and a pad_alloc re-implementation to the module. Since 1.3201. The others two functions are purely optional. -- Reini Urban