compiling krb5-1.6 on FreeBSD-6.1 - required patches

Brian Kantor brian at karoshi.ucsd.edu
Mon Apr 9 13:57:17 EDT 2007


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 at ucsd.edu
		Senior Network and Systems Administrator
		Academic Computing Network Operations 0124
		University of California at San Diego
		La Jolla, CA 92093-0124 USA



More information about the Kerberos mailing list