Skip to content

Autotools configure different SONAME than the CMake build #479

Closed
@coldtobi

Description

@coldtobi

Hi,
I'm currently packaging the version 2.0.5 for Debian (https://tracker.debian.org/log4cplus) and I'm currently planning to use Cmake to create the build (to have the CMake module as well)

During that, I saw that the SONAME is different depending whether autotools or Cmake is used for build:

When using autotools:
Filenames are:

lrwxrwxrwx 1 tobi tobi       25 20. Okt 23:58 liblog4cplus-2.0.so.3 -> liblog4cplus-2.0.so.3.4.5
-rwxr-xr-x 1 tobi tobi 10871920 20. Okt 23:58 liblog4cplus-2.0.so.3.4.5
-rwxr-xr-x 1 tobi tobi      985 20. Okt 23:58 liblog4cplus.la
lrwxrwxrwx 1 tobi tobi       25 20. Okt 23:58 liblog4cplus.so -> liblog4cplus-2.0.so.3.4.5

SONAME with Autotools:

objdump -p liblog4cplus.so | grep SONAME
  SONAME               liblog4cplus-2.0.so.3

When using CMake:

Filenames are:

/build/log4cplus-2.0.5/debian/tmp/usr/lib/x86_64-linux-gnu# ls -la *so*
lrwxrwxrwx 1 pbuilder pbuilder       17 Oct 20 20:51 liblog4cplus.so -> liblog4cplus.so.0
lrwxrwxrwx 1 pbuilder pbuilder       21 Oct 20 20:51 liblog4cplus.so.0 -> liblog4cplus.so.2.0.5

SONAME with CMake:

objdump -p liblog4cplus.so | grep SONAME
  SONAME               liblog4cplus.so.0

My question is: What is the intended SO Name and file names?

Thanks for you help!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions