A. Gregory Wright wrote:
> I am trying to build secure software on Windows in C++ and want to use
> the NSS libraries.
> 
> We use MS Visual Studio 2005 with VC 8.0. I am trying to build nss-3.11
> libraries so I can call them from C++ programs.

VC 8?  I wonder if that's the problem.
I'm not sure any of the NSS developers are using VC8.
I use VC5 and VC6.  I think others are using VC7.
Could be some sort of incompatibility between VC8 and earlier VC compilers.
Maybe VC8 doesn't recognize the old compiler flags, or requires new ones.

> I have so far been unsuccessful using cygwin with either the VC compiler 
> (cl.exe) or the GNU gcc. I have been trying to follow the build instructions
> for 3.9; but they are obviously out of date. 

Yeah, but pretty close.  The CVS tags have changed, but the set of tools
has not, AFAIK.  You need GNU Make version 3.79.1 or later.  Older versions
won't work adequately.

> Do I need nstools or moztools for gmake? 

No.  But I think the gmake in moztools will work.
That's the one I use, IIRC.

> what directories need to be in my path? 

The ones to run gmake, the compilers, etc.

> what environment variables should be set?

Depends on your compiler, and your target platform.
MSVC needs INCLUDE and LIB
gmake requires SHELL, unless your shell is /bin/sh.
Building NSPR from sources requires CONFIG_SHELL (same value as SHELL).
cygwin requires some, IIRC (I don't use cygwin).

> when I try gmake nss_build_all, it gets through the export target but
> fails on the first compile.

What does "fails" mean, exactly?  What errors do you see, exactly?

> Does anyone know of a complete, accurate document describing build
> process for nss-3.11 on Windows?

You can help create one by documenting the specific problems you encounter.
I gather that most folks have no problems building NSS.  For the rest,
we can help you best (and improve the docs the best) if we know exactly
what problems you encounter.  Otherwise, it's difficult for us to
determine what is not obvious to those who can't build it.

-- 
Nelson B
_______________________________________________
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to