Bug 10317 - Build failing in AD DNS code trying to find Kerberos header
Summary: Build failing in AD DNS code trying to find Kerberos header
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: All OpenBSD
: P5 normal (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-11 08:23 UTC by Brad Smith
Modified: 2014-10-13 10:41 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 Brad Smith 2013-12-11 08:23:44 UTC
The Samba 4 build has been failing for awhile now on the OpenBSD build farm system.

It looks like the kerberos.h header that is pulled in by dnsrecord.c is trying to find the com_err.h header from the Kerberos installation which is installed in /usr/include/kerberosV on OpenBSD; which can be found via krb5-config.

[ 702/3954] Compiling lib/addns/dnsrecord.c
In file included from ../lib/addns/../replace/replace.h:60,
                 from ../lib/addns/dns.h:28,
                 from ../lib/addns/dnsrecord.c:24:
/usr/include/malloc.h:4:2: warning: #warning "<malloc.h> is obsolete, use <stdlib.h>"
In file included from ../lib/addns/dns.h:30,
                 from ../lib/addns/dnsrecord.c:24:
../lib/replace/system/kerberos.h:37:21: error: com_err.h: No such file or directory
Waf: Leaving directory `/home/build/build_farm/samba_4_0_test/bin'
Build failed:  -> task failed (err #1): 
	{task: cc dnsrecord.c -> dnsrecord_1.o}
*** Error 1 in /home/build/build_farm/samba_4_0_test (Makefile:8 'all')
WAF_MAKE=1 python ./buildtools/bin/waf build
Waf: Entering directory `/home/build/build_farm/samba_4_0_test/bin'
	Selected embedded Heimdal build
[ 167/3954] Generating smbd/build_options.c
[ 702/3954] Compiling lib/addns/dnsrecord.c
18:19:55 runner ccache gcc -Wall -g -fPIC -fstack-protector -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DSTATIC_addns_MODULES=NULL -DSTATIC_addns_MODULES_PROTO= -MD -Idefault/lib/addns -I../lib/addns -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/source4/heimdal/lib/krb5 -I../source4/heimdal/lib/krb5 -Idefault/source4/heimdal/lib/asn1 -I../source4/heimdal/lib/asn1 -Idefault/source4/heimdal/include -I../source4/heimdal/include -Idefault/source4/heimdal_build -I../source4/heimdal_build -Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/source4/heimdal/lib/roken -I../source4/heimdal/lib/roken -Idefault/source4/heimdal/lib/wind -I../source4/heimdal/lib/wind -Idefault/source4/heimdal/lib/hcrypto/libtommath -I../source4/heimdal/lib/hcrypto/libtommath -Idefault/source4/heimdal/lib/gssapi -I../source4/heimdal/lib/gssapi -Idefault/source4/heimdal/lib/gssapi/gssapi -I../source4/heimdal/lib/gssapi/gssapi -Idefault/source4/heimdal/lib/gssapi/spnego -I../source4/heimdal/lib/gssapi/spnego -Idefault/source4/heimdal/lib/gssapi/krb5 -I../source4/heimdal/lib/gssapi/krb5 -Idefault/source4/heimdal/lib/gssapi/mech -I../source4/heimdal/lib/gssapi/mech -Idefault/libcli/util -I../libcli/util -Idefault/lib/nss_wrapper -I../lib/nss_wrapper -Idefault/libcli/dns -I../libcli/dns -Idefault/source4/heimdal/base -I../source4/heimdal/base -Idefault/source4/heimdal/lib/hx509 -I../source4/heimdal/lib/hx509 -Idefault/lib/util/charset -I../lib/util/charset -Idefault/lib/uid_wrapper -I../lib/uid_wrapper -Idefault/source4/heimdal/lib/hcrypto -I../source4/heimdal/lib/hcrypto -Idefault/source4/heimdal/lib -I../source4/heimdal/lib -Idefault/lib/tevent -I../lib/tevent -Idefault/lib/talloc -I../lib/talloc -Idefault/lib/crypto -I../lib/crypto -Idefault/dynconfig -I../dynconfig -Idefault/librpc -I../librpc -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/addns/dnsrecord.c -c -o default/lib/addns/dnsrecord_1.o
In file included from ../lib/addns/../replace/replace.h:60,
                 from ../lib/addns/dns.h:28,
                 from ../lib/addns/dnsrecord.c:24:
/usr/include/malloc.h:4:2: warning: #warning "<malloc.h> is obsolete, use <stdlib.h>"
In file included from ../lib/addns/dns.h:30,
                 from ../lib/addns/dnsrecord.c:24:
../lib/replace/system/kerberos.h:37:21: error: com_err.h: No such file or directory
Waf: Leaving directory `/home/build/build_farm/samba_4_0_test/bin'
Build failed:  -> task failed (err #1): 
	{task: cc dnsrecord.c -> dnsrecord_1.o}
*** Error 1 in /home/build/build_farm/samba_4_0_test (Makefile:8 'all')