[trivial patch, probably wrong] Building ldb standalone

Brad Hards bradh at frogmouth.net
Fri Dec 30 01:31:13 GMT 2005


I'm trying to build just ldb (not the rest of samba4). 
I pulled the anonsvn sources (per http://ldb.samba.org/) for talloc, tdb and 
ldb. 

talloc and tdb went through the ./autogen.sh && ./configure && make routine 
fine, but ldb barfed in ./configure:
....
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_initialize... yes
checking whether LDAP support is used... yes
checking for SQLITE3 support... no
./configure: line 4507: syntax error near unexpected token `libldb_sqlite3,
$with_sqlite3_support'
./configure: line 4507: `SMB_ENABLE(libldb_sqlite3,$with_sqlite3_support)'

The problematic line comes from ldb/config.m4:
SMB_ENABLE(libldb_sqlite3,$with_sqlite3_support)

So I used the no skill approach to patching this (found something that looked 
kind-of similar, and modified it till it worked):
[bradh at serrata ldb]$ svn diff
Index: configure.in
===================================================================
--- configure.in        (revision 12593)
+++ configure.in        (working copy)
@@ -11,6 +11,7 @@
 AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
 AC_DEFUN([SMB_EXT_LIB_ENABLE], [echo -n ""])
 AC_DEFUN([SMB_EXT_LIB], [echo -n ""])
+AC_DEFUN([SMB_ENABLE], [echo -n ""])
 AC_INIT(include/ldb.h)
 WITH_GCOV=0
 AC_ARG_ENABLE(gcov,

With this, ldb will ./configure and make (with or without the --with-sqlite3 
option). 

It won't pass "make test" though:
STARTING LDAP BACKEND TEST
tests/test-ldap.sh
ERROR: you need the following OpenLDAP schema files in tests/schema/
  core.schema
  nis.schema
  cosine.schema
  inetorgperson.schema
  openldap.schema
make: *** [test-ldap] Error 1


Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20051230/23d9def5/attachment.bin


More information about the samba-technical mailing list