krb5-1.4.1 build failure on FreeBSD 5.4 (EAI_NODATA), and a workaround

Russ Allbery rra at stanford.edu
Mon Jul 11 22:24:07 EDT 2005


Fred Dushin <fadushin at fourfold.org> writes:

> I'm getting a krb5-1.4.1 build failure on FreeBSD 5.4-RELEASE:

> .../krb5-1.4.1/src/lib/krb5/os/hst_realm.c: In function
> `krb5int_translate_gai_error':
> .../krb5-1.4.1/src/lib/krb5/os/hst_realm.c:370: error: `EAI_NODATA'
> undeclared (first use in this function)
> .../krb5-1.4.1/src/lib/krb5/os/hst_realm.c:370: error: (Each  undeclared
> identifier is reported only once
> .../krb5-1.4.1/src/lib/krb5/os/hst_realm.c:370: error: for each  function
> it appears in.)

EAI_NODATA is obsolete; current implementations just return EAI_NONAME in
that case.  Note that EAI_NODATA is not listed as a valid return code in
RFC 3493.

This should be fixed in the krb5 source, but in the meantime the
workaround would be to compile with -DEAI_NODATA=EAI_NONAME, which the
code appears to deal with correctly.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>


More information about the Kerberos mailing list