[20472] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: krb 1.21.2 build fails on macOS 14.2.1

daemon@ATHENA.MIT.EDU (Ken Hornstein via krbdev)
Mon Jan 8 13:11:25 2024

Message-Id: <202401081811.408IB6Uw014143@hedwig.cmf.nrl.navy.mil>
To: Norm Green <norm.green@gemtalksystems.com>
cc: krbdev@mit.edu
In-Reply-To: <bdae9daa-a38a-43f0-ae62-cf5b5355cf50@gemtalksystems.com>
MIME-Version: 1.0
Date: Mon, 08 Jan 2024 13:11:05 -0500
From: Ken Hornstein via krbdev <krbdev@mit.edu>
Reply-To: Ken Hornstein <kenh@cmf.nrl.navy.mil>
Content-Type: text/plain; charset="utf-8"
Errors-To: krbdev-bounces@mit.edu
Content-Transfer-Encoding: 8bit

>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
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev


home help back first fref pref prev next nref lref last post