./configure --prefix=/usr/local/samba4 --with-static-modules=ALL --nonshared-binary=ALL --builtin-libraries=ALL [ 492/3341] Compiling third_party/popt/poptparse.c "/usr/include/float.h", line 174.9: 1506-236 (W) Macro name DBL_EPSILON has been redefined. [ 493/3341] Compiling lib/addns/dnsquery.c [ 494/3341] Compiling lib/addns/dnsrecord.c [ 495/3341] Compiling lib/addns/dnsutils.c [ 496/3341] Compiling lib/addns/dnssock.c "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax error: possible missing ';' or ','? "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 41.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for GSSAPI_CPP_START. "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax error: possible missing ';' or ','? "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 41.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for GSSAPI_CPP_START. "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax error: possible missing ';' or ','? "../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 41.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for GSSAPI_CPP_START. Waf: Leaving directory `/usr/local/src/samba-4.6.6/bin' Build failed: -> task failed (err #1): {task: cc dnsrecord.c -> dnsrecord_1.o} -> task failed (err #1): {task: cc dnssock.c -> dnssock_1.o} -> task failed (err #1): {task: cc dnsutils.c -> dnsutils_1.o} Makefile:8: recipe for target 'all' failed gmake: *** [all] Error 1 it seems it includes the installed krb5 headers which is weird as it clearly should use the internal heimdal headers. if i uninstall the system krb5 headers it runs over this, but stops at another place with... [2194/3341] Compiling source4/torture/smb2/streams.c [2195/3341] Compiling source4/torture/smb2/util.c [2196/3341] Compiling source4/torture/winbind/winbind.c "../lib/replace/system/kerberos.h", line 33.10: 1506-296 (S) #include file <krb5.h> not found. "../lib/replace/system/kerberos.h", line 37.10: 1506-296 (S) #include file <com_err.h> not found. "../source4/auth/kerberos/krb5_init_context.h", line 24.9: 1506-046 (S) Syntax error. "../source4/auth/kerberos/krb5_init_context.h", line 32.1: 1506-166 (S) Definition of function krb5_error_code requires parentheses. "../source4/auth/kerberos/krb5_init_context.h", line 33.1: 1506-276 (S) Syntax error: possible missing '{'? [2197/3341] Compiling source4/torture/winbind/struct_based.c "../lib/krb5_wrap/krb5_samba.h", line 100.9: 1506-046 (S) Syntax error. "../lib/krb5_wrap/krb5_samba.h", line 137.1: 1506-166 (S) Definition of function krb5_error_code requires parentheses. "../lib/replace/system/gssapi.h", line 35.10: 1506-296 (S) #include file <gssapi/gssapi.h> not found. "../lib/replace/system/gssapi.h", line 43.10: 1506-296 (S) #include file <gssapi/gssapi_krb5.h> not found. "../lib/replace/system/gssapi.h", line 47.10: 1506-296 (S) #include file <gssapi/gssapi_spnego.h> not found. "../source4/auth/kerberos/kerberos.h", line 37.21: 1506-275 (S) Unexpected text ccache encountered. "../source4/auth/kerberos/kerberos.h", line 37.9: 1506-045 (S) Undeclared identifier krb5_ccache. "../source4/auth/kerberos/kerberos.h", line 42.9: 1506-046 (S) Syntax error. "../source4/auth/kerberos/kerberos.h", line 57.1: 1506-166 (S) Definition of function krb5_error_code requires parentheses. "../source4/auth/kerberos/kerberos.h", line 57.17: 1506-276 (S) Syntax error: possible missing '{'? "../auth/credentials/credentials.h", line 44.9: 1506-045 (S) Undeclared identifier CRED_UNINITIALISED. "../auth/credentials/credentials.h", line 45.9: 1506-045 (S) Undeclared identifier CRED_CALLBACK. "../auth/credentials/credentials.h", line 46.9: 1506-045 (S) Undeclared identifier CRED_GUESS_ENV. "../auth/credentials/credentials.h", line 47.9: 1506-045 (S) Undeclared identifier CRED_GUESS_FILE. "../auth/credentials/credentials.h", line 48.9: 1506-045 (S) Undeclared identifier CRED_CALLBACK_RESULT. "../auth/credentials/credentials.h", line 49.9: 1506-045 (S) Undeclared identifier CRED_SPECIFIED. "../auth/credentials/credentials.h", line 50.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "../auth/kerberos/pac_utils.h", line 33.1: 1506-166 (S) Definition of function krb5_error_code requires parentheses. "../auth/kerberos/pac_utils.h", line 33.17: 1506-276 (S) Syntax error: possible missing '{'? "../source4/torture/winbind/winbind.c", line 67.73: 1506-022 (S) "krb5_context" is not a member of "struct smb_krb5_context". Waf: Leaving directory `/usr/local/src/samba-4.6.6/bin' Build failed: -> task failed (err #1): {task: cc winbind.c -> winbind_1.o} Makefile:8: recipe for target 'all' failed gmake: *** [all] Error 1
tried it with gcc, runs over the "GSSAPI_CPP_START" problem, but ultimately fails with this (same as with the xlc compiler). [2197/3352] Compiling source4/torture/smb2/notify_disabled.c [2198/3352] Compiling source4/torture/smb2/oplock.c [2199/3352] Compiling source4/torture/smb2/read.c [2200/3352] Compiling source4/torture/smb2/rename.c [2201/3352] Compiling source4/torture/smb2/replay.c [2202/3352] Compiling source4/torture/smb2/scan.c [2203/3352] Compiling source4/torture/smb2/session.c [2204/3352] Compiling source4/torture/smb2/setinfo.c [2205/3352] Compiling source4/torture/smb2/smb2.c [2206/3352] Compiling source4/torture/smb2/streams.c [2207/3352] Compiling source4/torture/smb2/util.c [2208/3352] Compiling source4/torture/winbind/winbind.c In file included from ../source4/auth/kerberos/kerberos.h:27:0, from ../source4/torture/winbind/winbind.c:29: ../source4/auth/kerberos/krb5_init_context.h:44:10: error: unknown type name 'krb5_krbhst_info' krb5_krbhst_info *hi, ^ ../source4/auth/kerberos/krb5_init_context.h:50:10: error: unknown type name 'krb5_krbhst_info' krb5_krbhst_info *hi, ^ In file included from ../source4/auth/kerberos/kerberos.h:29:0, from ../source4/torture/winbind/winbind.c:29: ../lib/krb5_wrap/krb5_samba.h:100:2: error: unknown type name 'krb5_addresses' krb5_addresses *addrs; ^ In file included from ../lib/krb5_wrap/gss_samba.h:27:0, from ../source4/auth/kerberos/kerberos.h:30, from ../source4/torture/winbind/winbind.c:29: ../lib/replace/system/gssapi.h:47:34: fatal error: gssapi/gssapi_spnego.h: No such file or directory #include <gssapi/gssapi_spnego.h> ^ compilation terminated. Waf: Leaving directory `/usr/local/src/samba-4.6.6/bin' Build failed: -> task failed (err #1): {task: cc winbind.c -> winbind_1.o} Makefile:8: recipe for target 'all' failed gmake: *** [all] Error 1
please try with a recent version like 4.16.x. I'm afraid that this is a specific issue that is only debuggable on your system. For the sernet samba AIX builds this is not an issue at least.
as ibm provides samba packages now, i stopped working on samba builds. can be closed.