Closed p5pRT closed 11 years ago
This is a bug report for perl from dagolden@cpan.org generated with the help of perlbug 1.39 running under perl 5.11.0.
----------------------------------------------------------------- Module::Build xs.t and ppm.t attempt to load an XS module\, which fails when Perl is compiled with -Uusedl.
It is documented in the M::B RT queue:
https://rt.cpan.org/Ticket/Display.html?id=46178
It is similar to this perlbug:
http://rt.perl.org/rt3/Ticket/Display.html?id=65754
It's unclear to me whether tests should just skip or be marked Todo or whether there are necessary changes to Module::Build.
I would imagine there would be similar issues with ExtUtils::MakeMaker\, except that it doesn't seem to actually attempt to load XS modules\, it only checks to see that they compiled. So on that basis\, perhaps the loading portion of M::B tests should skip as well.
On Thu\, Jun 18\, 2009 at 5:36 PM\, david@vulcan.hyperbolic.net (via RT)\perlbug\-followup@​perl\.org wrote:
# New Ticket Created by david@vulcan.hyperbolic.net # Please include the string: [perl #66726] # in the subject line of all future correspondence about this issue. # \<URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66726 >
This is a bug report for perl from dagolden@cpan.org generated with the help of perlbug 1.39 running under perl 5.11.0.
----------------------------------------------------------------- Module::Build xs.t and ppm.t attempt to load an XS module\, which fails when Perl is compiled with -Uusedl.
It is documented in the M::B RT queue:
https://rt.cpan.org/Ticket/Display.html?id=46178
It is similar to this perlbug:
http://rt.perl.org/rt3/Ticket/Display.html?id=65754
It's unclear to me whether tests should just skip or be marked Todo or whether there are necessary changes to Module::Build.
I would imagine there would be similar issues with ExtUtils::MakeMaker\, except that it doesn't seem to actually attempt to load XS modules\, it only checks to see that they compiled. So on that basis\, perhaps the loading portion of M::B tests should skip as well.
In principle MakeMaker knows how to link a new Perl with the new extension in it when you've built a static Perl and are building an extension with it. At which point use-ing the module should succeed because you've linked it in -- you're not actually loading it via DynaLoader because it's already there. I don't know if that's currently working or is tested anywhere\, but see L\<Static Linking of a new Perl Binary> in the MakeMaker pod.
The RT System itself - Status changed from 'new' to 'open'
On Sun\, Jun 21\, 2009 at 10:26 AM\, Craig A. Berry\craig\.a\.berry@​gmail\.com wrote:
In principle MakeMaker knows how to link a new Perl with the new extension in it when you've built a static Perl and are building an extension with it. At which point use-ing the module should succeed because you've linked it in -- you're not actually loading it via DynaLoader because it's already there. I don't know if that's currently working or is tested anywhere\, but see L\<Static Linking of a new Perl Binary> in the MakeMaker pod.
I've seen that\, but it doesn't look like EU::MM actually tests the re-linking Perl\, but nor does it test the loading of the XS module\, so it doesn't exhibit the same behavior as M::B.
I don't know if M::B supports relinking\, but it definitely shouldn't test loading dynamically.
Tux said pretty definitively that what the M::B test was doing was wrong\, so my plan is to have that portion of the M::B tests skip when $Config{usedl} is false.
The same change should happen upstream in EU::ParseXS\, but I have co-maintainer on that so someone with access will need to make the change.
-- David
On Sun\, 21 Jun 2009 10:48:04 -0400\, David Golden \xdaveg@​gmail\.com wrote:
On Sun\, Jun 21\, 2009 at 10:26 AM\, Craig A. Berry\craig\.a\.berry@​gmail\.com wrote:
In principle MakeMaker knows how to link a new Perl with the new extension in it when you've built a static Perl and are building an extension with it. At which point use-ing the module should succeed because you've linked it in -- you're not actually loading it via DynaLoader because it's already there. I don't know if that's currently working or is tested anywhere\, but see L\<Static Linking of a new Perl Binary> in the MakeMaker pod.
I've seen that\, but it doesn't look like EU::MM actually tests the re-linking Perl\, but nor does it test the loading of the XS module\, so it doesn't exhibit the same behavior as M::B.
I don't know if M::B supports relinking\, but it definitely shouldn't test loading dynamically.
Tux said pretty definitively that what the M::B test was doing was wrong\,
I might be right\, but when I was saying that some test was definitively wrong\, I was referring to a test in SQL::Statement\, not something in M::B. I'm sorry you understood it differently
so my plan is to have that portion of the M::B tests skip when $Config{usedl} is false.
The same change should happen upstream in EU::ParseXS\, but I have co-maintainer on that so someone with access will need to make the change.
-- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using & porting perl 5.6.2\, 5.8.x\, 5.10.x\, 5.11.x on HP-UX 10.20\, 11.00\, 11.11\, 11.23\, and 11.31\, OpenSuSE 10.3\, 11.0\, and 11.1\, AIX 5.2 and 5.3. http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
On Sun\, Jun 21\, 2009 at 11:17 AM\, H.Merijn Brand\h\.m\.brand@​xs4all\.nl wrote:
Tux said pretty definitively that what the M::B test was doing was wrong\,
I might be right\, but when I was saying that some test was definitively wrong\, I was referring to a test in SQL::Statement\, not something in M::B. I'm sorry you understood it differently
I'm not letting you off the hook so easily. Since no one else has anything definitive to say about the issue\, you being definitive in a way I can conveniently misinterpret is enough justification for me. ;-)
-- David
On Thu Jun 18 15:36:24 2009\, david@vulcan.hyperbolic.net wrote:
Reviewed this 3-1/2-year-old ticket tonight.
This is a bug report for perl from dagolden@cpan.org generated with the help of perlbug 1.39 running under perl 5.11.0.
----------------------------------------------------------------- Module::Build xs.t and ppm.t attempt to load an XS module\, which fails when Perl is compiled with -Uusedl.
It is documented in the M::B RT queue:
That ticket has been marked Resolved.
It is similar to this perlbug:
http://rt.perl.org/rt3/Ticket/Display.html?id=65754
... as has that ticket.
It's unclear to me whether tests should just skip or be marked Todo or whether there are necessary changes to Module::Build.
I would imagine there would be similar issues with ExtUtils::MakeMaker\, except that it doesn't seem to actually attempt to load XS modules\, it only checks to see that they compiled. So on that basis\, perhaps the loading portion of M::B tests should skip as well.
David\, is this ticket closable?
Thank you very much. Jim Keenan
@xdg - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#66726 (status was 'resolved')
Searchable as RT66726$