Skip to content
New issue

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

[package] protobuf/3.19.6: SONAME is incorrect #22148

Open
vindiagram opened this issue Jan 4, 2024 · 0 comments
Open

[package] protobuf/3.19.6: SONAME is incorrect #22148

vindiagram opened this issue Jan 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vindiagram
Copy link

vindiagram commented Jan 4, 2024

Description

The SONAME produced by the cmake build for protobuf/3.19.6 is 3.19.6.0 when it should be 30.

The versioning of the protobuf cmake builds is incorrect and has been broken for some time within the protobuf repository.
The CMAKE build fails to specify the SOVERSION when building its targets making the binaries incompatible with ones produced by the projects documented build steps using autoconf.

This issue was raised at one point and closed within the protobuf repository, see protocolbuffers/protobuf#8635.
But at some point these changes were dropped.

Official builds of the protobuf available on RHEL & Fedora distributions are built using autoconf and reflect that with the SONAME contained within the libraries.

Making project compiled with protobuf through conan incompatible with the ones on the runtime target system even if they are the same version.

Additional patches need to be made to the conan supported protobuf versions to add the missing SOVERSION definition to the cmake build files.

Package and Environment Details

  • Package Name/Version: zlib/1.2.8
  • Operating System+version: Linux Ubuntu 18.04
  • Compiler+version: GCC 8
  • Docker image: conanio/gcc8
  • Conan version: conan 2.0.14
  • Python version: Python 3.7.4

Conan profile

[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=8
os=Linux

Steps to reproduce

command to lookup soname in conan provided protobuf library.

readelf -d ~/.conan2/p/b/proto583ee1ff7174d/p/lib/libprotobuf.so.3.19.6.0 | grep -i soname

Logs

Click to expand log
Put your log output here
@vindiagram vindiagram added the bug Something isn't working label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant