Posted on 2008-11-22 04:50:40-08 by jtmoon79
failure to pass several tests after build - using ActiveState perl
Hi,

I tried installing PathTools-3.29 and it failed some of the post-compilation tests.
Im running ActiveState perl from the Windows cmd shell

Heres the important lines (near the end of the output)
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch +')" t/*.t t/crossplatform....ok 10/71 skipped: Can't load File::Spec::VMS t/cwd..............ok 2/30 skipped: no symlinks on this platform t/Functions........ok t/rel2abs2rel......ok t/Spec.............ok 126/597 skipped: various reasons t/taint............ok t/tmpdir...........ok t/win32............Undefined subroutine &Cwd::getdcwd called at t/win32.t line 22. t/win32............ok 1/4# Looks like you planned 4 tests but only ran 1. # Looks like your test died just after 1. t/win32............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2-4 Failed 3/4 tests, 25.00% okay

Here's my perl version
--> perl --version This is perl, v5.8.8 built for MSWin32-x86-multi-thread
I'm beginning to guess I need version 5.10. I'll post again if an upgrade fixes this problem.


Here's the entire output (lots of info!)
perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.7602) ReadLine support enabled cpan> install S/SM/SMUELLER/PathTools-3.29.tar.gz CPAN: Storable loaded ok Going to read C:\Perl\cpan\Metadata Database was generated on Thu, 20 Nov 2008 11:26:51 GMT Running make for S/SM/SMUELLER/PathTools-3.29.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for C:\Perl\cpan\sources\authors\id\S\SM\SMUELLER\PathTools-3.29.tar.gz ok Scanning cache C:\Perl/cpan/build for sizes CPAN: Archive::Tar loaded ok PathTools-3.29/ PathTools-3.29/t/ PathTools-3.29/t/win32.t PathTools-3.29/t/tmpdir.t PathTools-3.29/t/cwd.t PathTools-3.29/t/lib/ PathTools-3.29/t/lib/Test/ PathTools-3.29/t/lib/Test/Tutorial.pod PathTools-3.29/t/lib/Test/Builder.pm PathTools-3.29/t/lib/Test/More.pm PathTools-3.29/t/lib/Test/Simple.pm PathTools-3.29/t/Spec.t PathTools-3.29/t/rel2abs2rel.t PathTools-3.29/t/taint.t PathTools-3.29/t/crossplatform.t PathTools-3.29/t/Functions.t PathTools-3.29/lib/ PathTools-3.29/lib/File/ PathTools-3.29/lib/File/Spec/ PathTools-3.29/lib/File/Spec/OS2.pm PathTools-3.29/lib/File/Spec/Mac.pm PathTools-3.29/lib/File/Spec/Functions.pm PathTools-3.29/lib/File/Spec/Epoc.pm PathTools-3.29/lib/File/Spec/Win32.pm PathTools-3.29/lib/File/Spec/VMS.pm PathTools-3.29/lib/File/Spec/Cygwin.pm PathTools-3.29/lib/File/Spec/Unix.pm PathTools-3.29/lib/File/Spec.pm PathTools-3.29/Changes PathTools-3.29/Cwd.pm PathTools-3.29/MANIFEST PathTools-3.29/Cwd.xs PathTools-3.29/ppport.h PathTools-3.29/META.yml PathTools-3.29/INSTALL PathTools-3.29/README PathTools-3.29/Build.PL PathTools-3.29/Makefile.PL PathTools-3.29/SIGNATURE Removing previously used C:\Perl\cpan\build\PathTools-3.29 CPAN.pm: Going to build S/SM/SMUELLER/PathTools-3.29.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Cwd Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. cp lib/File/Spec/Mac.pm blib\lib\File\Spec\Mac.pm cp lib/File/Spec/OS2.pm blib\lib\File\Spec\OS2.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 C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap Cw +d.xs > Cwd.xsc && C:\Perl\bin\perl.exe -M ExtUtils::Command -e mv Cwd.xsc Cwd.c cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCR +YPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -D PERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 + -DVERSION=\"3.29\" -DXS_VERSION=\"3.29 \" "-IC:\Perl\lib\CORE" Cwd.c Cwd.c Cwd.xs(89) : warning C4996: 'getcwd' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\direct.h(121) : see declaration of 'g +etcwd' Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant n +ame: _getcwd. See online help for details .' Cwd.xs(77) : warning C4101: 'symlink' : unreferenced local variable Running Mkbootstrap for Cwd () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Cwd.bs C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"Cwd\", 'DLBASE' => 'C +wd', 'DL_FUNCS' => { }, 'FUNCLIST' => [] , 'IMPORTS' => { }, 'DL_VARS' => []);" link -out:blib\arch\auto\Cwd\Cwd.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpa +th:"C:\Perl\lib\CORE" -machine:x86 Cwd.o bj C:\Perl\lib\CORE\perl58.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdl +g32.lib advapi32.lib shell32.lib ole32.li b oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32 +.lib msvcrt.lib -def:Cwd.def Creating library blib\arch\auto\Cwd\Cwd.lib and object blib\arch\auto\Cwd\Cwd.exp C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto\Cwd\Cwd.dll No root path(s) specified at C:/Perl/lib/ExtUtils/Command.pm line 105 C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Cwd.bs blib\arch\auto\Cwd\Cwd.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto\Cwd\Cwd.bs nmake -- OK Running make test Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch +')" t/*.t t/crossplatform....ok 10/71 skipped: Can't load File::Spec::VMS t/cwd..............ok 2/30 skipped: no symlinks on this platform t/Functions........ok t/rel2abs2rel......ok t/Spec.............ok 126/597 skipped: various reasons t/taint............ok t/tmpdir...........ok t/win32............Undefined subroutine &Cwd::getdcwd called at t/win32.t line 22. t/win32............ok 1/4# Looks like you planned 4 tests but only ran 1. # Looks like your test died just after 1. t/win32............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2-4 Failed 3/4 tests, 25.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/win32.t 255 65280 4 6 150.00% 2-4 138 subtests skipped. Failed 1/8 test scripts, 87.50% okay. 3/730 subtests failed, 99.59% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff' Stop. nmake test -- NOT OK Running make install make test had returned bad status, won't install without force cpan>

Thanks,

J_Tom_Moon_79
Direct Responses: 9472 | Write a response
Posted on 2008-12-01 16:30:22-08 by jtmoon79 in response to 9401
Re: failure to pass several tests after build - using ActiveState perl
I tried to compile with version 5.10.0
This time I have a new error.
See the last line for the interesting output.
error building dll file from 'lib\Cwd.c' at C:/Perl/lib/ExtUtils/CBuilder/Platform/Windows.pm line 143.

USER on LOCALHOST [C:\temp\PathTools-3.29\PathTools-3.29] --> which perl C:\Perl\bin\perl.EXE USER on LOCALHOST [C:\temp\PathTools-3.29\PathTools-3.29] --> perl --version This is perl, v5.10.0 built for MSWin32-x86-multi-thread (with 5 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Binary build 1004 [287188] provided by ActiveState http://www.ActiveState.com Built Sep 3 2008 13:16:37 ... USER on LOCALHOST [C:\temp\PathTools-3.29\PathTools-3.29] --> perl Build.PL Deleting _build Creating custom builder _build\lib\MyModuleBuilder.pm in _build\lib Set up gcc environment - 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Set up gcc environment - 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Deleting Build Removed previous script 'Build' Creating new 'Build' script for 'PathTools' version '3.29' USER on LOCALHOST [C:\temp\PathTools-3.29\PathTools-3.29] --> .\Build Set up gcc environment - 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Set up gcc environment - 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Set up gcc environment - 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) gcc -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST +_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -mms-bi +tfields -O2 "-DXS_VERSION=\"3.2 9\"" "-DVERSION=\"3.29\"" -I"C:\Perl\lib\CORE" -I"\include" -o "lib\Cwd.o" "lib\Cwd.c" In file included from C:/Perl/lib/CORE/sys/socket.h:28, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:103:2: warning: #warning "f +d_set and associated macros hav e been defined in sys/types. This may cause runtime problems with W32 sockets" In file included from C:/Perl/lib/CORE/sys/socket.h:32, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: C:/Perl/lib/CORE/win32.h:75:20: direct.h: No such file or directory In file included from C:/Perl/lib/CORE/sys/socket.h:32, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: C:/Perl/lib/CORE/win32.h:270: error: conflicting types for 'intptr_t' /usr/include/stdint.h:60: error: previous declaration of 'intptr_t' was here C:/Perl/lib/CORE/win32.h:275: error: conflicting types for 'uintptr_t' /usr/include/stdint.h:62: error: previous declaration of 'uintptr_t' was here C:/Perl/lib/CORE/win32.h:297: error: conflicting types for 'mkstemp' /usr/include/stdlib.h:100: error: previous declaration of 'mkstemp' was here C:/Perl/lib/CORE/win32.h:297: error: conflicting types for 'mkstemp' /usr/include/stdlib.h:100: error: previous declaration of 'mkstemp' was here C:/Perl/lib/CORE/win32.h:341: error: parse error before "Stat_t" In file included from C:/Perl/lib/CORE/sys/socket.h:32, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: C:/Perl/lib/CORE/win32.h:447: error: parse error before '*' token In file included from C:/Perl/lib/CORE/win32.h:553, from C:/Perl/lib/CORE/sys/socket.h:32, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: C:/Perl/lib/CORE/perlio.h:117: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:118: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:121: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:123: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:124: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:124: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:124: warning: data definition has no type or storage class C:/Perl/lib/CORE/perlio.h:125: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:218: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:231: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:343: error: parse error before "SV" C:/Perl/lib/CORE/perlio.h:346: error: parse error before "SV" C:/Perl/lib/CORE/perlio.h:349: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:358: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:362: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:369: error: parse error before '*' token C:/Perl/lib/CORE/perlio.h:374: error: parse error before '*' token In file included from C:/Perl/lib/CORE/win32.h:559, from C:/Perl/lib/CORE/sys/socket.h:32, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: C:/Perl/lib/CORE/win32iop.h:73: error: parse error before "Stat_t" C:/Perl/lib/CORE/win32iop.h:74: error: parse error before "Stat_t" C:/Perl/lib/CORE/win32iop.h:77: error: parse error before "IV" C:/Perl/lib/CORE/win32iop.h:133: error: parse error before "Stat_t" In file included from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: C:/Perl/lib/CORE/sys/socket.h:34:1: warning: "ENOTSOCK" redefined In file included from /usr/include/errno.h:9, from C:/Perl/lib/CORE/perl.h:1180, from lib\Cwd.xs:2: /usr/include/sys/errno.h:119:1: warning: this is the location of the previous definition In file included from lib\Cwd.xs:2: C:/Perl/lib/CORE/perl.h:3119:1: warning: "__attribute__format__" redefined In file included from C:/Perl/lib/CORE/win32.h:553, from C:/Perl/lib/CORE/sys/socket.h:32, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: C:/Perl/lib/CORE/perlio.h:214:1: warning: this is the location of the previous definition In file included from C:/Perl/lib/CORE/perl.h:3275, from lib\Cwd.xs:2: C:/Perl/lib/CORE/iperlsys.h:610: warning: "struct _stati64" declared inside parameter list C:/Perl/lib/CORE/iperlsys.h:610: warning: its scope is only this definition or declaration, which i +s probably not what you want C:/Perl/lib/CORE/iperlsys.h:618: warning: "struct _stati64" declared inside parameter list C:/Perl/lib/CORE/iperlsys.h:631: warning: "struct _stati64" declared inside parameter list In file included from C:/Perl/lib/CORE/perl.h:4659, from lib\Cwd.xs:2: C:/Perl/lib/CORE/intrpvar.h:85: error: field `Istatbuf' has incomplete type C:/Perl/lib/CORE/intrpvar.h:86: error: field `Istatcache' has incomplete type In file included from lib\Cwd.xs:3: C:/Perl/lib/CORE/XSUB.h:508:1: warning: "clearerr" redefined In file included from C:/Perl/lib/CORE/win32.h:74, from C:/Perl/lib/CORE/sys/socket.h:32, from C:/Perl/lib/CORE/perl.h:1195, from lib\Cwd.xs:2: /usr/include/stdio.h:571:1: warning: this is the location of the previous definition lib\Cwd.xs: In function `bsd_realpath': lib\Cwd.xs:89: warning: comparison between pointer and integer error building dll file from 'lib\Cwd.c' at C:/Perl/lib/ExtUtils/CBuilder/Platform/Windows.pm line +143.

-J_Tom_Moon_79
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.