Issue 762: Building Google gear source code for wince http://code.google.com/p/gears/issues/detail?id=762
New issue report by [EMAIL PROTECTED]: Hi, I am new to the Google community, so let me know if I post this problem in the wrong place. I am not able to build Google Gear code. I always get an error regarding date type into the sqllite library. Using VS 2008, it is saying that the type is aleary defined and with VS 2005, it is saying the type is undefined. Really weird, must be a mix of library of some kind. I took the code from SVN "http://gears.googlecode.com/svn/trunk/" I am using Windows XP with service pack 2 on all the setup describe below. ********** build script: e: cd E:\GoogleGear\gears\ "E:\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" "E:\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.cmd" set PATH=E:\UnxUtils\usr\local\wbin;%PATH%;E:\Python24;C:\Program Files\Windows Installer XML v3; make BROWSER=IE MODE=opt OS=wince ********** Setup 1: VS 2008 Microsoft Platform SDK for Windows Server 2003 R2 Wix 3.0.2925 Python 2.4 Unxutils Error: cl -I.. -Ibin-opt/wince-arm/ie -Ibin-opt/wince-arm/common - I../third_party/npapi -I../third_party -I../third_party/googleurl -I../th ird_party/icu38/public/common -DPNG_USER_CONFIG -I../third_party/zlib - DNO_GZIP -DNO_GZCOMPRESS -DNO_ERRNO_H -I../third_party/breakp ad/src -I../third_party/libgd /nologo -DSTRICT -D_UNICODE -DUNICODE - D_USRDLL -DWIN32 -D_WINDLL -D_CRT_SECURE_NO_DEPRECATE -DNOMINMA X -D_WIN32_WCE=0x501 -DWINVER=_WIN32_WCE -DUNDER_CE=0x501 -DOS_WINCE - DWIN32_PLATFORM_PSPC -DARM -D_ARM_ -DPOCKETPC2003_UI_MODEL -D_ CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA -D_CE_CRT_ALLOW_WIN_MINMAX - DNDEBUG=1 -DUSING_CCTESTS=1 -I../third_party/gtest/include -I. ./third_party/gtest /c /Fo"bin-opt/wince- arm/common/sqlite/os_win.obj" /Fd"bin-opt/wince- arm/common/sqlite/os_win.pdb" /W3 /WX /GR- /MT /Zi /Zc:wchar_t- /O2 -D_HAS_EXCEPTIONS=0 -D_ATL_NO_EXCEPTIONS - DU_STATIC_IMPLEMENTATION -DSQLITE_CORE -DSQLITE_ENABLE_FTS1 -DS QLITE_ENABLE_BROKEN_FTS1 -DSQLITE_ENABLE_FTS2 -DSQLITE_ENABLE_BROKEN_FTS2 - DTHREADSAFE=1 -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 -DSQ LITE_OMIT_ATTACH=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_OMIT_VACUUM=1 - DSQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1 -I../third_party/s qlite_google/src - I../third_party/sqlite_google/preprocessed /wd4018 /wd4244 /wd4146 ../third _party/sqlite_google/src/os_win.c os_win.c ../third_party/sqlite_google/src/os_win.c(288) : error C2084: function 'tm *localtime(const time_t *)' already has a body E:\Microsoft Visual Studio 9.0\VC\INCLUDE\time.inl(114) : see previous definition of 'localtime' make[1]: *** [bin-opt/wince-arm/common/sqlite/os_win.obj] Error 2 make: *** [default] Error 2 ********** Setup 2: Same as setup 1 but using Windows SDK for Windows Server 2008 rather then 2003. (I remove the call to SetEnv.cmd in the build script) I have the same result as setup 1. Error: cl -I.. -Ibin-opt/wince-arm/ie -Ibin-opt/wince-arm/common - I../third_party/npapi -I../third_party -I../third_party/googleurl -I../th ird_party/icu38/public/common -DPNG_USER_CONFIG -I../third_party/zlib - DNO_GZIP -DNO_GZCOMPRESS -DNO_ERRNO_H -I../third_party/breakp ad/src -I../third_party/libgd /nologo -DSTRICT -D_UNICODE -DUNICODE - D_USRDLL -DWIN32 -D_WINDLL -D_CRT_SECURE_NO_DEPRECATE -DNOMINMA X -D_WIN32_WCE=0x501 -DWINVER=_WIN32_WCE -DUNDER_CE=0x501 -DOS_WINCE - DWIN32_PLATFORM_PSPC -DARM -D_ARM_ -DPOCKETPC2003_UI_MODEL -D_ CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA -D_CE_CRT_ALLOW_WIN_MINMAX - DNDEBUG=1 -DUSING_CCTESTS=1 -I../third_party/gtest/include -I. ./third_party/gtest /c /Fo"bin-opt/wince- arm/common/sqlite/os_win.obj" /Fd"bin-opt/wince- arm/common/sqlite/os_win.pdb" /W3 /WX /GR- /MT /Zi /Zc:wchar_t- /O2 -D_HAS_EXCEPTIONS=0 -D_ATL_NO_EXCEPTIONS - DU_STATIC_IMPLEMENTATION -DSQLITE_CORE -DSQLITE_ENABLE_FTS1 -DS QLITE_ENABLE_BROKEN_FTS1 -DSQLITE_ENABLE_FTS2 -DSQLITE_ENABLE_BROKEN_FTS2 - DTHREADSAFE=1 -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 -DSQ LITE_OMIT_ATTACH=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_OMIT_VACUUM=1 - DSQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1 -I../third_party/s qlite_google/src - I../third_party/sqlite_google/preprocessed /wd4018 /wd4244 /wd4146 ../third _party/sqlite_google/src/os_win.c os_win.c ../third_party/sqlite_google/src/os_win.c(288) : error C2084: function 'tm *localtime(const time_t *)' already has a body E:\Microsoft Visual Studio 9.0\VC\INCLUDE\time.inl(114) : see previous definition of 'localtime' make[1]: *** [bin-opt/wince-arm/common/sqlite/os_win.obj] Error 2 make: *** [default] Error 2 ********** Setup 3: (On another PC) VS 2005 Microsoft Platform SDK for Windows Server 2003 R2 Wix 3.0.2925 Python 2.4 Unxutils Error: cl -I.. -Ibin-opt/wince-arm/ie -Ibin-opt/wince-arm/common - I../third_party/npapi -I../third_party -I../third_party/googleurl - I../third_party/icu38/public/commo n -DPNG_USER_CONFIG -I../third_party/zlib -DNO_GZIP -DNO_GZCOMPRESS - DNO_ERRNO_H -I../third_party/breakpad/src -I../third_party/libgd /nologo -DSTRICT - D_UNICOD E -DUNICODE -D_USRDLL -DWIN32 -D_WINDLL -D_CRT_SECURE_NO_DEPRECATE - DNOMINMAX -D _WIN32_WCE=0x501 -DWINVER=_WIN32_WCE -DUNDER_CE=0x501 -DOS_WINCE - DWIN32_PLATFOR M_PSPC -DARM -D_ARM_ -DPOCKETPC2003_UI_MODEL - D_CE_ALLOW_SINGLE_THREADED_OBJECTS _IN_MTA -D_CE_CRT_ALLOW_WIN_MINMAX -DNDEBUG=1 -DUSING_CCTESTS=1 - I../third_par ty/gtest/include -I../third_party/gtest /c /Fo"bin-opt/wince- arm/common/sqlite/d ate.obj" /Fd"bin-opt/wince-arm/common/sqlite/date.pdb" /W3 /WX /GR- /MT /Zi /Zc :wchar_t- /O2 -D_HAS_EXCEPTIONS=0 -D_ATL_NO_EXCEPTIONS - DU_STATIC_IMPLEMENTATION -DSQLITE_CORE -DSQLITE_ENABLE_FTS1 -DSQLITE_ENABLE_BROKEN_FTS1 - DSQLITE_ENABLE _FTS2 -DSQLITE_ENABLE_BROKEN_FTS2 -DTHREADSAFE=1 - DSQLITE_DEFAULT_FILE_PERMISSIO NS=0600 -DSQLITE_OMIT_ATTACH=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 - DSQLITE_OMIT_VACU UM=1 -DSQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1 - I../third_party/sqlite_google/src - I../third_party/sqlite_google/preprocessed /wd4018 /wd4244 /wd4146 ../third _pa rty/sqlite_google/src/date.c date.c ../third_party/sqlite_google/src/date.c(466) : error C2220: warning treated as e rror - no 'object' file generated ../third_party/sqlite_google/src/date.c(466) : warning C4013: 'localtime_s' unde fined; assuming extern returning int make[1]: *** [bin-opt/wince-arm/common/sqlite/date.obj] Error 2 make: *** [default] Error 2 Issue attributes: Status: New Owner: ---- Labels: Type-Defect Priority-Medium -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
