Re: Mozilla ldap c-sdk 6.0.6 build/compilation issue using MozillaBuild1.4

Rich Megginson <[email protected]> Tue, 20 Oct 2009 13:12:33 -0600
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
ashwani saxena wrote:
> Hi Rich,
> 
> Thanks for your suggestion. I switched to MozillaBuild 1.4 to build
> APIs on Windows platform and it resolved the issue wrt build
> environment.
> 
> I am able to build complete code base (i.e. NSS, NSPR and c-SDK)but
> having issues as illustrated.
> 
> ISSUE 1: I went to "mozilla\security\nss" and built both NSS and NSPR
> using the command "$make nss_build_all". This inreturn built both NSS
> and NSPR and required libraries and utils got copied into "mozilla\dist
> \WIN954.0_DBG.OBJ\(lib Or bin)" folder.
> 
> COMMENT: It created the NSPR files WITHOUT "lib" prefix under dist
> folder.(e.g. nspr.dll, plc4.dll,plds4.dll, etc....).
> 
> Now i tried to add the certficate using certutil into certficate
> database file using command as followed:
>> certutil.exe -A -i "d:\SSL_CA_Cert\certnew.cer" -d "d:\1database1\" -n "WinXP" -t PC,PC,PC -a
> 
> RESULT: I got the error as followed:
>         certutil.exe: NSS_Initialize failed: Failure to load dynamic
> library.
>              error 126
> 
> I have the following libs in place: certutil.exe, nspr.dll,
> plc4.dll,plds4.dll,nssutil3.dll,sasl32.dll, smime3.dll, ssl3.dll,
> nss3.dll
> 
> AM NOT SURE THAT THAT ERROR IS, WHICH LIBRARY MISSING TO LOAD.......

I'm not sure - ask the NSS developers in mozilla.dev.tech.crypto

> 
> 
> 
> 
> ISSUE 2: After builing NSS and NSPR as mentioned in ISSUE #1, I tried
> to build c-SDK (configure "sh configure --with-nss" and build "make").
> While building it, it failed complaining that I dont have Linknig
> reference to libnspr, libplc4,libplds4 (As per my understanding its
> obvious error bcoz while building NSS, NSPR (make nss_build_all), it
> built references for nspr, plc4,plds4 NOT FOR libnspr,
> libplc4,libplds4).
> 
> Can you please let me know whats the solution for both of the ISSUEs.

I think if you solve ISSUE 1 that will also solve ISSUE 2

> 
> 
> Regards,
> Ashwani Saxena