0

I followed NSS build instructions and built NSS successfully. Then I follow JSS build instructions and building fails with error:

In file included from CryptoManager.c:6:0:
../../../../dist/public/nss/secitem.h:15:21: fatal error: plarena.h: No such file or directory
compilation terminated.

This result is on Ubuntu 16.04 LTS.

On WIndows I get:

enter image description here

All directories (dist, jss, nspr and nss) are on the same level. What am I doing wrong?

1 Answers1

0

Check my post here. Basically it's due to missing packages. If not working, this file is somewhere under nspr. Copy it and place it beside the .c file which needs it.

EDIT:

To sum it up:

1. Install build-essential and gcc with g++.

2. Try to install zlib1g-dev and libc6-dev, if they are absent.

3. And, install zlib1g-dev.

4. cd into the nss directory, and run the build like this:

gmake nss_build_all NSS_SSL_ENABLE_ZLIB=

if you are under a x64 environment, add USE_64=1, too.

It should work.

WesternGun
  • 11,303
  • 6
  • 88
  • 157