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@naomi source]$ make test TESTS=samba3sam

LD_LIBRARY_PATH=./bin/shared /usr/bin/perl -W ./selftest/selftest.pl
--prefix=./st --builddir=. --srcdir=.
--expected-failures=./samba4-knownfail --format=plain
--exclude=./samba4-skip --testlist="./selftest/samba4_tests.sh|"
--exclude=./samba4-slow --socket-wrapper --immediate \
samba3sam
SOCKET_WRAPPER_DIR=./st/w
OPTIONS
--configfile=/home/data/samba/git/samba/source/st/client/client.conf
--maximum-runtime=1200 --target=samba4
--basedir=/home/data/samba/git/samba/source/st
--option=torturerogress=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

Backtrace:
[ 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@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
'tdb:///data/samba/git/samba/source/testpartition.ldb'

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

Backtrace:
[ 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
10
ERROR: Exit code was 127


--
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQBIYcYyz4A8Wyi0NrsRAsY7AJwOSOmE7ep8vk3ioyPGGT DFnZ24JACdFICf
7KrYDq02bQStYtOl5lP/TIc=
=EvDF
-----END PGP SIGNATURE-----