Building (running) NSS cmd tools?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Building (running) NSS cmd tools?

beaufour@gmail.com
I've followed the build instructions on checkout and building NSS
(after giving up on getting it to build the cmd utils inside my main
mozilla tree). It also compiles fine, but I cannot seem to actually run
the cmd utils.

I've included the MS redist files, and try to run rsaperf from the lib
directory:
user@beaufour-ibm /cygdrive/c/nss/mozilla/dist/WINNT5.1_DBG.OBJ/lib
$ ../bin/rsaperf.exe

Which only results in:
"The application failed to initialize properly (0xc0000022). Click on
OK to terminate the application."

My env. is (cygwin) Windows XP, and I'm usually a Linux guy, so it
might be quite simple :)

_______________________________________________
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: Building (running) NSS cmd tools?

Julien Pierre-2
Hi,

Nothing obvious comes to mind about this crash. Run rsaperf.exe within a
debugger and see where it crashes .

[hidden email] wrote:

> I've followed the build instructions on checkout and building NSS
> (after giving up on getting it to build the cmd utils inside my main
> mozilla tree). It also compiles fine, but I cannot seem to actually run
> the cmd utils.
>
> I've included the MS redist files, and try to run rsaperf from the lib
> directory:
> user@beaufour-ibm /cygdrive/c/nss/mozilla/dist/WINNT5.1_DBG.OBJ/lib
> $ ../bin/rsaperf.exe
>
> Which only results in:
> "The application failed to initialize properly (0xc0000022). Click on
> OK to terminate the application."
>
> My env. is (cygwin) Windows XP, and I'm usually a Linux guy, so it
> might be quite simple :)
>
_______________________________________________
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: Building (running) NSS cmd tools?

Wan-Teh Chang
In reply to this post by beaufour@gmail.com
[hidden email] wrote:

> I've followed the build instructions on checkout and building NSS
> (after giving up on getting it to build the cmd utils inside my main
> mozilla tree). It also compiles fine, but I cannot seem to actually run
> the cmd utils.
>
> I've included the MS redist files, and try to run rsaperf from the lib
> directory:
> user@beaufour-ibm /cygdrive/c/nss/mozilla/dist/WINNT5.1_DBG.OBJ/lib
> $ ../bin/rsaperf.exe
>
> Which only results in:
> "The application failed to initialize properly (0xc0000022). Click on
> OK to terminate the application."
>
> My env. is (cygwin) Windows XP, and I'm usually a Linux guy, so it
> might be quite simple :)

I don't know what's wrong.  When I tried to duplicate your bug,
I got the following expected error message:

sh-3.00$ pwd
/cygdrive/c/nss-3.11-branch-basic-ecc/mozilla/dist/WIN954.0_OPT.OBJ/lib
sh-3.00$ ../bin/rsaperf.exe
Usage: rsaperf.exe [-s | -e] [-i iterations | -p period] [-t threads]
[-n none [-k keylength] [ [-g] -x exponent] |
  -n token:nickname [-d certdir] [-w password] |
  -h token [-d certdir] [-w password] [-g] [-k keylength] [-x exponent] ]
-d certdir           Cert database directory (default is ~/.netscape)
-i iterations        How many operations to perform
-p period            How many seconds to run
-s                   Perform signing (private key) operations
-e                   Perform encryption (public key) operations
-n nickname          Nickname of certificate or key, prefixed by
optional token
name
-h token             PKCS#11 token to perform operation with.
-k keylength         key size in bits, from 512 to 65536
-w password          token password
-g                   temporary key generation. Not for token keys.
-x                   set public exponent for keygen
-t threads           Number of execution threads (default 1)
sh-3.00$

Wan-Teh

_______________________________________________
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: Building (running) NSS cmd tools?

beaufour@gmail.com
In reply to this post by beaufour@gmail.com
Wan-Teh Chang wrote:

> [hidden email] wrote:
> > I've followed the build instructions on checkout and building NSS
> > (after giving up on getting it to build the cmd utils inside my main
> > mozilla tree). It also compiles fine, but I cannot seem to actually run
> > the cmd utils.
> >
> > I've included the MS redist files, and try to run rsaperf from the lib
> > directory:
> > user@beaufour-ibm /cygdrive/c/nss/mozilla/dist/WINNT5.1_DBG.OBJ/lib
> > $ ../bin/rsaperf.exe
> >
> > Which only results in:
> > "The application failed to initialize properly (0xc0000022). Click on
> > OK to terminate the application."
> >
> > My env. is (cygwin) Windows XP, and I'm usually a Linux guy, so it
> > might be quite simple :)
>
> I don't know what's wrong.  When I tried to duplicate your bug,
> I got the following expected error message:
>
> [SNIP}
>

Thanks for testing! I found out why it failed. I am using Visual Studio
2005, and it apparently needs the .manifest files too. Adding that to
the exported items fixed the problem.

<sarcasm>great thanks to MS for the easy to understand error
messages</sarcasm>

_______________________________________________
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: Building (running) NSS cmd tools?

beaufour@gmail.com

[hidden email] wrote:

> Wan-Teh Chang wrote:
> > [hidden email] wrote:
> > > I've followed the build instructions on checkout and building NSS
> > > (after giving up on getting it to build the cmd utils inside my main
> > > mozilla tree). It also compiles fine, but I cannot seem to actually run
> > > the cmd utils.
> > >
> > > I've included the MS redist files, and try to run rsaperf from the lib
> > > directory:
> > > user@beaufour-ibm /cygdrive/c/nss/mozilla/dist/WINNT5.1_DBG.OBJ/lib
> > > $ ../bin/rsaperf.exe
> > >
> > > Which only results in:
> > > "The application failed to initialize properly (0xc0000022). Click on
> > > OK to terminate the application."
> > >
> > > My env. is (cygwin) Windows XP, and I'm usually a Linux guy, so it
> > > might be quite simple :)
> >
> > I don't know what's wrong.  When I tried to duplicate your bug,
> > I got the following expected error message:
> >
> > [SNIP}
> >
>
> Thanks for testing! I found out why it failed. I am using Visual Studio
> 2005, and it apparently needs the .manifest files too. Adding that to
> the exported items fixed the problem.
>
> <sarcasm>great thanks to MS for the easy to understand error
> messages</sarcasm>

Filed this btw:
https://bugzilla.mozilla.org/show_bug.cgi?id=353475

_______________________________________________
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|

Re: Building (running) NSS cmd tools?

Wan-Teh Chang
[hidden email] wrote:

>
>> Thanks for testing! I found out why it failed. I am using Visual Studio
>> 2005, and it apparently needs the .manifest files too. Adding that to
>> the exported items fixed the problem.
>>
>> <sarcasm>great thanks to MS for the easy to understand error
>> messages</sarcasm>
>
> Filed this btw:
> https://bugzilla.mozilla.org/show_bug.cgi?id=353475

I'm glad that you found out what's wrong, and thanks
for filing a bug report.

This is actually a known bug for a long time.  The
Mozilla team checked in a workaround for this in their
build system.

Since the NSS build process needs to run the 'shlibsign'
tool, your NSS build should have failed in that step.

Wan-Teh


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