cURL / Mailing Lists / curl-library / Single Mail


Re: Build libcurl with NSS support

From: Kamil Dudka <>
Date: Fri, 10 Jun 2016 10:45:47 +0200

On Thursday, June 09, 2016 22:04:46 Cody Pritchard wrote:
> I opened up the config script file and am looking at the conditional block
> you mentioned.
> So what you are saying is that it should have worked and compiled fine but
> something is going wrong?
> Is there any possibility of changing the paths in the config file to help it
> find the proper files that make needs?

If you specify --with-nss=$NSS_DIR, the script looks for a pkg-config file
installed by nss at $NSS_DIR/lib/pkgconfig/nss.pc . Is there such a file?

Is the pkg-config executable available in $PATH?

Alternatively, you can put the nss-config executable installed by nss into
your $PATH and build with just --with-nss .

In any case, it would be useful to attach the config.log file generated by
the configure script.


> -----Original Message-----
> From: curl-library [] On Behalf Of
> Daniel Stenberg Sent: Thursday, June 09, 2016 2:47 PM
> To: libcurl development <>
> Subject: Re: Build libcurl with NSS support
> On Thu, 9 Jun 2016, Cody Pritchard (cpritchard) wrote:
> > CC libcurl_la-file.lo
> >
> > In file included from file.c:50:0:
> > urldata.h:123:18: fatal error: nspr.h: No such file or directory
> > #include <nspr.h>
> You run into trouble building with a custom NSS install path because you
> don't have a pkg-config for it there so curl can't know for sure how to use
> it. It makes some guesses though:
> Your stackoverflow outputs showed that configure said:
> "WARNING: Using hard-wired libraries and compilation flags for NSS."
> Within that same conditional block in the scripe where that message is
> output, it adds -I$OPT_NSS/include to the CPPFLAGS. Doesn't it?
> That should be enough to make the compiler find nspr.h too. But something
> apparently made it not do that...

List admin:
Received on 2016-06-10