Bug 7767 - Build failure in ldb command line tools.
Build failure in ldb command line tools.
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: Build
unspecified
All Linux
: P3 normal
: ---
Assigned To: Andrew Tridgell
samba4-qa@samba.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-01 06:39 UTC by Brad Hards
Modified: 2010-11-02 19:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Hards 2010-11-01 06:39:22 UTC
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
Comment 1 Matthias Dieter Wallnöfer 2010-11-01 12:54:54 UTC
And a full rebuild doesn't help?
Comment 2 Brad Hards 2010-11-01 18:49:04 UTC
(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.
Comment 3 Andrew Tridgell 2010-11-02 19:53:34 UTC
removed the dep on these includes