Bug 10962 - Doesn't link with libsamba-debug by default
Summary: Doesn't link with libsamba-debug by default
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.2.0rc2
Hardware: All All
: P5 critical (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2014-11-24 17:32 UTC by Milan Crha
Modified: 2015-08-22 08:15 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Milan Crha 2014-11-24 17:32:28 UTC
OpenChange uses samba, and its debugging macros, but the 4.2.0 RC2 breaks the build due to split of debugging functions into a private library samba-debug and not linking to it. The build error is:
>   Linking bin/openchangeclient
>   /usr/bin/ld: utils/openchangeclient.o: undefined reference to symbol 'dbghdrclass@@SAMBA_4.2.0RC2'
>   /usr/lib64/samba/libsamba-debug.so: error adding symbols: DSO missing from command line
>   collect2: error: ld returned 1 exit status
>   Makefile:1140: recipe for target 'bin/openchangeclient' failed

I see two problems:

a) samba itself should link into this new private samba-debug library in its
   pkg-config files, thus a backward compatibility is kept

b) such change should be "announced" by a soname version bump

It's my point of view, at least.