missing required NSPR / NSS header

Panu Matilainen pmatilai at laiskiainen.org
Thu Oct 4 06:43:48 UTC 2012


On 10/03/2012 08:56 PM, YuGiOhJCJ Mailing-List wrote:
> On Mon, 01 Oct 2012 08:50:42 +0300
> Panu Matilainen <pmatilai at laiskiainen.org> wrote:
>
>> 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 -
>
> It doesn't resolve my problem:
> $ ./configure --prefix=/usr CPPFLAGS="-I/usr/include/nspr -I/usr/include/nss"
> checking dwarf.h usability... no
> checking dwarf.h presence... no
> checking for dwarf.h... no
> checking nspr.h usability... yes
> checking nspr.h presence... yes
> checking for nspr.h... yes
> checking nss.h usability... no
> checking nss.h presence... no
> checking for nss.h... no
> configure: error: missing required NSPR / NSS header
>
> But as you can see, nspr.h is now found.
> The problem is just for nss.h.
>
> Do you know why it doesn't find it?

Because nss headers are not in /usr/include/nss but someplace else? On 
Fedora, nss headers are in /usr/include/nss3 but I dont know what the 
upstream default is. Like said before, the exact paths obviously depend 
on where you installed them.

	- Panu -



More information about the Rpm-list mailing list