Skip Menu |

This queue is for tickets about the Win32API-File CPAN distribution.

Report information
The Basics
Id: 18754
Status: resolved
Priority: 0/
Queue: Win32API-File

People
Owner: Nobody in particular
Requestors: cpan [...] fireartist.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.09
Fixed in: 0.1001_02



Subject: Win32API-File-0.09 tests fail with perl5.8.8/mingw
When I run `dmake test` I get this error message: Directory blib\arch/Win32API/File/cFile.pc not allowed in require at blib\lib/Win32API/File.pm line 149. (note: I'm not running activeperl, it's built from source with mingw) I think the problem may be to do with perl patch 26373 which makes perl-5.8.8 refuse to load directories as files. Below is the full output of the commands perl Makefile.PL dmake dmake test perl -V gcc --version Regarding a comment in File.pm, I don't know if it would have helped to follow these instructions, but I couldn't figure out *exactly* what syntax this was saying to use: # * Modify F<Makefile.PL> to add WriteMakeFile() => # CONST2PERL/postamble => [[ "Win32API::File" => ]] WRITE_PERL => 1. I did eventually manage to get all tests passing. To do this I edited File.pm so that line 149 read: require Win32API::File::cFile; instead of: require "Win32API/File/cFile.pc"; Then after running `dmake` I deleted the directory "blib/arch/Win32API/File/cFile.pc" And copied cFile.pc to blib/arch/Win32API/File/cFile.pm * output follows * C:\vanilla-perl\src\Win32API-File-0.09>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Win32API::File C:\vanilla-perl\src\Win32API-File-0.09>dmake cp File.pm blib\lib\Win32API\File.pm C:\vanilla-perl\perl\bin\perl.exe C:\vanilla-perl\perl\lib\ExtUtils\xsubpp -typemap C:\vanilla-perl\perl\lib\ExtUtils\typemap -typemap typemap File.xs > File.xsc && C:\vanilla-perl\perl\bin\perl.exe -MExtUtils::Command -e mv File.xsc File.c gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" "-IC:\vanilla-perl\perl\lib\CORE" File.c Running Mkbootstrap for Win32API::File () C:\vanilla-perl\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 File.bs C:\vanilla-perl\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Win32API::File\", 'DLBASE' => 'File', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def File.def --output-exp dll.exp g++ -o blib\arch\auto\Win32API\File\File.dll -Wl,--base-file -Wl,dll.base -mdll-s -L"c:\vanilla-perl\perl\lib\CORE" -L"C:\vanilla-perl\MinGW\lib" File.o -Wl,--image-base,0x680d0000 C:\vanilla-perl\perl\lib\CORE\libperl58.a -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 dll.exp dlltool --def File.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\Win32API\File\File.dll -mdll -s -L"c:\vanilla-perl\perl\lib\CORE" -L"C:\vanilla-perl\MinGW\lib" File.o -Wl,--image-base,0x680d0000 C:\vanilla-perl\perl\lib\CORE\libperl58.a -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 dll.exp C:\vanilla-perl\perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto\Win32API\File\File.dll C:\vanilla-perl\perl\bin\perl.exe -MExtUtils::Command -e cp File.bs blib\arch\auto\Win32API\File\File.bs C:\vanilla-perl\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto\Win32API\File\File.bs C:\vanilla-perl\src\Win32API-File-0.09>dmake test Skip blib\lib\Win32API\File.pm (unchanged) C:\vanilla-perl\perl\bin\perl.exe "-Iblib\lib" "-Iblib\arch" test.pl 1..245 Directory blib\arch/Win32API/File/cFile.pc not allowed in require at blib\lib/Win32API/File.pm line 149. Compilation failed in require at test.pl line 9. BEGIN failed--compilation aborted at test.pl line 9. dmake: Error code 130, while making 'test_dynamic' C:\vanilla-perl\src\Win32API-File-0.09>perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef 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 =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='3.4.5', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"c:\vanilla-perl\perl\lib\CORE" -L"C:\vanilla-perl\MinGW\lib"' libpth=C:\vanilla-perl\MinGW\lib libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 libc=-lmsvcrt, so=dll, useshrplib=yes, libperl=libperl58.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"c:\vanilla-perl\perl\lib\CORE" -L"C:\vanilla-perl\MinGW\lib"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO Built under MSWin32 Compiled at Apr 3 2006 10:31:12 @INC: c:/vanilla-perl/perl/lib c:/vanilla-perl/perl/site/lib . C:\vanilla-perl\src\Win32API-File-0.09>gcc --version gcc (GCC) 3.4.5 (mingw special) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.