We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What version of protobuf and what language are you using? Version: 21.2 Language: C++
What operating system (Linux, Windows, ...) and version? Linux
What runtime / compiler are you using (e.g., python version or gcc version) GCC 12
What did you do? Compiling shared libraries with autotools doesn't define PROTOBUF_USE_DLLS. Therefore, in https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/arena.cc#L223 the compiled shared library exports the ThreadSafeArena::thread_cache_ symbol.
ThreadSafeArena::thread_cache_
On the other hand, compiling then with cmake defines PROTOBUF_USE_DLLS so the symbol ThreadSafeArena::thread_cache() is exported instead in https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/arena.cc#L217, which makes the ABI different depending on the build system used.
ThreadSafeArena::thread_cache()
The text was updated successfully, but these errors were encountered:
Protobuf does not support heterogenous build modes like this. Medium term we plan on removing autotools support entirely
Sorry, something went wrong.
No branches or pull requests
What version of protobuf and what language are you using?
Version: 21.2
Language: C++
What operating system (Linux, Windows, ...) and version?
Linux
What runtime / compiler are you using (e.g., python version or gcc version)
GCC 12
What did you do?
Compiling shared libraries with autotools doesn't define PROTOBUF_USE_DLLS. Therefore, in
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/arena.cc#L223
the compiled shared library exports the
ThreadSafeArena::thread_cache_
symbol.On the other hand, compiling then with cmake defines PROTOBUF_USE_DLLS so the symbol
ThreadSafeArena::thread_cache()
is exported instead inhttps://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/arena.cc#L217,
which makes the ABI different depending on the build system used.
The text was updated successfully, but these errors were encountered: