Doing a standard openchange build, I hit a problem with building ldb command line tools: $ make V=1 WAF_MAKE=1 ../buildtools/bin/waf build Waf: Entering directory `/home/bradh/openchange/bug227/samba4/source4/bin' [ 7/2187] Generating VERSION [ 415/2187] Compiling lib/ldb/tools/cmdline.c 22:26:13 runner ccache gcc -I/usr/local/samba/include -DDEVELOPER -DDEBUG_PASSWORD -fPIC -Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -DSTATIC_ldb_cmdline_MODULES=NULL -DSTATIC_ldb_cmdline_MODULES_PROTO -MD -Idefault/source4/lib/ldb -I../lib/ldb -Idefault/source4 -I.. -Idefault/lib -I../../lib -Idefault/source4/lib -I../lib -Idefault/source4/include -I../include -Idefault -I../.. -Idefault/lib/socket_wrapper -I../../lib/socket_wrapper -Idefault/lib/replace -I../../lib/replace -Idefault/lib/nss_wrapper -I../../lib/nss_wrapper -Idefault/lib/uid_wrapper -I../../lib/uid_wrapper -I/usr/local/samba/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/ldb/tools/cmdline.c -c -o default/source4/lib/ldb/tools/cmdline_1.o ../lib/ldb/tools/cmdline.c:24:26: error: ldb_includes.h: No such file or directory ../lib/ldb/tools/cmdline.c:25:25: error: ldb_private.h: No such file or directory ../lib/ldb/tools/cmdline.c: In function ‘ldb_cmdline_help’: ../lib/ldb/tools/cmdline.c:67: error: dereferencing pointer to incomplete type ../lib/ldb/tools/cmdline.c: In function ‘ldb_cmdline_process’: ../lib/ldb/tools/cmdline.c:130: error: dereferencing pointer to incomplete type ../lib/ldb/tools/cmdline.c:138: error: dereferencing pointer to incomplete type ../lib/ldb/tools/cmdline.c:145: error: implicit declaration of function ‘strcmp’ ../lib/ldb/tools/cmdline.c:181: error: implicit declaration of function ‘strchr’ ../lib/ldb/tools/cmdline.c:181: warning: incompatible implicit declaration of built-in function ‘strchr’ Waf: Leaving directory `/home/bradh/openchange/bug227/samba4/source4/bin' Build failed: -> task failed (err #1): {task: cc cmdline.c -> cmdline_1.o} make: *** [all] Error 1 Looks like that is related to this change: http://git.samba.org/samba.git/?p=samba.git;a=blobdiff;f=source4/lib/ldb/tools/cmdline.c;h=01df8ff4e536d41fafdb73cd9f3c6fdd268ec0e0;hp=83de6ed456da33ce10eab4419353d1e726e80cea;hb=f924a022cbc973ae646bff5119a1784e979a052f;hpb=fd8815335d1295d3d0b9f5e7870f4ed364b1dd3b
And a full rebuild doesn't help?
(In reply to comment #1) > And a full rebuild doesn't help? The way openchange builds samba, its always a clean build. Remove the target directory /usr/local/samba, and build talloc, tdb, tevent, ldb as seperate packages, and then build samba.
removed the dep on these includes