Samba DEBUG in OpenChange

Ralph Boehme rb at sernet.de
Tue Dec 15 09:36:01 UTC 2015


On Tue, Dec 15, 2015 at 11:30:03AM +1300, Andrew Bartlett wrote:
> On Mon, 2015-12-14 at 10:12 +0100, Ralph Boehme wrote:
> > On Mon, Dec 14, 2015 at 08:57:53AM +0100, Volker Lendecke wrote:
> > > From lib/util/wscript_build:
> > > 
> > > public_headers='debug.h attr.h byteorder.h data_blob.h memory.h
> > > safe_string.h time.h talloc_stack.h xfile.h dlinklist.h
> > > samba_util.h string_wrappers.h idtree.h idtree_random.h blocking.h
> > > signal.h substitute.h fault.h genrand.h'
> > > public_headers='tevent_ntstatus.h tevent_werror.h'
> > 
> > hm. libsamba-util is public and installs debug.h, why can't
> > Openchange
> > simply link against libsamba-util? I must be missing something...
> 
> Because the debug.c file moved to a private library, samba-debug. That
> is the crux of the issue here, as I understand it.

sure.

So linking with libsamba-util makes libsamba-debug-samba4 and indirect
dependency and even when forcing linkers to resolve symbols via
--copy-dt-needed-entries, adding library search paths and rpaths is
still needed. I guess this could be done to link to
libsamba-debug-samba4 directly though.

-Ralph

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de



More information about the samba-technical mailing list