Building JSS on Windows (some progress)

"Stutzman, David K CTR USARMY RDECOM CERDEC (US)" <[email protected]>
Newsgroups gmane.comp.mozilla.crypto
Message-ID <DAA3D1158E49784DA0B1B04964F8FBFB7DFC1242@UCOLHPUI.easf.csd.disa.mil>
I posted previously and got a little further...



My build platform:

Windows 7 SP1

Visual Studio 2015u3

Mozilla-Build 2.2.0 (last version with start-msvc scripts)



My ENV-VARS:

OS_TARGET=WIN95

BUILD_OPT=1

USE_64=1

JAVA_HOME=C:/jdk1.8.0_152

What won't work:

VS2013 won't compile the newest NSS, don't know in what ver of NSS that happened.

VS2017 doesn't seem to work with Mozilla-build >3.0 to set up the environment (no compiler found) and won't work with Mozilla-build 2.2.0 out of the box. I tried to naively create a script that changed version to 2017 but that didn't work so quickly abandoned that idea.



I am able to successfully build the latest NSS/NSPR combo with above.



The build for JSS would originally blow up until I modified the start-shell script of Mozilla-build to manually add the full path to the output folder inside dist folder to the INCLUDE path.  (This is line 140 in start-shell.bat for Mozilla-build 2.2.0). The JSS build script is looking for files where it's building JSS in

dist\WIN954.0_64_OPT.OBJ

and my NSS/NSPR stuff was output into

dist\WIN954.0_x86_64_64_OPT.OBJ



BTW, I can't build the tip (another message to follow, this one is already too long) and I get an error about no make target for a file in JSS_4_4_20170501 so I backed up a little more to JSS_4_4_20170313 tag.



This got me a lot farther in the process but then I got a missing smime3.lib where it's again looking in the WIN954.0_64_OPT.OBJ not WIN954.0_x86_64_64_OPT.OBJ folder.



At this point, I copied all .lib files from the NSS/NSPR output folder to the location JSS is expecting.



And then I get this:

jss.def : error LNK2001: unresolved external symbol Java_org_mozilla_jss_util_Password_readPasswordFromConsole
WIN954.0_64_OPT.OBJ/jss4.lib : fatal error LNK1120: 1 unresolved externals
make[1]: *** [WIN954.0_64_OPT.OBJ/jss4.dll] Error 96
make[1]: Leaving directory `/c/sandbox/jss/lib'
make: *** [libs] Error 2



I feel like I'm alllllllmost there, but I'm really not a C coder and don't have any experience with the MSVC toolchain so if someone could point me in the right direction I'd appreciate the help greatly.



I also don't know if any of these problems are because the instructions say to use gmake which the Mozilla-build MSYS environment doesn't have.



Dave
-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.