Using system libtdb in Samba4

simo idra at samba.org
Fri Jun 27 12:26:20 GMT 2008


On Fri, 2008-06-27 at 13:45 +0200, Stefan (metze) Metzmacher wrote:
> Andrew Bartlett schrieb:
> > On Wed, 2008-06-25 at 14:14 +1000, Andrew Bartlett wrote:
> >> I'm having trouble with Samba4, now that I have it linking against the
> >> system libtdb.
> >>
> >> I wonder is using the system libtdb is incompatible with the way
> >> smbscript is built?
> > 
> > It seems that ejs just shows up one aspect of this problem.  We also
> > have this problem in samldb.so, where it tries to open templates.ldb
> > 
> > Perhaps being in a shared lib messes with the duplicate open detection?
> 
> It seems I have the same problem on ubuntu hardy...
> 
> But I'm not sure it's the system libtdb, because the duplicate check is
> done outside of libtdb in lib/tdb_wrap.c, but it's likely that it's
> loaded multiple times

If symbols are resolved libraries are not loaded more then once.

On the contrary static linking may end up (and it did) with multiple
copies of the same library and globals that are not anymore shared by
all parts of the software.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Senior Software Engineer at Red Hat Inc. <ssorce at redhat.com>



More information about the samba-technical mailing list