Skip to content

cmake: USE_QUICHE uses openssl_check_symbol_exists#12160

Closed
cbodley wants to merge 1 commit into
curl:masterfrom
cbodley:wip-cmake-quiche-openssl-detect
Closed

cmake: USE_QUICHE uses openssl_check_symbol_exists#12160
cbodley wants to merge 1 commit into
curl:masterfrom
cbodley:wip-cmake-quiche-openssl-detect

Conversation

@cbodley

@cbodley cbodley commented Oct 19, 2023

Copy link
Copy Markdown
Contributor

the CheckQuicSupportInOpenSSL function was removed from USE_NGTCP2 in dee310d, but the USE_QUICHE section wasn't updated accordingly. this results in cmake errors when USE_QUICHE is enabled:

-- Found QUICHE: /path/to/quiche/target/release/libquiche.a
CMake Error at CMakeLists.txt:712 (CheckQuicSupportInOpenSSL):
  Unknown CMake command "CheckQuicSupportInOpenSSL".

the CheckQuicSupportInOpenSSL function was removed from USE_NGTCP2
in dfe2e6d, but the USE_QUICHE section
wasn't updated accordingly. this results in cmake errors when USE_QUICHE
is enabled:

-- Found QUICHE: /path/to/quiche/target/release/libquiche.a
CMake Error at CMakeLists.txt:712 (CheckQuicSupportInOpenSSL):
  Unknown CMake command "CheckQuicSupportInOpenSSL".

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley

cbodley commented Oct 19, 2023

Copy link
Copy Markdown
Contributor Author

cc @vszakats as this relates to #11555

@vszakats

Copy link
Copy Markdown
Member

@cbodley Thanks for reporting this. How could I miss that use!

Can you test if #12162 fixes the problem?

@vszakats vszakats added the quiche Cloudflare's QUIC and HTTP/3 library label Oct 19, 2023
@vszakats

vszakats commented Oct 19, 2023

Copy link
Copy Markdown
Member

Ops, did not notice this is a PR, not a report, sorry.

My patch is a little different, by avoiding redundancy in the quic-checking logic and also allowing to pair quiche with wolfSSL. Also points to the mainline commit I made this mistake in dee310d.

vszakats added a commit to vszakats/curl that referenced this pull request Oct 19, 2023
An orphan call to `CheckQuicSupportInOpenSSL()` remained after
a recent update when checking QUIC for quiche. Restore this function
and fixup the callers to use it.

Regression from dee310d #curl#11555

Reported-by: Casey Bodley <cbodley@redhat.com>
Fixes curl#12160
Closes curl#12162
@cbodley

cbodley commented Oct 19, 2023

Copy link
Copy Markdown
Contributor Author

thanks, closing in favor of #12162

@cbodley cbodley closed this Oct 19, 2023
vszakats added a commit that referenced this pull request Oct 22, 2023
An orphan call to `CheckQuicSupportInOpenSSL()` remained after a recent
update when checking QUIC for quiche. Move back QUIC detection to
a function and fixup callers to use that. Also make sure that quiche
gets QUIC from BoringSSL, because it doesn't support other forks at this
time.

Regression from dee310d #11555

Reported-by: Casey Bodley <cbodley@redhat.com>
Fixes #12160
Closes #12162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build cmake quiche Cloudflare's QUIC and HTTP/3 library regression

Development

Successfully merging this pull request may close these issues.

2 participants