On 2009-10-20 21:11 PDT, ashwani saxena wrote: > The objective is to build latest NSS/ NSPR/c-SDK so that "certutil" > command can be used to create cert8.db file to add certificate into > that. I built the following modules using MozillaBuild 1.4 on Windows > platform. > > 1.Drectory - c-sdk - mozldap-6.0.6 > Link: > ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v6.0.6/src/mozldap-6.0.6.tar.gz > > 2. NSS-3.12 With NSPR-4.7 > Link: > ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_RTM/src/nss-3.12-with-nspr-4.7.tar.gz > > I was 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....).
This is all as expected. Not an issue. > 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, I presume that's nspr4.dll > nss3.dll, plc4.dll, plds4.dll, nssutil3.dll, smime3.dll, ssl3.dll, You're missing quite a few there. freebl3.dll nssckbi.dll nssdbm3.dll softokn3.dll sqlite3.dll > DOUBTS: 1. Do i need to bulid NSPR again from "mozilla\nsprpub". no. > 2. If i build it then it created all the files with > "lib" prefix. But it fails while using "certutil" command to add > certificate into database file as certutil looking for the files > without "lib" prefix. There are several different ways to produce builds of NSS and NSPR. Some produce DLLs with a "lib" prefix. Others don't. You don't want to mix them. I suggest you stay with the builds that do not use the libprefix. > AM NOT SURE THAT THAT ERROR IS, WHICH LIBRARY MISSING TO LOAD....... See list above. > 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 you've got a mixture of two different ways to build NSS and NSPR now. I suggest you clobber all the files you've built, and do a clean build from the top. Before you do, define the environment variable OS_TARGET=WIN95 I think that will solve your problems. But if not, and you cannot find any way to get the ldap c SDK to use the library names without the "lib" prefix, then clobber all the files again, and set the environment variable OS_TARGET=WINNT and try again. > > Regards, > Ashwani Saxena -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto