Skip to content

libquiche.so undefined references #1761

Done

Description

@bagder

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.)

Activity

  1. ghedo commented on Apr 16, 2024

    @ghedo
    Member

    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).

  2. bagder commented on Apr 18, 2024

    @bagder
    ContributorAuthor

    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.

  3. added a commit that references this issue on May 8, 2024
    16cff84
  4. pkropachev commented on Apr 7, 2025

    @pkropachev

    @ghedo , Alessandro, is there plans to bump BoringSSL version for quiche?

  5. Lekensteyn commented on Apr 17, 2025

    @Lekensteyn
    Contributor

    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.

  6. pkropachev commented on Apr 20, 2025

    @pkropachev

    Yes, linking with libstdc++ also solves problem building curl with 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.

  7. added
    type: bugfix
    area: build
    on Nov 24, 2026
  8. ghedo commented on Nov 25, 2026

    @ghedo
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: buildtype: bugfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions