I followed the most recent build instructions I could find, at: http://www.mozilla.org/projects/security/pki/nss/nss-3.9/nss-3.9-build.html This document: http://www.mozdevgroup.com/docs/pete/Signing-an-XPI.html seems to imply that those build instructions are still valid.
The exact commands I typed are below. It seems that parts of my build are not using cygwin-wrapper, and so fails when presented with a cygwin path with forward slashes in it.
In the part of my build which works, you get lines like:
sh ../../../../build/cygwin-wrapper cl -Foplgetopt.obj -c -W3 -nologo -GF -Gy -Od -MD -GT -G5 -Z7 -UNDEBUG -DDEBUG_grm -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -D_DEBUG=1 -DWINNT=1 -D_X86_=1 -DFORCE_PR_LOG -I../../../../../dist/WINNT5.0_DBG.OBJ/include /cygdrive/c/build/mozilla/nsprpub/WINNT5.0_DBG.OBJ/lib/libc/src/../../../../lib/libc/src/plgetopt.c plgetopt.c
but the failure looks like this:
gmake[2]: Leaving directory `C:/build/mozilla/security/dbm/include'
cd src; gmake libs
gmake[2]: Entering directory `C:/build/mozilla/security/dbm/src'
cl -FoWINNT5.0_DBG.OBJ/db.obj -c -Od -Z7 -MD -W3 -nologo -GT -DXP_PC -DDEBUG -D_DEBUG -UNDEBUG -DDEBUG_grm -DWIN32 -D_WINDOWS -D_X86_ -DWINNT -DSTDC_HEADERS -DHAVE_STRERROR -DHAVE_SNPRINTF -DMEMMOVE -D__DBINTERFACE_PRIVATE -I../../../dist/WINNT5.0_DBG.OBJ/include -I../../../dist/public/dbm -I../../../dist/private/dbm -I../../../dbm/include /cygdrive/c/build/mozilla/security/dbm/src/../../../dbm/src/db.c
Command line warning D4002 : ignoring unknown option '/cygdrive/c/build/mozilla/security/dbm/src/../../../dbm/src/db.c'
Command line error D2003 : missing source filename
gmake[2]: *** [WINNT5.0_DBG.OBJ/db.obj] Error 2
gmake[2]: Leaving directory `C:/build/mozilla/security/dbm/src'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory `C:/build/mozilla/security/dbm'
gmake: *** [build_dbm] Error 2
I tried pulling NSPR 4.4.1 and DBM 1.61 (the versions NSS 3.9 uses) by their tags and using them instead of the tip, but got the same error. I also tried setting NS_USE_GCC=1, but the compiler crashed. Running the commands directly under cygwin sh didn't help.
Manually inputting the failing command but prefixing it with "sh ../../../../build/cygwin-wrapper" does make it run.
Here are the commands I typed to set up my build environment:
set CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot cvs login set OS_TARGET=WINNT set BUILT_OPT=1 set HOME=C:/temp cvs co -r mozilla/nsprpub cvs co -r mozilla/dbm mozilla/security/dbm cvs co mozilla/security/coreconf mozilla/security/nss cd mozilla\security\nss gmake nss_build_all
Help would be appreciated :-)
Gerv _______________________________________________ Mozilla-security mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-security
