Using system libtdb in Samba4

Andrew Bartlett abartlet at
Wed Jun 25 04:14:42 GMT 2008

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?

In particular, make test fails in this configuration.  I've seen errors
such as this one in the ejs samba3sam test:

[abartlet at naomi source]$ make test TESTS=samba3sam

LD_LIBRARY_PATH=./bin/shared /usr/bin/perl -W ./selftest/
--prefix=./st --builddir=. --srcdir=.
--expected-failures=./samba4-knownfail --format=plain
--exclude=./samba4-skip --testlist="./selftest/|"
--exclude=./samba4-slow --socket-wrapper --immediate \
--maximum-runtime=1200 --target=samba4
--option=torture:progress=no --format=subunit
Version 4.0.0alpha5-GIT-edd9ecc
[1/1 in 0s] samba4.js.samba3sam
ldb: module partition initialization failed
ldb: module samba3sam initialization failed
ldb: module operational initialization failed
ldb: module samldb initialization failed
ldb: module asq initialization failed
ldb: module extended_dn initialization failed
ldb: module server_sort initialization failed
ldb: module paged_results initialization failed
ldb: module rootdse initialization failed
ldb: Unable to load modules for
tdb:///data/samba/git/samba/source/test.ldb: error waiting on module
tdb: Success (0)

smbscript: ejsEvalScript(): Assertion failure

	[ 0]                     :1217 -> assert(ok)

CMD: ./selftest/../bin/smbscript ./selftest/../../testprogs/ejs/samba3sam.js --configfile=/home/data/samba/git/samba/source/st/client/client.conf /data/samba/git/samba/source ./selftest/../../testdata/samba3/
ERROR: Exit code was 127

[abartlet at naomi source]$ make test TESTS=ldb


ldb: ltdb: tdb((null)):
tdb_open_ex: /data/samba/git/samba/source/testpartition.ldb
(64769,43286554) is already open in this process

ldb: Unable to open tdb '/data/samba/git/samba/source/testpartition.ldb'

ldb: Failed to connect to

mprLog: mprCreateObjVar localBlock, 0x0x20049f0
smbscript: ejsEvalScript(): Assertion failure

	[ 0]                     :374  -> assert(ok)

CMD: ./selftest/../../testprogs/ejs/ldb.js /data/samba/git/samba/source
--configfile=/home/data/samba/git/samba/source/st/client/client.conf -d
ERROR: Exit code was 127

Andrew Bartlett
Authentication Developer, Samba Team 
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list