Here's another test I carried out:
I installed VS2008, and tried to build gears.
The problem now is:
/**********************************************************/
cl -I.. -Ibin-dbg/win32-i386/ff3 -Ibin-dbg/win32-i386/common -I../
third_party/n
papi -I../third_party -I../third_party/googleurl -I../third_party/
icu38/public/c
ommon -DNO_GZIP -DNO_GZCOMPRESS -DPNG_USER_CONFIG -I../third_party/
zlib -I../thi
rd_party/breakpad/src -I../third_party/libgd /nologo -DSTRICT -
D_UNICODE -DUNICO
DE -D_USRDLL -DWIN32 -D_WINDLL -D_CRT_SECURE_NO_DEPRECATE -DNOMINMAX -
D_WINDOWS
-DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -
D_RICHEDIT_VER=0x0010
-D_MERGE_PROXYSTUB -DBREAKPAD_AVOID_STREAMS -DXP_WIN -D_DEBUG=1 -
DDEBUG=1 -DUSI
NG_CCTESTS=1 -I../third_party/gtest/include -I../third_party/gtest /c /
Fo"bin-db
g/win32-i386/common/sqlite/alter.obj" /Fd"bin-dbg/win32-i386/common/
sqlite/alter
.pdb" /W3 /WX /GR- /MTd /Zi /Zc:wchar_t- -D_HAS_EXCEPTIONS=0 -
D_ATL_NO_EXCEPTION
S -DU_STATIC_IMPLEMENTATION -DSQLITE_CORE -DSQLITE_ENABLE_FTS1 -
DSQLITE_ENABLE_
FTS2 -DTHREADSAFE=1 -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 -
DSQLITE_OMIT_ATTACH=
1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_OMIT_VACUUM=1 -
DSQLITE_TRANSACTION_DEF
AULT_IMMEDIATE=1 -I../third_party/sqlite_google/src -I../third_party/
sqlite_goog
le/preprocessed /wd4018 /wd4244 ../third_party/sqlite_google/src/
alter.c
alter.c
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE
\stdlib.h(526) : error C2
065: 'MB_LEN_MAX' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE
\stdlib.h(526) : error C2
057: expected constant expression
make[1]: *** [bin-dbg/win32-i386/common/sqlite/alter.obj] Error 2
make: *** [default] Error 2
/****************************************************************/
And so I decided to try a naive solution: I added Visual Studio 9.0/VC/
include in
config.mk to make MB_LEN_MAX visible. Having done that, I
tried again and the building process continues until:
/********************************************************************/
cl -I.. -Ibin-dbg/win32-i386/ff3 -Ibin-dbg/win32-i386/common -I"/
Program Files/M
icrosoft Visual Studio 9.0/VC/include" -I../third_party/npapi -I../
third_party -
I../third_party/googleurl -I../third_party/icu38/public/common -
DNO_GZIP -DNO_GZ
COMPRESS -DPNG_USER_CONFIG -I../third_party/zlib -I../third_party/
breakpad/src -
I../third_party/libgd /nologo -DSTRICT -D_UNICODE -DUNICODE -D_USRDLL -
DWIN32 -D
_WINDLL -D_CRT_SECURE_NO_DEPRECATE -DNOMINMAX -D_WINDOWS -
DWINVER=0x0500 -D_WIN3
2_WINNT=0x0500 -D_WIN32_IE=0x0500 -D_RICHEDIT_VER=0x0010 -
D_MERGE_PROXYSTUB -DBR
EAKPAD_AVOID_STREAMS -DXP_WIN -D_DEBUG=1 -DDEBUG=1 -DUSING_CCTESTS=1 -
I../third
_party/gtest/include -I../third_party/gtest /c /Fo"bin-dbg/win32-i386/
common/thi
rd_party/zutil.obj" /Fd"bin-dbg/win32-i386/common/third_party/
zutil.pdb" /W3 /WX
/GR- /MTd /Zi /Zc:wchar_t- -D_HAS_EXCEPTIONS=0 -D_ATL_NO_EXCEPTIONS -
DU_STATIC_
IMPLEMENTATION /wd4018 /wd4003 ../third_party/zlib/zutil.c
zutil.c
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(358) :
error C31
63: '_vsnprintf': attributes inconsistent with previous declaration
C:\Program Files\Microsoft Visual Studio 9.0\VC\include
\stdio.h(350) : s
ee declaration of '_vsnprintf'
make[1]: *** [bin-dbg/win32-i386/common/third_party/zutil.obj] Error 2
make: *** [default] Error 2
/**************************************************************/
I think this error is related to my previous "hack".
Any idea?
Thanks in advance.
Cristian
> ...
>
> read more »