Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 13863
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: martin.thurn [...] ngc.com
Cc:
AdminCc:

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



Subject: can not install modules with Build.PL but no Makefile.PL
CPAN Terminal> i Test::PerlTidy Installing Test::PerlTidy Compilation failed in require at /loader/0x235a9c/Module/Load.pm line 27. Can't locate CPANPLUS/Dist/Build in @INC (@INC contains: CODE(0x235a9c) /usr/local/lib/perl5/5.9.2/sun4-solaris /usr/local/lib/perl5/5.9.2 /usr/local/lib/perl5/site_perl/5.9.2/sun4-solaris /usr/local/lib/perl5/site_perl/5.9.2 /usr/local/lib/perl5/site_perl . /usr/local/lib/perl5/site_perl/5.9.2/ /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc/installers) at /loader/0x235a9c/Module/Load.pm line 27. [THIS MAY BE A PROBLEM!] at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/Module.pm line 573 [ERROR] 'CPANPLUS::Dist::Build' not found -- you need 'Module::Pluggable' version '2.4' or higher to detect plugins [ERROR] Unable to create a new distribution object for 'Test::PerlTidy' -- cannot continue Error installing 'Test::PerlTidy' Problem installing one or more modules CPAN Terminal> l Module::Pluggable Details for 'Module::Pluggable' Author Simon Wistow (simon@thegestalt.org) Description None given Development Stage Unknown Interface Style Unknown Language Used Unknown Package Module-Pluggable-2.9.tar.gz Public License Unknown Support Level Unknown Version Installed 2.9 Version on CPAN 2.9 Contains: Module::Pluggable CPAN Terminal> version CPANPLUS::Shell::Default -- CPAN exploration and modules installation (v0.055) *** Please report bugs to <cpanplus-bugs@lists.sourceforge.net>. *** Using CPANPLUS::Backend v0.055. ReadLine support enabled.
From: MTHURN [...] cpan.org
With debugging perl, the error message looks like this: [MSG] Extracted 'CGI::Application::Plugin::Forward' to '/disk1/src/PERL/.cpanplus/5.9.2/build/CGI-Application-Plugin- Forward-0.01' Assertion ((&(PL_curstackinfo->si_cxstack)[(PL_curstackinfo->si_cxix)])- Show quoted text
>cx_type & 0xff) == 2 failed: file "pp_ctl.c", line 2694
at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc.pm line 346, <> line 646. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.9.2/Module/Build.pm line 14. Compilation failed in require at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/Dist/Build.pm line 12. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/Dist/Build.pm line 12. Compilation failed in require at /loader/0x235a94/Module/Load.pm line 27. Can't locate CPANPLUS/Dist/Build in @INC (@INC contains: CODE (0x235a94) /usr/local/lib/perl5/5.9.2/sun4- solaris /usr/local/lib/perl5/5.9.2 /usr/local/lib/perl5/site_perl/5.9.2/ sun4- solaris /usr/local/lib/perl5/site_perl/5.9.2 /usr/local/lib/perl5/site_p erl . /usr/local/lib/perl5/site_perl/5.9.2/ /usr/local/lib/perl5/site_pe rl/5.9.2/CPANPLUS/inc /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc/ installers) at /loader/0x235a94/Module/Load.pm line 27. [THIS MAY BE A PROBLEM!] at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/Module.pm line 573 [ERROR] 'CPANPLUS::Dist::Build' not found -- you need 'Module::Pluggable' version '2.4' or higher to detect plugins [ERROR] Unable to create a new distribution object for 'CGI::Application::Plugin::Forward' -- cannot continue Error installing 'CGI::Application::Plugin::Forward'
From: "Jos I. Boumans" <kane [...] xs4all.net>
Subject: Re: [cpan #13863] can not install modules with Build.PL but no Makefile.PL
Date: Wed, 27 Jul 2005 19:22:10 +0200
To: bug-CPANPLUS [...] rt.cpan.org
RT-Send-Cc:
On Jul 27, 2005, at 7:14 PM, via RT wrote: Show quoted text
> > This message about CPANPLUS was sent to you by MTHURN > <MTHURN@cpan.org> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=13863 > > > With debugging perl, the error message looks like this: > > [MSG] Extracted 'CGI::Application::Plugin::Forward' > to '/disk1/src/PERL/.cpanplus/5.9.2/build/CGI-Application-Plugin- > Forward-0.01' > Assertion > ((&(PL_curstackinfo->si_cxstack)[(PL_curstackinfo->si_cxix)])-
>> cx_type & 0xff) == 2 failed: file "pp_ctl.c", line 2694
> at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc.pm line 346, <> > line 646. > BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.9.2/Module/Build.pm line 14. > Compilation failed in require > at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/Dist/Build.pm line 12. > BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/Dist/Build.pm line 12. > Compilation failed in require at /loader/0x235a94/Module/Load.pm line > 27. > Can't locate CPANPLUS/Dist/Build in @INC (@INC contains: CODE > (0x235a94) /usr/local/lib/perl5/5.9.2/sun4- > solaris /usr/local/lib/perl5/5.9.2 > /usr/local/lib/perl5/site_perl/5.9.2/ > sun4- > solaris /usr/local/lib/perl5/site_perl/5.9.2 > /usr/local/lib/perl5/site_p > erl . /usr/local/lib/perl5/site_perl/5.9.2/ > /usr/local/lib/perl5/site_pe > rl/5.9.2/CPANPLUS/inc > /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc/ > installers) at /loader/0x235a94/Module/Load.pm line 27. > [THIS MAY BE A PROBLEM!] > at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/Module.pm line 573 > [ERROR] 'CPANPLUS::Dist::Build' not found -- you > need 'Module::Pluggable' version '2.4' or higher to detect plugins > [ERROR] Unable to create a new distribution object > for 'CGI::Application::Plugin::Forward' -- cannot continue > Error installing 'CGI::Application::Plugin::Forward'
To be honest, i don't know.. you're using a version of bleadperl which may be the problem. Also, it seems to find CPANPLUS::Dist::Build and Module::Build, so the files are definately there. Perhaps CPANPLUS::inc's coderef in @INC does something evil that's unforeseen... can you take a look at that perhaps? -- Jos Boumans From kid's Superman costume for Halloween (stitched into the cape's tag) -- "Warning: Use of This Device Does Not Enable Wearer To Fly." CPANPLUS http://cpanplus.sf.net
From: MTHURN [...] cpan.org
[kane@xs4all.net - Wed Jul 27 13:22:31 2005]: Show quoted text
> On Jul 27, 2005, at 7:14 PM, via RT wrote: > > Perhaps CPANPLUS::inc's coderef in @INC does something evil that's > unforeseen... can you take a look at that perhaps?
The best I can figure out is that the crash Assertion ((&(PL_curstackinfo->si_cxstack)[(PL_curstackinfo->si_cxix)])- Show quoted text
>cx_type & 0xff) == 2 failed: file "pp_ctl.c", line 2694
at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc.pm line 346, <> line 646. occurs when CPANPLUS/inc.pm line 346 tries to eval something weird, for example: eval "*UNIVERSAL::VERSION = $old_version;" I did a big find and grep but I can NOT find that string anywhere in my perl installation...
From: "Jos I. Boumans" <kane [...] dwim.org>
Subject: Re: [Cpanplus-bugs] [cpan #13863] can not install modules with Build.PL but no Makefile.PL
Date: Fri, 5 Aug 2005 09:08:45 +0200
To: bug-CPANPLUS [...] rt.cpan.org
RT-Send-Cc:
On Aug 3, 2005, at 2:42 PM, Guest via RT wrote: Show quoted text
> Assertion > ((&(PL_curstackinfo->si_cxstack)[(PL_curstackinfo->si_cxix)])-
>> cx_type & 0xff) == 2 failed: file "pp_ctl.c", line 2694
> at /usr/local/lib/perl5/site_perl/5.9.2/CPANPLUS/inc.pm line 346, <> > line 646. > > occurs when CPANPLUS/inc.pm line 346 tries to eval something weird, for > example: eval "*UNIVERSAL::VERSION = $old_version;"
*ouch* I'd expect it to throw an error though, rather than act all wonky: [kane@myriad ~]$ perlc -e'eval"*UNIVERSAL::VERSION=$old_version";print $@' syntax error at (eval 1) line 2, at EOF Show quoted text
> I did a big find > and grep but I can NOT find that string anywhere in my perl > installation...
do a grep in your .cpanplus dir too -- the code eval'd should be the VERSION statement in the file currently being attempted to be loaded. I coudln't reproduce thsi on my 5.8.x install... also, that regex is mostly stolen from EU::MM.. so if it's giving trouble here, it might also give trouble there... -- Jos Boumans "If superman is so smart, why does he wear underpants over his trousers?" CPANPLUS http://cpanplus.sf.net
RT-Send-CC: mthurn [...] cpan.org
[kane@dwim.org - Fri Aug 5 03:09:06 2005]: Show quoted text
> do a grep in your .cpanplus dir too -- the code eval'd should be the > VERSION > statement in the file currently being attempted to be loaded.
I found it in .../.cpanplus/5.9.2/build/Module-Build- 0.2611/lib/Module/Build/Base.pm *UNIVERSAL::VERSION = $old_version; Of course, it's not declaring the VERSION of this module at all, it's just part of its code. The module has no $VERSION declaration.
[MTHURN - Thu Aug 11 13:21:05 2005]: Show quoted text
> [kane@dwim.org - Fri Aug 5 03:09:06 2005]: >
> > do a grep in your .cpanplus dir too -- the code eval'd should be the > > VERSION > > statement in the file currently being attempted to be loaded.
> > I found it in .../.cpanplus/5.9.2/build/Module-Build- > 0.2611/lib/Module/Build/Base.pm > > *UNIVERSAL::VERSION = $old_version; > > Of course, it's not declaring the VERSION of this module at all, it's > just part of its code. The module has no $VERSION declaration.
I've reported this on to the Module::Build folks, in the hope they'll fix their code. This regex that finds this section of code is shared among EU::MM, Module::Installed and CPANPLUS... all 3 would get the 'wrong' answer, which makes me think it's sufficient cause to ask for a codefix: #14226 Lack of $VERSION declaration in M::B::Base causes spurious failures