The following two (trivial) patches are required to get
krb5-1.6 to compile under FreeBSD-i386-6.1 (gcc 3.4.4).

--- src/lib/krb5/os/hst_realm.c.orig
+++ src/lib/krb5/os/hst_realm.c
@@ -302,7 +302,7 @@
return EAFNOSUPPORT;
case EAI_MEMORY:
return ENOMEM;
-#if EAI_NODATA != EAI_NONAME
+#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
case EAI_NODATA:
return KRB5_EAI_NODATA;
#endif

--- src/lib/krb5/os/locate_kdc.c.orig
+++ src/lib/krb5/os/locate_kdc.c
@@ -157,7 +157,7 @@
#ifdef EAI_ADDRFAMILY
case EAI_ADDRFAMILY:
#endif
-#if EAI_NODATA != EAI_NONAME
+#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
case EAI_NODATA:
#endif
case EAI_NONAME:


Note that this does NOT address any of the 1,000+ compiler
warnings emitted during compilation.

The resulting build DOES pass 'make check'.
--
Brian Kantor brian@ucsd.edu
Senior Network and Systems Administrator
Academic Computing Network Operations 0124
University of California at San Diego
La Jolla, CA 92093-0124 USA
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos