CC: | |
Subject: | MongoDB 0.27 build failure on Strawberry Perl 5.10.1.0. |
Date: | Fri, 22 Jan 2010 17:10:02 +0000 (GMT) |
To: | bug-MongoDB [...] rt.cpan.org |
From: | perl [...] galumph.com |
The build fails because there's no int64_t.
I don't know what the difference between gcc on, say, Linux, and the one included with Strawberry is, so I'm not sure what sort of #ifdef to use (thus no patch included), but adding "#include <stdint.h>" after line 32 in perl_mongo.h fixes the problem.
Show quoted text
----- Relevant build output -----
C:\strawberry\perl\bin\perl.exe "-Iinc" C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap xs\Connection.xs > xs\Connection.xsc && C:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e "mv" -- xs\Connection.xsc xs\Connection.c
gcc -c -I. -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.27\" -DXS_VERSION=\"0.27\" -o xs\Connection.o "-IC:\strawberry\perl\lib\CORE" xs\Connection.c
In file included from xs\Connection.xs:17:
./perl_mongo.h:123: error: syntax error before "int64_t"
In file included from xs\Connection.xs:18:
./mongo_link.h:132: error: syntax error before "int64_t"
./mongo_link.h:132: warning: no semicolon at end of struct or union
./mongo_link.h:143: error: syntax error before '}' token
./mongo_link.h:143: warning: data definition has no type or storage class
dmake.EXE: Error code 129, while making 'xs\Connection.o'
[ERROR] MAKE failed: No such file or directory