You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run curl's configure to try to use quiche from current git, I get these errors:
/usr/bin/ld: $path/libquiche.so: undefined reference to `__gxx_personality_v0'
/usr/bin/ld: $path/libquiche.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/bin/ld: $path/libquiche.so: undefined reference to `operator delete(void*, unsigned long)'
/usr/bin/ld: $path/libquiche.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
($path is me hiding my local long path to make it easier to the eye)
Any clues on what I am missing? (These looks like traces of C++, which I suspected might come from BoringSSL, but I am able to build from current BoringSSL without getting this problem.)
Interesting issue, I might take a look later. BoringSSL switched all sources to C++ in google/boringssl@5813c2c but indicated that "the use of the C++ standard library is minimal and no run-time requirement for it is intended."
A workaround is to link to libstdc++ as is done in PR #1973.
Would be nice to update the default boringssl version to at least commit 72a60506d (includes commit 7fb4d3da5) for PQ support based on X25519MLKEM768.
Closing as fixed. The undefined symbols came from linking a BoringSSL build that uses C++ without the C++ runtime. Since #2080 (80c5cfe) in 0.29.0, BoringSSL comes from the boring-sys crate, which links the C++ runtime for both bundled and prebuilt BoringSSL.
Activity
ghedo commentedon Apr 16, 2024
Are you using the BoringSSL version vendored by quiche or a different one? Wonder if it's related to https://boringssl-review.googlesource.com/c/boringssl/+/66288 (which would affect newer BoringSSL versions than what quiche currently uses).
bagder commentedon Apr 18, 2024
Ah yes, I have a separate BoringSSL build. I forgot about mentioning that. I updated to their latest git just a few days ago (April 12, 2024).
I too strongly suspect it has something to do with that C++ism they introduced.
bump BoringSSL
pkropachev commentedon Apr 7, 2025
@ghedo , Alessandro, is there plans to bump BoringSSL version for quiche?
Lekensteyn commentedon Apr 17, 2025
Interesting issue, I might take a look later. BoringSSL switched all sources to C++ in google/boringssl@5813c2c but indicated that "the use of the C++ standard library is minimal and no run-time requirement for it is intended."
A workaround is to link to libstdc++ as is done in PR #1973.
Would be nice to update the default boringssl version to at least commit 72a60506d (includes commit 7fb4d3da5) for PQ support based on X25519MLKEM768.
pkropachev commentedon Apr 20, 2025
Yes, linking with
libstdc++also solves problem buildingcurlwith the latest version of the BoringSSL. Link: curl/curl#13523 (comment).Actually it would be great bump version of SSL for quiche library. Currently used version is pretty old.
ghedo commentedon Nov 25, 2026
Closing as fixed. The undefined symbols came from linking a BoringSSL build that uses C++ without the C++ runtime. Since #2080 (80c5cfe) in 0.29.0, BoringSSL comes from the boring-sys crate, which links the C++ runtime for both bundled and prebuilt BoringSSL.