curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Problem compiling curl-7.85.0

From: Daniel Hallberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 4 Oct 2022 13:17:36 +0200

Den 2022-10-04 kl. 12:05, skrev Daniel Stenberg:
> On Tue, 4 Oct 2022, Daniel Hallberg via curl-library wrote:
>
>>   Features:         AsynchDNS HSTS HTTP2 HTTP3 HTTPS-proxy IPv6
>> Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets alt-svc libz threadsafe
>
> HTTP3 is set if configure enabled ngtcp2, quiche or msh3:
>
> https://github.com/curl/curl/blob/90ddfa465bf189d7010fa5f5a2792b2c31e0af51/configure.ac#L4368-L4371
>
>
> I cannot explain how you got that added without specifying one of
> those options.
>
>> vquic/ngtcp2.h:36:10: fatal error: nghttp3/nghttp3.h: No such file or
>> directory
>>    36 | #include <nghttp3/nghttp3.h>
>>       |          ^~~~~~~~~~~~~~~~~~~
>
> This means configure found and enabled ngtcp2, but when building it
> can't find the path to nghttp3 which is required in such a build.
>
> Did you perhaps try to do http3 builds before and did tot clean up
> properly befor you did another build?
>
Yes, I tried adding support for ngtcp2 earlier but when it failed I
deleted the whole curl dir and unpacked it "fresh" (as described in my
initial mail).
Does ./configure affect or store something outside the curl dir I need
to remove manually?

Does the lines below from the config.log give any clues?

configure:30481: checking for libngtcp2 options with pkg-config
configure:30495: result: found
configure:30509: -l is -lngtcp2
configure:30518: -I is
configure:30528: -L is
configure:30538: checking for ngtcp2_conn_client_new_versioned in -lngtcp2
configure:30561: gcc -o conftest -Werror-implicit-function-declaration
-O2 -Wno-system-headers -DOPENSSL_SUPPRESS_DEPRECATED        conftest.c
-lngtcp2  -lngtcp2 -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz  >&5
configure:30561: $? = 0
configure:30571: result: yes
configure:30578: checking for ngtcp2/ngtcp2.h
configure:30578: gcc -c -Werror-implicit-function-declaration -O2
-Wno-system-headers    -DOPENSSL_SUPPRESS_DEPRECATED   conftest.c >&5
configure:30578: $? = 0
configure:30578: result: yes
configure:30590: Added  to CURL_LIBRARY_PATH
configure:30674: checking for pkg-config
configure:30710: result: /usr/bin/pkg-config
configure:30735: checking for libngtcp2_crypto_openssl options with
pkg-config
configure:30746: result: no
configure:31463: checking for pkg-config
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-10-04