Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 17175
Status: resolved
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: eamon [...] eamondaly.com
Cc: dagolden [...] cpan.org
AdminCc:

Bug Information
Severity: Important
Broken in: 3.15
Fixed in: 3.14



Subject: "make test" fails on RedHat 4AS
Version 3.15 fails to pass make test on stock RedHat 4AS. Version 3.14 passes. Note the very strange error: Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.5/File/Path.pm line 267. in "make test", included below: # uname -a Linux xxx 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 athlon i386 GNU/Linux # make cp lib/File/Spec/OS2.pm blib/lib/File/Spec/OS2.pm cp lib/File/Spec/Mac.pm blib/lib/File/Spec/Mac.pm cp lib/File/Spec/VMS.pm blib/lib/File/Spec/VMS.pm cp lib/File/Spec/Cygwin.pm blib/lib/File/Spec/Cygwin.pm cp lib/File/Spec/Epoc.pm blib/lib/File/Spec/Epoc.pm cp lib/File/Spec/Functions.pm blib/lib/File/Spec/Functions.pm cp lib/File/Spec.pm blib/lib/File/Spec.pm cp Cwd.pm blib/lib/Cwd.pm cp lib/File/Spec/Unix.pm blib/lib/File/Spec/Unix.pm cp lib/File/Spec/Win32.pm blib/lib/File/Spec/Win32.pm /usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp - typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap Cwd.xs > Cwd.xsc && mv Cwd.xsc Cwd.c gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing - pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 - DVERSION=\"3.15\" -DXS_VERSION=\"3.15\" -fPIC "- I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" Cwd.c Running Mkbootstrap for Cwd () chmod 644 Cwd.bs rm -f blib/arch/auto/Cwd/Cwd.so gcc -shared -L/usr/local/lib Cwd.o -o blib/arch/auto/Cwd/Cwd.so chmod 755 blib/arch/auto/Cwd/Cwd.so cp Cwd.bs blib/arch/auto/Cwd/Cwd.bs chmod 644 blib/arch/auto/Cwd/Cwd.bs Manifying blib/man3/File::Spec::Mac.3pm Manifying blib/man3/File::Spec::OS2.3pm Manifying blib/man3/File::Spec::VMS.3pm Manifying blib/man3/File::Spec::Functions.3pm Manifying blib/man3/File::Spec::Epoc.3pm Manifying blib/man3/File::Spec::Cygwin.3pm Manifying blib/man3/File::Spec.3pm Manifying blib/man3/Cwd.3pm Manifying blib/man3/File::Spec::Unix.3pm Manifying blib/man3/File::Spec::Win32.3pm # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/crossplatform....ok 7/50 skipped: Can't load File::Spec::VMS t/cwd..............ok 19/33Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.5/File/Path.pm line 267. # Looks like you planned 33 tests but only ran 19. # Looks like your test died just after 19. t/cwd..............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 20-33 Failed 14/33 tests, 57.58% okay t/Functions........ok t/rel2abs2rel......ok t/Spec.............ok 83/473 skipped: various reasons t/taint............ok t/tmpdir...........ok t/win32............skipped all skipped: this is not win32 Failed Test Stat Wstat Total Fail Failed List of Failed ----------------------------------------------------------------------- -------- t/cwd.t 255 65280 33 28 84.85% 20-33 1 test and 90 subtests skipped. Failed 1/8 test scripts, 87.50% okay. 14/583 subtests failed, 97.60% okay. make: *** [test_dynamic] Error 255 # perl -v This is perl, v5.8.5 built for i386-linux-thread-multi # perl -V Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=linux, osvers=2.4.21-27.0.2.elsmp, archname=i386-linux- thread-multi uname='linux decompose.build.redhat.com 2.4.21-27.0.2.elsmp #1 smp wed jan 12 23:35:44 est 2005 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 - mtune=pentium4 -Dversion=5.8.5 -Dmyhostname=localhost - Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. - Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux - Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads - Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db - Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio - Dinstallusrbinperl -Ubincompat5005 -Uversiononly - Dpager=/usr/bin/less -isr -Dinc_version_list=5.8.4 5.8.3 5.8.2 5.8.1 5.8.0' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno- strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict- aliasing -pipe -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='3.4.4 20050721 (Red Hat 3.4.4-2)', 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 -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E - Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Aug 2 2005 04:48:47 @INC: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .
Hi, Perhaps xsubpp isn't picking up the "PROTOTYPE: DISABLE" line in the XS file. What happens if you change the "PROTOTYPES: ENABLE" line to "PROTOTYPES: DISABLE" in Cwd.xs and rebuild? Note the "S" there. -Ken
On Thu Jan 19 20:11:45 2006, KWILLIAMS wrote: Show quoted text
> Hi, > > Perhaps xsubpp isn't picking up the "PROTOTYPE: DISABLE" line in the > XS file. What happens > if you change the "PROTOTYPES: ENABLE" line to "PROTOTYPES: DISABLE" > in Cwd.xs and > rebuild? Note the "S" there. > > -Ken
No luck. Looks like the previous result: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/crossplatform....ok 7/50 skipped: Can't load File::Spec::VMS t/cwd..............ok 19/33Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.5/File/Path.pm line 267. # Looks like you planned 33 tests but only ran 19. # Looks like your test died just after 19. t/cwd..............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 20-33 Failed 14/33 tests, 57.58% okay t/Functions........ok t/rel2abs2rel......ok t/Spec.............ok 83/473 skipped: various reasons t/taint............ok t/tmpdir...........ok t/win32............skipped all skipped: this is not win32 Failed Test Stat Wstat Total Fail Failed List of Failed ----------------------------------------------------------------------- -------- t/cwd.t 255 65280 33 28 84.85% 20-33 1 test and 90 subtests skipped. Failed 1/8 test scripts, 87.50% okay. 14/583 subtests failed, 97.60% okay. make: *** [test_dynamic] Error 255
Since this appears to be related to File::Path 1.06 (i.e. Perl != 5.8.7), I'd like to suggest updating the subject to reflect that it's not just a Redhat 4AS issue?
From: Yanick
On Fri Jan 27 01:38:41 2006, DAGOLDEN wrote: Show quoted text
> Since this appears to be related to File::Path 1.06 (i.e. Perl != > 5.8.7), I'd like to suggest updating the subject to reflect that it's > not just a Redhat 4AS issue?
I have the same error (Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.5/File/Path.pm line 267) each time I'm try to install something from cpan: Show quoted text
cpan> install Date::Calc
Running install for module Date::Calc Running make for S/ST/STBEY/Date-Calc-5.4.tar.gz CPAN: Digest::SHA loaded ok CPAN: Module::Signature loaded ok WARNING: This key is not certified with a trusted signature! Primary key fingerprint: 2E66 557A B97C 19C7 91AF 8E20 328D A867 450F 89EC Signature for /root/.cpan/sources/authors/id/S/ST/STBEY/CHECKSUMS ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/S/ST/STBEY/Date-Calc- 5.4.tar.gz ok Scanning cache /root/.cpan/build for sizes Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.5/File/Path.pm line 267. Anybody has solution for this? Regards, Yanick
I think we've identified both a bug in File::Path and in xsubpp. File::Path calls getcwd() with an argument, which it shouldn't do. We should be able to correct this with a "PROTOTYPE: DISABLE" directive, but it's not working, and I think that's an xsubpp bug. I guess another way we could fix it is like this: --- Cwd.xs 2005/12/10 04:44:56 1.12 +++ Cwd.xs 2006/01/31 02:00:31 @@ -409,7 +409,7 @@ } void -getcwd() +getcwd(...) PROTOTYPE: DISABLE PPCODE: { That seems to do the trick for me, could y'all confirm that on your boxes? -Ken
CC: eamon [...] eamondaly.com
Subject: Re: [rt.cpan.org #17175] "make test" fails on RedHat 4AS
Date: Mon, 30 Jan 2006 21:26:57 -0500
To: bug-PathTools [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
Ken_Williams via RT wrote: Show quoted text
> void > -getcwd() > +getcwd(...) > PROTOTYPE: DISABLE > PPCODE: > { > > > That seems to do the trick for me, could y'all confirm that on your boxes? > > -Ken
Works for me. David
Okay, I'll release this now in version 3.16. -Ken
CC: <DAGOLDEN [...] cpan.org>
Subject: Re: [rt.cpan.org #17175] "make test" fails on RedHat 4AS
Date: Tue, 31 Jan 2006 15:04:50 -0600
To: <bug-PathTools [...] rt.cpan.org>
From: "Eamon Daly" <eamon [...] eamondaly.com>
Worked for me. Thanks! Show quoted text
____________________________________________________________ Eamon Daly
----- Original Message ----- From: "Ken_Williams via RT" <bug-PathTools@rt.cpan.org> To: <eamon@eamondaly.com> Cc: <DAGOLDEN@cpan.org> Sent: Monday, January 30, 2006 8:48 PM Subject: [rt.cpan.org #17175] "make test" fails on RedHat 4AS
> Okay, I'll release this now in version 3.16. > > -Ken >