Skip Menu |
 

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 28965
Status: resolved
Priority: 0/
Queue: Module-Build

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

Bug Information
Severity: Normal
Broken in: 0.2806
Fixed in: 0.2807

Attachments
module_build_base_around_line_4000.png



Subject: supurious 'Use of uninitialized value' messages
Download (untitled) / with headers
text/plain 790b
nadim@localhost /devel/perl_modules/List/Tuples $ ./Build dist Deleting META.yml Creating META.yml Creating List-Tuples-0.02 Creating List-Tuples-0.02.tar.gz tar cf List-Tuples-0.02.tar List-Tuples-0.02 Use of uninitialized value in length at /usr/lib64/perl5/vendor_perl/5.8.8/Module/Build/Base.pm line 4000. Use of uninitialized value in scalar assignment at /usr/lib64/perl5/vendor_perl/5.8.8/Module/Build/Base.pm line 4000. gzip List-Tuples-0.02.tar Use of uninitialized value in length at /usr/lib64/perl5/vendor_perl/5.8.8/Module/Build/Base.pm line 4000. Use of uninitialized value in scalar assignment at /usr/lib64/perl5/vendor_perl/5.8.8/Module/Build/Base.pm line 4000. gzip: List-Tuples-0.02.tar.gz already exists; do you wish to overwrite (y or n)? y Deleting List-Tuples-0.02
Download (untitled) / with headers
text/plain 270b
That doesn't seem right, there's no length() or scalar assignment in line 4000 of Module/Build/Base.pm version 0.2808. That line is: return $self->do_system($perl, @$args); Is that the same line you see? Are you able to poke around and see what's going on? -Ken
From: NKH [...] cpan.org
Download (untitled) / with headers
text/plain 236b
nadim@localhost ~ $ pmvers Module::Build::Base /usr/bin/pmvers: unknown version for module `Module::Build::Base' nadim@localhost ~ $ pmvers Module::Build 0.2806 see snapshot for the line. I will update to the latest version and test.
just updated to the latest version. I get something else now. nadim@localhost /devel/perl_modules/List/Tuples $ perl Build.PL Deleting _build Creating custom builder _build/lib/List/Tuples.pm in _build/lib/List Can't call method "version" on an undefined value at /usr/lib64/perl5/vendor_perl/5.8.8/Module/Build/Base.pm line 982. that would be here: sub find_module_by_name { # Method provided for backwards compatability return Module::Build::ModuleInfo->find_module_by_name(@_[1,2]); } I subclass M::B if that is of interest. I have created a new module for test: nadim@localhost /devel/perl_modules/x/y $ perl Build.PL Creating custom builder _build/lib/x/y.pm in _build/lib/x Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Creating new 'Build' script for 'x-y' version '0.01' the interesting part is that 'perl Build.PL' works for thex:y module but not for module List::Tuples. I did a './Build dist' for module x:y and I still get 'Use of uninitialized value in length at /usr/lib64/perl5/vendor_perl/5.8.8/Module/Build/Base.pm line 4000'.
Download (untitled) / with headers
text/plain 409b
On Fri Aug 31 13:51:01 2007, NKH wrote: Show quoted text
> just updated to the latest version. I get something else now. > > Creating custom builder _build/lib/List/Tuples.pm in _build/lib/List > Can't call method "version" on an undefined value at > /usr/lib64/perl5/vendor_perl/5.8.8/Module/Build/Base.pm line 982.
The error message is right. I was just a bit too zealous and removed the lib directory while doing tests :)
Ah yes, this bug appeared in 0.2806 and was fixed in 0.2807. Should be fine now. -Ken


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.