krb 1.21.2 build fails on macOS 14.2.1

Norm Green norm.green at gemtalksystems.com
Mon Jan 8 14:02:29 EST 2024


Thanks Ken. Adding "-framework Kerberos" to the linker line resolves the 
issue.

I am indeed building the static libs because I use them to create the 
shared library later.

Norm Green


On 1/8/2024 10:11 AM, Ken Hornstein wrote:
>> 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