[Samba] Compiling 4.1.0 with krb5 1.12 deprecated krb5_auth_con_getlocalsubkey warning

Tompkins, Michael Michael.Tompkins at xerox.com
Wed Feb 5 06:15:12 MST 2014


When trying to build 4.1.0, we got an error that our krb5 was not up to date. It was 1.8-3 and needed to be 1.9 or greater. So we decided to try the latest 1.12 version from MIT. Now when we try to build we get:

../lib/krb5_wrap/krb5_samba.c -c -o default/lib/krb5_wrap/krb5_samba_1.o
cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation
../lib/krb5_wrap/krb5_samba.c: In function 'get_krb5_smb_session_key':
../lib/krb5_wrap/krb5_samba.c:763: warning: 'krb5_auth_con_getremotesubkey' is deprecated (declared at ../krb5_1.12/usr/include/krb5/krb5.h:5911)
../lib/krb5_wrap/krb5_samba.c:766: warning: 'krb5_auth_con_getlocalsubkey' is deprecated (declared at ../krb5_1.12/usr/include/krb5/krb5.h:5906)
../lib/krb5_wrap/krb5_samba.c: In function 'smb_krb5_enctype_to_string':
../lib/krb5_wrap/krb5_samba.c:1130: error: #error UNKNOWN_KRB5_ENCTYPE_TO_STRING_FUNCTION
../lib/krb5_wrap/krb5_samba.c: In function 'smb_krb5_make_principal':
../lib/krb5_wrap/krb5_samba.c:1994: warning: assignment discards qualifiers from pointer target type
Waf: Leaving directory `/opt/project/WS/TRUNK/system/xad/nc/toolkits/src/samba/samba-4.1.0/bin'
Build failed:  -> task failed (err #1):
        {task: cc krb5_samba.c -> krb5_samba_1.o}

Do we need to go back to an earlier version of Kerberos 5? We were hoping to jump to the latest Kerberos, so we could get up to date, and not be lagging so far behind...

Mike



More information about the samba mailing list