krb 1.21.2 build fails on macOS 14.2.1

Ken Hornstein kenh at cmf.nrl.navy.mil
Mon Jan 8 13:11:05 EST 2024


>krb5 version 1.21.2 fails to build on Darwin macOS 14.2.1 with an 
>undefined symbol linker error when linking 'client':
>   "_cc_initialize", referenced from:
>       _api_macos_gen_new in libkrb5.a(cc_api_macos.o)

Are you building static libraries?  I am not sure that is officially
supported (I realize you can SPECIFY --disable-shared but then weird
stuff like this will happen).

What is supposed to happen is "-framework Kerberos" should be added
when the SHARED library is built to pull in a reference to the Kerberos
framework which contains the symbol cc_initialize, and that may not be
happening properly when static libraries are being used (I am unclear
if it is even possible to specify a reference to another library when
building a static library on MacOS X).  You might be able to work around
this by adding "-framework Kerberos" to the autoconf LIBS or LDFLAGS
variable.

--Ken


More information about the krbdev mailing list