curl-library
Build libcurl with NSS support
Date: Thu, 9 Jun 2016 18:16:35 +0000
Hello,
I am working on building libcurl libraries with NSS for SSL/TLS support.
I have built libcurl with OpenSSL and WinSSL no problem, but NSS is giving me trouble.
This is what I get when I run the configure script:
perl configure --without-zlib --without-ssl --with-nss=c:\BUILD\nss-3.24\dist\WIN954.0_OPT.OBJ
Current curl Configuration - (6/3/16)
curl version: 7.49.0
Host setup: i686-pc-mingw32
Install prefix: /usr/local
Compiler: gcc
SSL support: enabled (NSS)
SSH support: no (--with-libssh2)
zlib support: no (--with-zlib)
GSS-API support: no (--with-gssapi)
TLS-SRP support: no (--enable-tls-srp)
resolver: default (--enable-ares / --enable-threaded-resolver)
IPv6 support: enabled
Unix sockets support: no (--enable-unix-sockets)
IDN support: no (--with-{libidn,winidn})
Build libcurl: Shared=yes, Static=yes
Built-in manual: no (--enable-manual)
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
SSPI support: no (--enable-sspi)
ca cert bundle: no
ca cert path: no
ca fallback: no
LDAP support: enabled (winldap)
LDAPS support: enabled
RTSP support: enabled
RTMP support: no (--with-librtmp)
metalink support: no (--with-libmetalink)
PSL support: no (libpsl not found)
HTTP2 support: disabled (--with-nghttp2)
Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
But, when I run make I get errors about missing .h files such as:
C:\BUILD\curl-7.49.0>make
Making all in lib
make[1]: Entering directory '/c/BUILD/curl-7.49.0/lib'
make all-am
make[2]: Entering directory '/c/BUILD/curl-7.49.0/lib'
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>
compilation terminated
For full details on the steps I have taken please see my Stackoverflow post here:
http://stackoverflow.com/questions/37624736/compile-curl-with-nss-supported-nspr-h-not-found
So, my question is, how do I configure cURL to follow the correct paths to to build the dll's with NSS support?
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-06-09