Subject: | cygwin, lowercased, gcc |
Wrong filename case-sensitivity.
Please rename guitest.* => GuiTest.*,
makefile.pl => Makefile.PL
changes => CHANGES
Checking if your kit is complete...
Looks good
Writing Makefile for Win32::GuiTest
cp lib/win32/guitest/guitest.pc blib/lib/win32/guitest/guitest.pc
cp makefile.pl blib/lib/Win32/makefile.pl
cp makedist.pl blib/lib/Win32/makedist.pl
cp lib/win32/guitest/cmd.pm blib/lib/win32/guitest/cmd.pm
cp guitest.pm blib/lib/Win32/guitest.pm
Package Win32::GuiTest (Win32/GuiTest.pm) does not match filename blib/lib/Win32/guitest.pm at /usr/lib/perl5/5.8/AutoSp
lit.pm line 263, <$in> line 1116.
make: *** [pm_to_blib.ts] Fehler 255
I'm doing this on cygwin, which works fine for Win32-GuiTest-1.3
Just the "start notepad.exe" test fails, because start is not a valid shell command, only for cmd.exe.
Ok, back to 1.50.2-ad:
Next problem with gcc in the Makefile:
cpp files need to declared as cpp, gcc cannot compile c++ files. it needs g++.
gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"1.50.3-
ad\" -DXS_VERSION=\"1.50.3-ad\" "-I/usr/lib/perl5/5.8/cygwin/CORE" GuiTest.c
In file included from GuiTest.xs:19:
dibsect.h:25: error: Fehler beim Parsen before "DibSect"
ok, requires -C++ switch (and not -c++ as in your makefile.pl)
=>
In file included from /usr/lib/perl5/5.8/cygwin/CORE/perl.h:2838,
from GuiTest.xs:26:
/usr/include/ieeefp.h:185: error: previous declaration of `int isnan(double)'
with C++ linkage
/usr/include/math.h:125: error: conflicts with new declaration with C linkage
I give up. Including cpp files from c files makes no sense for me.