I run into the problem below when trying to compile, but I don't understand how to fix it:

tar zxfv curl-7.85.0.tar.gz
cd curl-7.85.0/
./configure --enable-ares --with-zlib --with-nghttp2 --with-openssl
...
(lots of config output)
...
configure: Configured to build curl/libcurl:

  Host setup:       x86_64-pc-linux-gnu
  Install prefix:   /usr/local
  Compiler:         gcc
   CFLAGS:          -Werror-implicit-function-declaration -O2 -Wno-system-headers
   CPPFLAGS:        -DOPENSSL_SUPPRESS_DEPRECATED
   LDFLAGS:
   LIBS:            -lcares -lngtcp2 -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz

  curl version:     7.85.0
  SSL:              enabled (OpenSSL v3+)
  SSH:              no      (--with-{libssh,libssh2})
  zlib:             enabled
  brotli:           no      (--with-brotli)
  zstd:             no      (--with-zstd)
  GSS-API:          no      (--with-gssapi)
  GSASL:            no      (libgsasl not found)
  TLS-SRP:          enabled
  resolver:         c-ares
  IPv6:             enabled
  Unix sockets:     enabled
  IDN:              no      (--with-{libidn2,winidn})
  Build libcurl:    Shared=yes, Static=yes
  Built-in manual:  enabled
  --libcurl option: enabled (--disable-libcurl-option)
  Verbose errors:   enabled (--disable-verbose)
  Code coverage:    disabled
  SSPI:             no      (--enable-sspi)
  ca cert bundle:   /etc/ssl/certs/ca-certificates.crt
  ca cert path:     no
  ca fallback:      no
  LDAP:             no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)
  LDAPS:            no      (--enable-ldaps)
  RTSP:             enabled
  RTMP:             no      (--with-librtmp)
  PSL:              no      (libpsl not found)
  Alt-svc:          enabled (--disable-alt-svc)
  Headers API:      enabled (--disable-headers-api)
  HSTS:             enabled (--disable-hsts)
  HTTP1:            enabled (internal)
  HTTP2:            enabled (nghttp2)
  HTTP3:            no      (--with-ngtcp2, --with-quiche --with-msh3)
  ECH:              no      (--enable-ech)
  Protocols:        DICT FILE FTP FTPS GOPHER GOPHERS HTTP HTTPS IMAP IMAPS MQTT POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP   Features:         AsynchDNS HSTS HTTP2 HTTP3 HTTPS-proxy IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets alt-svc libz threadsafe

make V=1

Making all in lib
make[1]: Entering directory '/home/daniel/sources/curl-7.85.0/lib'
make  all-am
make[2]: Entering directory '/home/daniel/sources/curl-7.85.0/lib'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -DOPENSSL_SUPPRESS_DEPRECATED -fvisibility=hidden -Werror-implicit-function-declaration -O2 -Wno-system-headers  -MT libcurl_la-altsvc.lo -MD -MP -MF .deps/libcurl_la-altsvc.Tpo -c -o libcurl_la-altsvc.lo `test -f 'altsvc.c' || echo './'`altsvc.c libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -DBUILDING_LIBCURL -DCURL_HIDDEN_SYMBOLS -DOPENSSL_SUPPRESS_DEPRECATED -fvisibility=hidden -Werror-implicit-function-declaration -O2 -Wno-system-headers -MT libcurl_la-altsvc.lo -MD -MP -MF .deps/libcurl_la-altsvc.Tpo -c altsvc.c  -fPIC -DPIC -o .libs/libcurl_la-altsvc.o
In file included from quic.h:31,
                 from urldata.h:144,
                 from altsvc.c:32:
vquic/ngtcp2.h:36:10: fatal error: nghttp3/nghttp3.h: No such file or directory
   36 | #include <nghttp3/nghttp3.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1999: libcurl_la-altsvc.lo] Error 1
make[2]: Leaving directory '/home/daniel/sources/curl-7.85.0/lib'
make[1]: *** [Makefile:1365: all] Error 2
make[1]: Leaving directory '/home/daniel/sources/curl-7.85.0/lib'
make: *** [Makefile:1240: all-recursive] Error 1
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to