[20473] in Kerberos_V5_Development
Re: krb 1.21.2 build fails on macOS 14.2.1
daemon@ATHENA.MIT.EDU (Norm Green)
Mon Jan 8 14:02:49 2024
Message-ID: <29afffbf-8b94-4419-8d4b-9ebcbc72235c@gemtalksystems.com>
Date: Mon, 8 Jan 2024 11:02:29 -0800
MIME-Version: 1.0
Content-Language: en-US
To: Ken Hornstein <kenh@cmf.nrl.navy.mil>
Cc: krbdev@mit.edu
From: Norm Green <norm.green@gemtalksystems.com>
In-Reply-To: <202401081811.408IB6Uw014143@hedwig.cmf.nrl.navy.mil>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: krbdev-bounces@mit.edu
Content-Transfer-Encoding: 8bit
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
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev