Score:0

Building cURL with NSS on Ubuntu server fails

in flag

On a fresh ubuntu 21.04 x64 or 20.04 lts x64 I do:

apt install build-essential
wget https://curl.se/download/curl-7.77.0.tar.gz
tar -xvzf curl-7.77.0.tar.gz 
cd curl-7.77.0/
apt install libnss3-dev
./configure --with-nss
make

That's what I get:

Making all in lib
make[1]: Entering directory '/root/curl-7.77.0/lib'
make  all-am
make[2]: Entering directory '/root/curl-7.77.0/lib'
  CC       libcurl_la-altsvc.lo
  CC       libcurl_la-amigaos.lo
  CC       libcurl_la-asyn-ares.lo
  CC       libcurl_la-asyn-thread.lo
  CC       libcurl_la-base64.lo
  CC       libcurl_la-bufref.lo
  CC       libcurl_la-c-hyper.lo
  CC       libcurl_la-conncache.lo
  CC       libcurl_la-connect.lo
  CC       libcurl_la-content_encoding.lo
  CC       libcurl_la-cookie.lo
  CC       libcurl_la-curl_addrinfo.lo
  CC       libcurl_la-curl_ctype.lo
  CC       libcurl_la-curl_des.lo
  CC       libcurl_la-curl_endian.lo
  CC       libcurl_la-curl_fnmatch.lo
  CC       libcurl_la-curl_get_line.lo
  CC       libcurl_la-curl_gethostname.lo
  CC       libcurl_la-curl_gssapi.lo
  CC       libcurl_la-curl_memrchr.lo
  CC       libcurl_la-curl_multibyte.lo
  CC       libcurl_la-curl_ntlm_core.lo
In file included from /usr/include/nss/nss.h:34,
                 from curl_ntlm_core.c:82:
/usr/include/nss/seccomon.h:17:10: fatal error: prtypes.h: No such file or directory
   17 | #include "prtypes.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:2127: libcurl_la-curl_ntlm_core.lo] Error 1
make[2]: Leaving directory '/root/curl-7.77.0/lib'
make[1]: *** [Makefile:1362: all] Error 2
make[1]: Leaving directory '/root/curl-7.77.0/lib'
make: *** [Makefile:1267: all-recursive] Error 1

Any idea what I do wrong or what can I try?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.