I am a system administrator, not a software developer.  I am trying to build 
NSS 3.25 for Windows; however, I am experiencing a Windows pop-up error during 
the build process and I don't know what to do.  Here is the error message:

---------------------------
shlibsign.exe - Entry Point Not Found
---------------------------
The procedure entry point PR_GetEnvSecure could not be located in the dynamic 
link library 
c:\build\mozilla-source\nss\cmd\shlibsign\WIN954.0_OPT.OBJ\shlibsign.exe. 
---------------------------
OK   
---------------------------

When I press the OK button, the build process terminates and I'm returned to 
the build environment command prompt.  I see this output near the end:

----------------

make[3]: Leaving directory `/c/build/mozilla-source/nss/cmd/shlibsign/mangle'
cd WIN954.0_OPT.OBJ ; sh "/c/build/mozilla-source/nss/cmd/shlibsign/."/sign.sh 
"/c/build/mozilla-source/nss/cmd/shlibsign/../../../dist/WIN954.0_OPT.OBJ" \
        "/c/build/mozilla-source/nss/cmd/shlibsign/WIN954.0_OPT.OBJ" WIN95 \
        
"/c/build/mozilla-source/nss/cmd/shlibsign/../../../dist/WIN954.0_OPT.OBJ/lib" 
"/c/build/mozilla-source/nss/cmd/shlibsign/../../../dist/WIN954.0_OPT.OBJ/lib/softokn3.dll"
/c/build/mozilla-source/nss/cmd/shlibsign/WIN954.0_OPT.OBJ/shlibsign -v -i 
/c/build/mozilla-source/nss/cmd/shlibsign/../../../dist/WIN954.0_OPT.OBJ/lib/softokn3.dll
make[2]: *** [../../../dist/WIN954.0_OPT.OBJ/lib/softokn3.chk] Error 57
make[2]: Leaving directory `/c/build/mozilla-source/nss/cmd/shlibsign'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/c/build/mozilla-source/nss/cmd'
make: *** [libs] Error 2

----------------

This error occurs a few minutes into the build process.  The following files 
are in my C:\build\mozilla-source\dist\WIN954.0_OPT.OBJ\bin\ directory at the 
time this error message appears:

* bltest.exe
* example.exe
* fipstest.exe
* mangle.exe
* minigzip.exe
* nspr4.dll
* plc4.dll
* plds4.dll
* shlibsign.exe

I also tried to build NSS 3.23 and 3.24 but had the exact same result.

I am using Mozilla's guidance for building NSS on a Windows computer:

* https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Building
* 
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites

I'm using my work computer for this.  It is running Windows 10 1511 Enterprise 
x64.  I have Visual Studio Community 2015 installed along with its Common Tools 
for Visual C++ 2015 add on.  I am using the latest version of MozillaBuild 
(v2.20).  I start the build environment on my computer by launching an elevated 
command prompt, going to C:\build\mozilla-build\ and launching 
"start-shell-msvc2015.bat".  I'm using the BUILD_OPT=1 and OS_TARGET=WIN95 
options before running "make nss_build_all".

I also tried setting up an Ubuntu 16.04 virtual machine and building NSS for 
Windows on there, but it only ran for a few seconds before ending with the 
following output:

----------------

In file included from /usr/include/stdio.h:0,
     from ../../config/now.c:6:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or 
directory
compilation terminated
../../config/rules.mk:446: recipe for target 'now.o' failed
make[2]: *** [now.o] Error 1
make[2]: Leaving directory 
'/home/<username>/Documents/nss-3.25/nspr/WIN954.0__OPT.OBJ/config'
../config/rules.mk:163: recipe for target 'export' failed
make[1]: *** [export] Error 2
make[1]: Leaving directory 
'/home/<username>/Documents/nss-3.25/nspr/WIN954.0__OPT.OBJ'
Makefile:128: recipe for target 'build_nspr' failed
make: *** [build_nspr] Error 2 

----------------

I don't really know how to stand up a build environment, so this doesn't really 
surprise me.

Can anyone help me understand how to solve this problem building NSS for 
Windows?  If this is not the right place to post this, can someone point me in 
the right direction?

I'm trying to obtain a new copy of the NSS certutil tool so I can use it to 
import CA certificates into the Firefox certificate store on Windows computers.

Thanks!
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to