missing required NSPR / NSS header

Panu Matilainen pmatilai at laiskiainen.org
Mon Oct 1 05:50:42 UTC 2012


On 09/30/2012 10:13 PM, YuGiOhJCJ Mailing-List wrote:
> Hello,
>
> I try to build rpm-4.9.1.3 from the source code.
> I do this :
> $ ./configure --prefix=/usr
> [...]
> checking dwarf.h usability... no
> checking dwarf.h presence... no
> checking for dwarf.h... no
> checking nspr.h usability... no
> checking nspr.h presence... no
> checking for nspr.h... no
> configure: error: missing required NSPR / NSS header
>
> As you can see there are missing headers.
> So, no problem, I build from source code nss-3.13.6-with-nspr-4.9.2.
>
> I build nspr doing this:
> $ tar xvf nss-3.13.6-with-nspr-4.9.2.tar.gz
> $ cd nss-3.13.6/mozilla/nsprpub/
> $ ./configure --prefix=/usr
> $ make
> $ make install DESTDIR=/tmp/nspr-4.9.2
> $ cd -
> $ rm -rfv nss-3.13.6
>
> I build nss doing this:
> $ tar xvf nss-3.13.6-with-nspr-4.9.2.tar.gz
> $ cd nss-3.13.6/mozilla/security/nss
> $ make nss_build_all
> $ mkdir -p /tmp/nss-3.13.6/usr
> $ cp -rL ../../dist/Linux*/* /tmp/nss-3.13.6/usr
> $ cd -
> $ rm -rfv nss-3.13.6
>
> I retry to build rpm-4.9.1.3 from the source code.
> I do this :
> $ ./configure --prefix=/usr
> [...]
> checking dwarf.h usability... no
> checking dwarf.h presence... no
> checking for dwarf.h... no
> checking nspr.h usability... no
> checking nspr.h presence... no
> checking for nspr.h... no
> configure: error: missing required NSPR / NSS header
>
> I don't understand why it doesn't find my headers...
>
> Have you any idea about this?

This is covered in the INSTALL document in rpm tarball:

The NSS library for encryption, and NSPR library which NSS uses.
Both NSPR and NSS libraries and headers need to be installed during RPM
compilation. As NSPR and NSS typically install their headers outside
the regular include search path, you need to tell configure about this,
eg something like:
     ./configure <......> CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss"

The exact paths obviously depend on where you installed them.

	- Panu -


More information about the Rpm-list mailing list