Re: build problems

"news.mozilla.org" <[email protected]> Thu, 30 Jul 2009 14:21:20 -0400
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
Hi Wan-Teh,

I am now trying to build NSS3.11.4 with MozillaBuild.

But NSS3.11.4 is dependent on NSPR4.6.4 and needs its include and lib files.

So when i start start-msvc8.bat from MozillaBuild, the include files and lib 
files are not set properly and i always get

make[2]: Entering directory 
`/c/WORK/Software/nss-3.11.4-with-nspr-4.6.4.tar/nss
-3.11.4-with-nspr-4.6.4/nss-3.11.4/mozilla/security/nss/lib/util'
cl -FoWINNT5.1_DBG.OBJ/quickder.obj -c -Od -Z7 -MD -W3 -nologo -GT -DXP_PC -DDEB
UG -D_DEBUG -UNDEBUG -DDEBUG_Administrator -DWIN32 -D_WINDOWS -D_X86_ -DWINNT 
 -I
../../../../dist/WINNT5.1_DBG.OBJ/include  -I../../../../dist/public/nss -I../..
/../../dist/private/nss -I../../../../dist/public/dbm 
/c/WORK/Software/nss-3.11
.4-with-nspr-4.6.4.tar/nss-3.11.4-with-nspr-4.6.4/nss-3.11.4/mozilla/security/ns
s/lib/util/quickder.c
quickder.c
c:\work\software\nss-3.11.4-with-nspr-4.6.4.tar\nss-3.11.4-with-nspr-4.6.4\nss-3
.11.4\mozilla\security\nss\lib\util\secasn1.h(48) : fatal error C1083: 
Cannot op
en include file: 'plarena.h': No such file or directory
make[2]: *** [WINNT5.1_DBG.OBJ/quickder.obj] Error 2
make[2]: Leaving directory 
`/c/WORK/Software/nss-3.11.4-with-nspr-4.6.4.tar/nss-
3.11.4-with-nspr-4.6.4/nss-3.11.4/mozilla/security/nss/lib/util'
make[1]: *** [libs] Error 2
make[1]: Leaving directory 
`/c/WORK/Software/nss-3.11.4-with-nspr-4.6.4.tar/nss-
3.11.4-with-nspr-4.6.4/nss-3.11.4/mozilla/security/nss/lib'
make: *** [libs] Error 2



Now, I am trying to set the INCLUDE and LIB environment variables so that 
the NSPR include and lib files are picked up correctly.

But somehow, using "export" or using "set", I have been unsuccessful till 
now.

Is there any other way to make NSS pick up the correct NSPR include and lib 
files?

Thanks
Vinu



"Wan-Teh Chang" <[email protected]> wrote in message 
news:[email protected]...
> On Wed, Jul 29, 2009 at 3:35 PM,
> news.mozilla.org<[email protected]> wrote:
>> Hi Wan-Teh,
>>
>> thanks for your suggestion. Now the build goes fine with cygwin.
>>
>> I also want to build NSS. So i downloaded nss-3.11.4-with-nspr-4.6.4.
>> Now, after your suggestion, i have built NSPR-4.6.4 successfully.
>>
>> But doing the nss-3.11.4 build according to the
>> http://www.mozilla.org/projects/security/pki/nss/nss-3.11.4/nss-3.11.4-build.html
>> FAILS.
>> I do this build from a windows command line using the Netscape wintools.
>>
>> process_begin: CreateProcess((null), pwd, ...) failed.
>> process_begin: CreateProcess((null), pwd, ...) failed.
>
> I have seen this kind of problem before.  I seem to remember it
> is caused by using the gmake.exe from the Netscape wintools
> with Cygwin's sh.exe.  If so, the fix is to use Cygwin's make.exe
> instead.  Again, you may need to adjust your PATH environment
> variable so that "make.exe" is Cygwin's make.exe.
>
> This is why I now recommend MozillaBuild -- it takes care of
> everything for you.  You don't need to install Cygwin or
> Netscape wintools, and you don't need to worry about the
> PATH environment variable.
>
> Wan-Teh