cURL / Mailing Lists / curl-library / Single Mail


Re: Build libcurl with NSS support

From: Daniel Stenberg <>
Date: Thu, 9 Jun 2016 23:46:39 +0200 (CEST)

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-09