krb5-1.9.1 compilation errors on NetBSD

Julien ÉLIE julien at
Thu Sep 15 16:19:39 EDT 2011

Hi Greg,

>> init_ctx.c:134:5: error: implicit declaration of function 'krb5int_initialize_library' [-Werror=implicit-function-declaration]
> The declaration for this function comes from ../krb5_libinit.h, which is
> included like this:
> #if defined(unix) || TARGET_OS_MAC
> #include "../krb5_libinit.h"
> #endif
> From memory, NetBSD is one of the few platforms which doesn't define
> "unix" in order to better comply with POSIX and ANSI namespace
> standards.  So, that conditional is broken for NetBSD.
> In the trunk code (as of April 2011), we include that header
> unconditionally.  I'll file a ticket to backport that change to 1.9.

OK, thanks a lot.

I have just modified the local file to include the header 
unconditionally, and krb5-1.9.1 built fine.

Julien ÉLIE

« Le chemin le plus court d'un point à un autre est la ligne droite,
   à condition que les deux points soient bien en face l'un de
   l'autre. » (Pierre Dac)

More information about the krbdev mailing list