On Mi. 15. Okt. 2008, 12:35:09, MSCHWERN wrote:
Show quoted text
Checked out your latest Version and there seems to be another problem
now. When i try to compile the module i get the following error:
D:\meta-test>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Text::Metaphone
D:\meta-test>dmake
cp Metaphone.pm blib\lib\Text\Metaphone.pm
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_
IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2
-DVERSION=\"20
081015\" -DXS_VERSION=\"20081015\"
"-IC:\strawberry\perl\lib\CORE" my_
memory.c
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_
IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2
-DVERSION=\"20
081015\" -DXS_VERSION=\"20081015\"
"-IC:\strawberry\perl\lib\CORE" met
aphone_c.c
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp
-typemap
C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap Metaphone.xs
Show quoted text> Metaph
one.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv
Metaphone.x
sc Metaphone.c
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_
IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2
-DVERSION=\"20
081015\" -DXS_VERSION=\"20081015\"
"-IC:\strawberry\perl\lib\CORE" Met
aphone.c
In file included from Metaphone.xs:6:
my_memory.h:75: error: syntax error before '(' token
my_memory.h:75: error: conflicting types for 'memset'
my_memory.h:75: error: conflicting types for 'memset'
my_memory.h:75: error: syntax error before "size"
dmake: Error code 129, while making 'Metaphone.o'
Interestingly this also only occurs on Windows, on Debian this module
compiles just fine. I hate Windows.
If i remove the #include "my_memory.h" from the Metaphone.xs the module
runs through make and make test just fine though.