[20474] in Kerberos_V5_Development
Re: krb 1.21.2 build fails on macOS 14.2.1
daemon@ATHENA.MIT.EDU (Ken Hornstein via krbdev)
Mon Jan 8 14:19:40 2024
Message-Id: <202401081919.408JJRm3014987@hedwig.cmf.nrl.navy.mil>
To: Norm Green <norm.green@gemtalksystems.com>
cc: krbdev@mit.edu
In-Reply-To: <29afffbf-8b94-4419-8d4b-9ebcbc72235c@gemtalksystems.com>
MIME-Version: 1.0
Date: Mon, 08 Jan 2024 14:19:27 -0500
From: Ken Hornstein via krbdev <krbdev@mit.edu>
Reply-To: Ken Hornstein <kenh@cmf.nrl.navy.mil>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
>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.
I would caution you that this is not guaranteed to work; one thing
that leaps out to me is that the shared library build uses -DSHARED
when building library objects which seems to affect the way library
constructors are built/used; it MAY work now, but there's no assurance
it will continue to do so in the future.
If your goal is to just to get everything to build and when you construct
the shared library later you'll add a dependency to the Kerberos framework
you could consider a linker option like -U cc_initialize (there might
be more functions you'll need than that one, though).
--Ken
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev