Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 17697
Status: resolved
Priority: 0/
Queue: version

People
Owner: jpeacock [...] cpan.org
Requestors: RGARCIA [...] cpan.org
Cc:
AdminCc:

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



Subject: Fatal error running Build.PL
[rafael@n1 ~]$ tar zxf version-0.54.tar.gz [rafael@n1 ~]$ cd version-0.54 /home/rafael/version-0.54 [rafael@n1 version-0.54]$ perl Build.PL Checking whether your kit is complete... Looks good Can't create : No such file or directory at /usr/lib/perl5/vendor_perl/5.8.7/Module/Build/Base.pm line 2493. Strange thing, there is no file name in that error message. This is with Module::Build 0.2611, latest stable, and perl 5.8.8. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.12-12mdksmp, archname=i386-linux uname='linux n1.mandriva.com 2.6.12-12mdksmp #1 smp fri sep 9 17:43:23 cest 2005 i686 intel(r) xeon(tm) cpu 2.80ghz unknown gnulinux ' config_args='-des -Dinc_version_list=5.8.7 5.8.7/i386-linux 5.8.6 5.8.6/i386-linux 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0 -Darchname=i386-linux -Dcc=gcc -Doptimize=-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dsitebin=/usr/local/bin -Dsiteman1dir=/usr/local/share/man/man1 -Dsiteman3dir=/usr/local/share/man/man3 -Dman3ext=3pm -Dcf_by=Mandriva -Dmyhostname=localhost -Dperladmin=root@localhost -Dcf_email=root@localhost -Dd_dosuid -Ud_csh -Duseshrplib -Accflags=-DPERL_DISABLE_PMC' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-DPERL_DISABLE_PMC -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586 -mtune=pentiumpro -fasynchronous-unwind-tables', cppflags='-DPERL_DISABLE_PMC -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='4.0.2 (4.0.2-1mdk for Mandriva Linux release 2006.1)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux/CORE' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
On Fri Feb 17 10:26:01 2006, RGARCIA wrote: Show quoted text
> [rafael@n1 ~]$ tar zxf version-0.54.tar.gz > [rafael@n1 ~]$ cd version-0.54 > /home/rafael/version-0.54 > [rafael@n1 version-0.54]$ perl Build.PL > Checking whether your kit is complete... > Looks good > Can't create : No such file or directory at > /usr/lib/perl5/vendor_perl/5.8.7/Module/Build/Base.pm line 2493.
Grrr. Module::Build 0.2611 doesn't create the _build directory until the call to create_build_script(), but have_c_compiler() needs to have the _build directory in order to create the file to test the compiler. Arggh... Temporary fix: $ cd version-0.54 $ mkdir _build $ perl Build.PL or apply the attached patch. version-0.55 coming to CPAN real soon now anyways, because I forgot to provide an overridden UNIVERSAL::VERSION for the pure Perl module (now complete except for additional testing). John
=== Build.PL ================================================================== --- Build.PL (revision 513) +++ Build.PL (local) @@ -20,6 +20,8 @@ dynamic_config => 1, ); +mkdir $t->config_dir(); # must already exist for have_c_compiler() + if ( $perl_only or not $t->have_c_compiler() ) { $build_arguments{module_name} = 'version::vpp'; if ( $] > 5.008001 ) {
Hello John, Show quoted text
> Temporary fix: > > $ cd version-0.54 > $ mkdir _build > $ perl Build.PL > >or apply the attached patch
We're seeing this on thousands of servers. Key modules that use version fail to install or update :( So the temporary fix won;t work to well, maybe the patch, will look info it. Show quoted text
> version-0.55 coming to CPAN real soon now anyways, because I forgot to > provide an overridden UNIVERSAL::VERSION for the pure Perl module (now > complete except for additional testing).
Can you release a 0.55 with the fix necessary to make it work and do the rest of the UNIVERSAL pure perl thing in 0.56? That'd help out very much :) Is applying tha patch all thats necessary? If so I'll apply it and rebundle it up as 0.55 if you want. Let me know, thanks!
Show quoted text
> Is applying tha patch all thats necessary? If so I'll apply it and > rebundle it up as 0.55 if you want.
This is attached for you to test and upload ASAP, see Changes for details. Thanks! HTH
Download version-0.55.tar.gz
application/x-gzip 159.4k

Message body not shown because it is not plain text.

Uploading to CPAN just this fix as 0.55. The UNIVERSAL::VERSION stuff will have to wait... Sorry for the grief. John
On Fri Feb 17 21:33:45 2006, JPEACOCK wrote: Show quoted text
> Uploading to CPAN just this fix as 0.55. The UNIVERSAL::VERSION stuff > will have to wait... > > Sorry for the grief.
No worries John :) Thanks for acting quickly! - dmuey