This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/17956] Build fails on missing definitions from header file nss/nss.h when Mozilla NSS is used for cryptography
- From: "g.trentalancia at libero dot it" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 31 May 2016 16:25:41 +0000
- Subject: [Bug build/17956] Build fails on missing definitions from header file nss/nss.h when Mozilla NSS is used for cryptography
- Auto-submitted: auto-generated
- References: <bug-17956-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17956
--- Comment #17 from Guido Trentalancia <g.trentalancia at libero dot it> ---
(In reply to Carlos O'Donell from comment #16)
> (In reply to Guido Trentalancia from comment #15)
> > The Mozilla NSS library depends on another library called Mozilla NSPR...
> >
> > The following other two patches recently posted on the mailing list are not
> > strictly required to solve this bug, but are strongly recommended to
> > sanitise the build and test system and make them more robust:
> >
> > https://sourceware.org/ml/libc-alpha/2016-05/msg00738.html (build system)
> >
> > https://sourceware.org/ml/libc-alpha/2016-05/msg00729.html (test system)
>
> These patches are not correct.
>
> You need to figure out why configure is failing to find your NSS install.
configure fails because it cannot compile the test program:
typedef int PRBool;
#include <hasht.h>
#include <nsslowhash.h>
void f (void) { NSSLOW_Init (); }
int
main ()
{
;
return 0;
}
and it cannot compile the test program, because the test program uses
/usr/include/nss3/hasht.h which in turn includes prtypes.h.
Unfortunately it cannot find prtypes.h (from NSPR) because configure only
passes -I/usr/include/nss3 to the preprocessor as it is gathered from
"nss-config --includedir".
That's why configure should also pass the full NSPR headers path to the
preprocessor, which can be gathered from "nspr-config --includedir".
One of the two patches does that ! And I believe it is correct what the patch
does while it is incorrect what configure actually does, as evident from above.
> The use of `nss-config --includedir` should work correctly, if it doesn't
> then you have a problem with your NSS install.
There is no problem with my NSS install. I am using NSS for other projects such
as Mozilla Firefox and it works fine. Mozilla NSS depends on Mozilla NSPR.
--
You are receiving this mail because:
You are on the CC list for the bug.