system/curl: not actually built with requested HTTP2 support
See abuild#7.
builder on localhost ~/packages/system/curl/src/curl-7.83.1 $ abuild deps
>>> curl: Installing for build: ca-certificates perl nghttp2 zlib-dev openssl-dev libssh2-dev
(1/10) Installing c-ares (1.18.1-r0)
(2/10) Installing libev (4.33-r0)
(3/10) Installing nghttp2-libs (1.47.0-r0)
(4/10) Installing icu-libs (71.1-r1)
(5/10) Installing libxml2 (2.9.13-r0)
(6/10) Installing nghttp2 (1.47.0-r0)
(7/10) Installing zlib-dev (1.2.12-r0)
(8/10) Installing openssl-dev (1.1.1q-r0)
(9/10) Installing libssh2-dev (1.10.0-r0)
(10/10) Installing .makedepends-curl (20220930.201851)
OK: 494 MiB in 109 packages
...
builder on localhost ~/packages/system/curl/src/curl-7.83.1 $ ./configure --with-ssl --with-nghttp2
...
configure: Configured to build curl/libcurl:
Host setup: x86_64-pc-linux-musl
Install prefix: /usr/local
Compiler: gcc
CFLAGS: -Werror-implicit-function-declaration -O2 -Wno-system-headers
CPPFLAGS:
LDFLAGS: -L/lib
LIBS: -lssl -lcrypto -lssl -lcrypto -lz
curl version: 7.83.1
SSL: enabled (OpenSSL)
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: POSIX threaded
IPv6: enabled
Unix sockets: enabled
IDN: no (--with-{libidn2,winidn})
Build libcurl: Shared=yes, Static=yes
Built-in manual: no (--enable-manual)
--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: no (--enable-headers-api)
HSTS: enabled (--disable-hsts)
HTTP1: enabled (internal)
HTTP2: no (--with-nghttp2, --with-hyper)
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 HTTPS-proxy IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets alt-svc libz
and config.log
:
...
configure:29955: result: no
configure:29978: WARNING: Cannot find libraries for IDN support: IDN disabled
configure:30078: checking for pkg-config
configure:30114: result: /usr/bin/pkg-config
configure:30139: checking for libnghttp2 options with pkg-config
configure:30150: result: no
configure:30205: checking for nghttp2_session_set_local_window_size in -lnghttp2
configure:30228: gcc -o conftest -Werror-implicit-function-declaration -O2 -Wno-system-headers -L/lib conftest.c -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz >&5
/usr/lib/gcc/x86_64-foxkit-linux-musl/8.5.0/../../../../x86_64-foxkit-linux-musl/bin/ld: cannot find -lnghttp2
collect2: error: ld returned 1 exit status
configure:30228: $? = 1
...
and a quick sanity check:
$ ls /usr/lib/ | grep libnghttp2
libnghttp2.so.14
libnghttp2.so.14.21.2
It appears libnghttp2.so
does not exist.