Bug 9007 - Build fails on gentoo [ 834/3797] Compiling source4/dsdb/samdb/ldb_modules/linked_attributes.c
Summary: Build fails on gentoo [ 834/3797] Compiling source4/dsdb/samdb/ldb_modules/li...
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Tridgell
QA Contact: samba4-qa@samba.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-26 13:40 UTC by fzwerver
Modified: 2012-06-26 17:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fzwerver 2012-06-26 13:40:33 UTC
WAF_MAKE=1 ./buildtools/bin/waf build
Waf: Entering directory `/root/samba-master/bin'
        Selected embedded Heimdal build
[ 123/3797] Generating VERSION
[ 158/3797] Generating smbd/build_options.c
[ 834/3797] Compiling source4/dsdb/samdb/ldb_modules/linked_attributes.c
../source4/dsdb/samdb/ldb_modules/linked_attributes.c: In function 'handle_verify_name_control':
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:97:12: error: dereferencing pointer to incomplete type
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:97:40: error: dereferencing pointer to incomplete type
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:111:11: error: dereferencing pointer to incomplete type
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:112:44: error: dereferencing pointer to incomplete type
../source4/dsdb/samdb/ldb_modules/linked_attributes.c: In function 'linked_attributes_add':
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:258:41: error: 'LDB_CONTROL_VERIFY_NAME_OID' undeclared (first use in this function)
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:258:41: note: each undeclared identifier is reported only once for each function it appears in
../source4/dsdb/samdb/ldb_modules/linked_attributes.c: In function 'linked_attributes_modify':
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:495:41: error: 'LDB_CONTROL_VERIFY_NAME_OID' undeclared (first use in this function)
../source4/dsdb/samdb/ldb_modules/linked_attributes.c: In function 'linked_attributes_ldb_init':
../source4/dsdb/samdb/ldb_modules/linked_attributes.c:1168:41: error: 'LDB_CONTROL_VERIFY_NAME_OID' undeclared (first use in this function)
Waf: Leaving directory `/root/samba-master/bin'
Build failed:  -> task failed (err #1):
        {task: cc linked_attributes.c -> linked_attributes_57.o}
make: *** [all] Error 1


I followed the guide on http://wiki.samba.org/index.php/Samba4/HOWTO using the git method and tried now two times with a fresh install of gentoo (AMD64). I have selected python 2.7 and have used ./configure.developer
Comment 1 fzwerver 2012-06-26 13:46:02 UTC
Linux vms 3.3.8-gentoo #5 SMP Mon Jun 25 23:23:39 CEST 2012 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux
Comment 2 Björn Baumbach 2012-06-26 15:51:33 UTC
Hi!

Try to uninstall sys-libs/ldb, if you do not need this for other packages.

LDB_CONTROL_VERIFY_NAME_OID was introduced in May in master. I think the systems ldb is too old.

I do not have installed sys-libs/ldb and samba4 does build on my gentoo.

I also removed sys-libs/talloc, sys-libs/tdb and sys-libs/tevent.

Björn
Comment 3 fzwerver 2012-06-26 17:20:46 UTC
Björn,

thank you for your swift reply. I builds fine now after removing sys-libs/ldb, sys-libs/talloc, sys-libs/tdb and sys-libs/tevent. I'm setting up a domain as I'm writing this reply.

maybe the wiki HOWTO page needs some updating as it explicitly says for gentoo installs:

$ ACCEPT_KEYWORDS="~amd64" USE="python" emerge =sys-libs/tdb-1.2.10 =sys-libs/tevent-0.9.15 =sys-libs/ldb-1.1.6

which seems to introduce the problem in the first place.

Thanks.