Re: missing required NSPR / NSS header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 04 Oct 2012 09:43:48 +0300
Panu Matilainen <pmatilai@xxxxxxxxxxxxxxx> wrote:

> On 10/03/2012 08:56 PM, YuGiOhJCJ Mailing-List wrote:
> > On Mon, 01 Oct 2012 08:50:42 +0300
> > Panu Matilainen <pmatilai@xxxxxxxxxxxxxxx> 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 -
> 

The nss headers are at the good place:
$ find /usr/include/ -name "nss.h"
/usr/include/nss/nss.h
/usr/include/icecat-13.0.1/nss.h
/usr/include/nss.h

I installed myself this nss version (nss-3.13.6) from the source code.
So, the path is correct.

In fact, I found why it doesn't find them.
If I read the config.log file I got this:
conftest.c:72:17: fatal error: /usr/include/nss/nss.h: Permission denied
conftest.c:39:17: fatal error: /usr/include/nss/nss.h: Permission denied

So it's just a problem of rights on the files... I will correct this.

Thank you for the help ;)
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux