Re: [ANNOUNCE] NSPR 4.7.2 Release

Joachim Ziegler <[email protected]> Thu, 30 Oct 2008 15:06:00 +0100
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
Wan-Teh Chang wrote:
> NSPR 4.7.2 has been released.  This is a bug-fix patch release.
> The CVS tag is NSPR_4_7_2_RTM.  The source tar file can be
> downloaded from https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.2/.

I have problems compiling this under Windows with CygWin.

I've followed the steps as given on

https://developer.mozilla.org/en/Checkout_and_Build_NSPR

In particular, I used the description

>  Autoconf
> 
> Using the autoconf build method on Windows requires the Cygwin Toolkit.
> 
> Open a Cygwin window. Follow the procedure described for building NSPR on Unix. 

So I did

$ mkdir target
$ cd target
$ ../mozilla/nsprpub/configure
$ make

It seems that it does not find "nsinstall":

Administrator@mpino1301 /cygdrive/d/nspr-4.7.2/nspr-4.7.2/target
$ make
cd config; make -j1 export
make[1]: Entering directory 
`/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/config'
sh ../../mozilla/nsprpub/build/cygwin-wrapper gcc -mno-cygwin -o now.o 
-c      -
g   -UNDEBUG -DDEBUG_Administrator  -DDEBUG=1 -DXP_PC=1 -DWIN32=1 
-DWINNT=1 -D_X
86_=1 -DHAVE_STRERROR=1  -DFORCE_PR_LOG   ../../mozilla/nsprpub/config/now.c
sh ../../mozilla/nsprpub/build/cygwin-wrapper gcc -mno-cygwin  now.o 
-o now.ex
e
rm -f ../dist/bin/nspr-config
make[1]: Leaving directory `/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/config'
cd pr; make -j1 export
make[1]: Entering directory `/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/pr'
cd include; make export
make[2]: Entering directory 
`/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/pr/include
'
cd md; make export
make[3]: Entering directory 
`/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/pr/include
/md'
sh ../../../../mozilla/nsprpub/build/cygwin-wrapper nsinstall -m 444 
../../../..
/mozilla/nsprpub/pr/include/md/_aix32.cfg 
../../../../mozilla/nsprpub/pr/include
/md/_aix64.cfg ../../../../mozilla/nsprpub/pr/include/md/_beos.cfg 
../../../../m
ozilla/nsprpub/pr/include/md/_bsdi.cfg 
../../../../mozilla/nsprpub/pr/include/md
/_darwin.cfg ../../../../mozilla/nsprpub/pr/include/md/_dgux.cfg 
../../../../moz
illa/nsprpub/pr/include/md/_freebsd.cfg 
../../../../mozilla/nsprpub/pr/include/m
d/_hpux32.cfg ../../../../mozilla/nsprpub/pr/include/md/_hpux64.cfg 
../../../../
mozilla/nsprpub/pr/include/md/_irix32.cfg 
../../../../mozilla/nsprpub/pr/include
/md/_irix64.cfg ../../../../mozilla/nsprpub/pr/include/md/_linux.cfg 
../../../..
/mozilla/nsprpub/pr/include/md/_ncr.cfg 
../../../../mozilla/nsprpub/pr/include/m
d/_nec.cfg ../../../../mozilla/nsprpub/pr/include/md/_netbsd.cfg 
../../../../moz
illa/nsprpub/pr/include/md/_nextstep.cfg 
../../../../mozilla/nsprpub/pr/include/
md/_nto.cfg ../../../../mozilla/nsprpub/pr/include/md/_openbsd.cfg 
../../../../m
ozilla/nsprpub/pr/include/md/_openvms.cfg 
../../../../mozilla/nsprpub/pr/include
/md/_os2.cfg ../../../../mozilla/nsprpub/pr/include/md/_osf1.cfg 
../../../../moz
illa/nsprpub/pr/include/md/_qnx.cfg 
../../../../mozilla/nsprpub/pr/include/md/_r
eliantunix.cfg ../../../../mozilla/nsprpub/pr/include/md/_riscos.cfg 
../../../..
/mozilla/nsprpub/pr/include/md/_scoos.cfg 
../../../../mozilla/nsprpub/pr/include
/md/_solaris.cfg ../../../../mozilla/nsprpub/pr/include/md/_sony.cfg 
../../../..
/mozilla/nsprpub/pr/include/md/_sunos4.cfg 
../../../../mozilla/nsprpub/pr/includ
e/md/_symbian.cfg 
../../../../mozilla/nsprpub/pr/include/md/_unixware.cfg ../../
../../mozilla/nsprpub/pr/include/md/_unixware7.cfg 
../../../../mozilla/nsprpub/p
r/include/md/_win16.cfg 
../../../../mozilla/nsprpub/pr/include/md/_win95.cfg ../
../../../mozilla/nsprpub/pr/include/md/_winnt.cfg 
../../../dist/include/nspr/md
../../../../mozilla/nsprpub/build/cygwin-wrapper: line 75: exec: 
nsinstall: not
found
make[3]: *** [export] Error 127
make[3]: Leaving directory 
`/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/pr/include/
md'
make[2]: *** [export] Error 2
make[2]: Leaving directory 
`/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/pr/include'

make[1]: *** [export] Error 2
make[1]: Leaving directory `/cygdrive/d/nspr-4.7.2/nspr-4.7.2/target/pr'
make: *** [export] Error 2



BTW, the section also mentions a "Classic" way to build under Windows. 
does this mean that building with CygWin only works for the CygWin 
layer? And to build the generic (?) Win32 debug targets, you should issue

gmake OS_TARGET=WIN95

Where does this gmake come from, if it is a classic/native way to 
compile under Windows?

BTw2: How can I create static libraries against which I can link statically?

Joachim