In OS X 10.9 Mavericks, Apple has marked all of the krb5 routines
as deprecated (in favor of the GSS framework). We must disable
these warnings in order to allow the buildslave to have a successful
build.
Luckily, Apple has left in rope for us to programmatically disable
the deprecated attribute with a preprocessor macro. Defining this
macro should be safe everywhere, so do so unconditionally.
This commit touches a few more files than the version on master does,
since the 1.6 branch is using the krb5 library for its rxkad-k5
implementation; the files in auth/ and rxkad/ are specific to 1.6.
Reviewed-on: http://gerrit.openafs.org/10699
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit
17c50911f79382e3ba8960e4b6c122b348e9baef)
Change-Id: Id0e806029e25583698574bf3df626ce12a72312a
Reviewed-on: http://gerrit.openafs.org/10735
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
#include <pwd.h>
#include <afs/stds.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#ifdef HAVE_COM_ERR_H
# include <com_err.h>
#include <string.h>
#include <afs/stds.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#ifndef HAVE_KERBEROSV_HEIM_ERR_H
#endif
#include <afs/ptclient.h>
#include <afs/cmd.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#ifdef HAVE_KRB5_CREDS_KEYBLOCK
#include <kerberosIV/mit-copyright.h>
#endif
#include <afs/stds.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include "aklog.h"
#include <krb5.h>
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include "aklog.h"
#include <krb5.h>
#include "skipwrap.h"
#include <errno.h>
#include <string.h>
#include <stdlib.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#include "akimpersonate.h"
#include <rx/rxkad.h>
#if defined(USE_RXKAD_KEYTAB) && !defined(UKERNEL)
#include <afs/dirpath.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#endif
#include <rx/rx.h>
#endif
#include <rx/rx.h>
#ifdef HAVE_KERBEROS
+# define KERBEROS_APPLE_DEPRECATED(x)
# include <krb5.h>
#endif
#include "afscp.h"
#include <rx/rx_null.h>
#include <rx/rxkad.h>
#ifdef HAVE_KERBEROS
+# define KERBEROS_APPLE_DEPRECATED(x)
# include <krb5.h>
#endif
#include "afscp.h"
#include <errno.h>
#include <sys/stat.h>
+#define KERBEROS_APPLE_DEPRECATED(x)
#include <krb5.h>
#ifdef RX_ENABLE_LOCKS