Re: [ANNOUNCE] NSPR 4.7.2 Release

Wan-Teh Chang <[email protected]> Fri, 7 Nov 2008 07:18:49 -0800
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
On Fri, Nov 7, 2008 at 1:32 AM, Joachim Ziegler <[email protected]> wrote:
>
> Frankly speaking, I do not understand the difference between "normal" gcc
> and MinGW gcc.

I guess "normal" gcc uses the Cygwin Unix emulation layer, whereas
MinGW gcc uses native Win32 functions.

You can also consider using MSYS instead of Cygwin.  I myself use
the MozillaBuild package to build NSPR and NSS.  MozillaBuild is a
large download, but it is "one-stop shopping".  It gives me everything
I need and makes it painless to set up the build environment.

MozillaBuild uses MSYS and contains MinGW, although I only use
MozillaBuild with Visual C++.  (I use the free Visual C++ 2005
Express Edition at home.)

>> This crash is an assertion failure.  Note that there are two build
>> configurations on Windows, and you're building the "WINNT"
>> configuration (the default).  Please try the "WIN95" configuration
>> by passing the --enable-win32-target=WIN95 option to NSPR's
>> configure script.  All the people who build NSPR with MinGW
>> build the "WIN95" configuration, which is used by the Mozilla
>> clients.
>
> OK, this works. Now the programs run:
>
>> D:\nspr-4.7.2-build-dir\nspr-4.7.2\target95\pr\tests>stdio
>> This to standard out
>> This to standard err
>
> But what does that mean for me? Can I not build the default WINNT
> configuration? I do not want MinGW (primarily because I do not fully
> understand what it is.)

The WIN95 configuration works just fine.  Don't be discouraged by
the WIN95 name of the configuration.  It is historical.  It should
have been named the WIN32 configuration.

The fact that the WINNT configuration is the default is also historical.

> IMHO, the whole description as given on
>
> https://developer.mozilla.org/en/Checkout_and_Build_NSPR
>
> needs revision, with many additonal information taken from this thread.

I'll try to update that wiki page.  I encourage you to update the wiki
page.  It is a wiki, after all.  Thanks! :-)

Wan-Teh