Samba 4 Build errors on AIX

William Jojo w.jojo at hvcc.edu
Wed Mar 4 14:41:51 GMT 2009


Andrew, 


Trying to build alpha 7 on AIX 5.3 with GCC 4.2.3.

My first observation for AIX would be to undefine _LARGE_FILE_API if defining _LARGE_FILES - the AIX header files self destruct when both are defined.

I am also hitting some Heimdal/KRB errors, and was hoping you could guide me in making this build work.

I barely know my way around MIT, but not at all in Heimdal land.


Compiling auth/ntlmssp/ntlmssp_client.c
Compiling auth/ntlmssp/ntlmssp_server.c
Partially linking bin/mergedobj/gensec_ntlmssp.o
Compiling auth/gensec/gensec_gssapi.c
In file included from ./auth/kerberos/kerberos.h:23,
                 from auth/gensec/gensec_gssapi.c:27:
./auth/kerberos/krb5_init_context.h:22: error: expected specifier-qualifier-list before 'krb5_log_facility'
./auth/kerberos/krb5_init_context.h:34: error: expected declaration specifiers or '...' before 'krb5_krbhst_info'
In file included from auth/gensec/gensec_gssapi.c:27:
./auth/kerberos/kerberos.h:73: error: expected identifier or '(' before 'int'
./auth/kerberos/kerberos.h:73: error: expected ')' before '<' token
./auth/kerberos/kerberos.h:73: error: expected ')' before '?' token
./auth/kerberos/kerberos.h:77: warning: 'struct sockaddr' declared inside parameter list
./auth/kerberos/kerberos.h:77: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from ./auth/kerberos/kerberos.h:151,
                 from auth/gensec/gensec_gssapi.c:27:
./auth/kerberos/proto.h:39: error: expected declaration specifiers or '...' before 'krb5_pac'
./auth/kerberos/proto.h:58: error: expected declaration specifiers or '...' before 'krb5_krbhst_info'
auth/gensec/gensec_gssapi.c: In function 'gensec_gssapi_start':
auth/gensec/gensec_gssapi.c:148: error: storage size of 'send_to_kdc' isn't known
auth/gensec/gensec_gssapi.c:203: error: 'GSS_C_DCE_STYLE' undeclared (first use in this function)
auth/gensec/gensec_gssapi.c:203: error: (Each undeclared identifier is reported only once
auth/gensec/gensec_gssapi.c:203: error: for each function it appears in.)
auth/gensec/gensec_gssapi.c: In function 'gensec_gssapi_client_start':
auth/gensec/gensec_gssapi.c:336: warning: assignment discards qualifiers from pointer target type
auth/gensec/gensec_gssapi.c: In function 'gensec_gssapi_have_feature':
auth/gensec/gensec_gssapi.c:1136: error: 'GSS_C_DCE_STYLE' undeclared (first use in this function)
auth/gensec/gensec_gssapi.c: In function 'gensec_gssapi_session_key':
auth/gensec/gensec_gssapi.c:1201: error: 'krb5_keyblock' has no member named 'keyvalue'
auth/gensec/gensec_gssapi.c:1204: error: 'krb5_keyblock' has no member named 'keyvalue'
auth/gensec/gensec_gssapi.c:1204: error: 'krb5_keyblock' has no member named 'keyvalue'
auth/gensec/gensec_gssapi.c: In function 'gensec_gssapi_session_info':
auth/gensec/gensec_gssapi.c:1241: error: 'KRB5_AUTHDATA_WIN2K_PAC' undeclared (first use in this function)
auth/gensec/gensec_gssapi.c: In function 'gensec_gssapi_sig_size':
auth/gensec/gensec_gssapi.c:1399: error: 'KEYTYPE_DES' undeclared (first use in this function)
auth/gensec/gensec_gssapi.c:1400: error: 'KEYTYPE_ARCFOUR' undeclared (first use in this function)
auth/gensec/gensec_gssapi.c:1401: error: 'KEYTYPE_ARCFOUR_56' undeclared (first use in this function)
auth/gensec/gensec_gssapi.c:1408: error: 'KEYTYPE_DES3' undeclared (first use in this function)
The following command failed:
gcc -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -I/opt/pware/include -I/opt/pware/include     -Iheimdal/../heimdal_build -Iheimdal/lib/hdb -Iheimdal_build -Iheimdal/lib/roken -Iheimdal/lib/hdb     -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/ldb_tdb -I../lib/tdb/include -Ilib/ldb/include -Ilib/ldb/include    -I./../lib/talloc   -Ilib/events -I../lib/tevent   -Iheimdal/../heimdal_build -Iheimdal/lib/gssapi -Iheimdal/lib/gssapi/gssapi -Iheimdal/lib/gssapi/spnego -Iheimdal/lib/gssapi/krb5 -Iheimdal/lib/gssapi/mech -Iheimdal/../heimdal_build -Iheimdal/lib/krb5 -Iheimdal/lib/asn1 -Iheimdal/lib/com_err     -I/opt/pware/include  -I../lib/talloc -Ilib/replace   -Iheimdal/../heimdal_build -Iheimdal/lib/hx509 -Iheimdal/lib/hx509 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/hx509 -Iheimdal/../heimdal_build -Iheimdal/lib/wind -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1!
 -Iheimdal/lib/gssapi -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto -Iheimdal/lib -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto/imath -Iheimdal/../heimdal_build -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build -Iheimdal/lib/com_err -Iheimdal/../heimdal_build -Iheimdal/lib/roken -I../lib/socket_wrapper     -O2 -I./include -I. -I./lib -I./../lib/replace -I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H  -I/opt/pware/include -I/opt/pware/include -c auth/gensec/gensec_gssapi.c -o auth/gensec/gensec_gssapi.o
make: *** [auth/gensec/gensec_gssapi.o] Error 1


Cheers,
Bill


More information about the samba-technical mailing list