build error in nsWinAPIs.cpp

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

build error in nsWinAPIs.cpp

"Žiga '[BISI]' Sancin"
I'm running into a build error while building Firefox or Thunderbird
from the MOZILLA_1_8_BRANCH under Windows XP (with cygwin and mingw).
The error appeared after the checkin of bug 162361 (Unicode file i/o in
XPCOM/IO).


Here's the error output:
nsWinAPIs.cpp
Building deps for
/cygdrive/d/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.
cpp
/cygdrive/d/mozilla/mozilla_branch/mozilla/build/cygwin-wrapper g++
-mno-cygwin
-o nsWinAPIs.o -c  -DMOZILLA_INTERNAL_API -DOSTYPE=\"WINNT5.1\"
-DOSARCH=\"WINNT
\" -DBUILD_ID=0000000000 -D_IMPL_NS_COM -I.. -I../../dist/include/string
-I../..
/dist/include/xpcom -I../../dist/include -I../../dist/include/nspr
     -fno
-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align
-Woverload
ed-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wno-long-long -
pedantic -mms-bitfields -pipe  -DNDEBUG -DTRIMMED -O
-DX_DISPLAY_MISSING=1 -DM
OZILLA_VERSION=\"1.8\" -DMOZILLA_VERSION_U=1.8 -DHAVE_SNPRINTF=1
-D_WINDOWS=1 -D
_WIN32=1 -DWIN32=1 -DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 -DWINVER=0x400
-D_WIN3
2_WINNT=0x400 -DSTDC_HEADERS=1 -DWIN32_LEAN_AND_MEAN=1 -DNO_X11=1
-D_X86_=1 -DD_
INO=d_ino -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1
-DHAVE_MEMORY_H=1
  -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_LIBM=1 -DNO_X11=1
-DMMAP_MISSES_WRIT
ES=1 -DHAVE_STRERROR=1 -DHAVE_SNPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_RINT=1
-DVA_COP
Y=va_copy -DHAVE_VA_COPY=1 -DMOZ_DEFAULT_TOOLKIT=\"windows\"
-DMOZ_PHOENIX=1 -DM
OZ_BUILD_APP=browser -DMOZ_XUL_APP=1
-DMOZ_DISTRIBUTION_ID=\"org.mozilla\" -DOJI
=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1
-DNS_PRINT
ING=1 -DNS_PRINT_PREVIEW=1 -DMOZ_XTF=1 -DMOZ_MATHML=1
-DMOZ_UPDATE_CHANNEL=defau
lt -DMOZ_FEEDS=1 -DMOZ_STORAGE=1 -DMOZ_LOGGING=1 -DHAVE___CXA_DEMANGLE=1
-DMOZ_U
SER_DIR=\"Mozilla\" -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_MORK=1
-DMOZ_DLL_SU
FFIX=\".dll\" -DJS_THREADSAFE=1 -DMOZILLA_1_8_BRANCH=1
-DMOZILLA_LOCALE_VERSION=
\"1.8b5\" -DMOZILLA_REGION_VERSION=\"1.8b5\"
-DMOZILLA_SKIN_VERSION=\"1.8\"  -D_
MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
/cygdrive/d/mozilla/mozilla_branch/mozilla/xp
com/io/nsWinAPIs.cpp
d:/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.cpp: In function
`BOOL nsGe
tFileVersionInfoW(const WCHAR*, DWORD, DWORD, void*)':
d:/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.cpp:260: error:
invalid con
version from `const char*' to `CHAR*'
d:/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.cpp: In function
`DWORD nsG
etFileVersionInfoSizeW(const WCHAR*, DWORD*)':
d:/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.cpp:268: error:
invalid con
version from `const char*' to `CHAR*'
d:/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.cpp: At global scope:
d:/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.cpp:640: error:
invalid con
version from `BOOL (*)(WCHAR*, DWORD, DWORD, void*)' to `BOOL (*)(const
WCHAR*,
DWORD, DWORD, void*)'
d:/mozilla/mozilla_branch/mozilla/xpcom/io/nsWinAPIs.cpp:641: error:
invalid con
version from `DWORD (*)(WCHAR*, DWORD*)' to `DWORD (*)(const WCHAR*,
DWORD*)'
make[4]: *** [nsWinAPIs.o] Error 1
make[4]: Leaving directory
`/cygdrive/d/mozilla/mozilla_branch/mozilla/fx_branch
/xpcom/io'
make[3]: *** [libs] Error 2
make[3]: Leaving directory
`/cygdrive/d/mozilla/mozilla_branch/mozilla/fx_branch
/xpcom'
make[2]: *** [tier_2] Error 2
make[2]: Leaving directory
`/cygdrive/d/mozilla/mozilla_branch/mozilla/fx_branch
'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/cygdrive/d/mozilla/mozilla_branch/mozilla/fx_branch
'
make: *** [build] Error 2


My .mozconfig (I'm using multiple mozconfigs and then including
everything, but here's an example of a Firefox mozconfig):
CC=gcc
CXX=g++
CPP=cpp
AS=as
LD=ld

mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/fx_branch

ac_add_options --enable-application=browser
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-activex
ac_add_options --disable-accessibility


Are there any workarounds for this issue?

Thanks,
Ziga
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: build error in nsWinAPIs.cpp

"Žiga '[BISI]' Sancin"
Never mind, I found some instructions in bugzilla...

Useful links:
https://bugzilla.mozilla.org/show_bug.cgi?id=328499#c48
https://bugzilla.mozilla.org/show_bug.cgi?id=333777



-Ziga
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds