krb 1.21.2 build fails on macOS 14.2.1
Norm Green
norm.green at gemtalksystems.com
Mon Jan 8 12:46:29 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':
/usr/bin/gcc -L../../../lib -dynamic
-I/Users/normg/gs371/slow43/openssl/install43/include
-I/Users/normg/gs371/slow43/openssl/install43/include/openssl -pipe
-fPIC -D_GNU_SOURCE -D_REENTRANT -D_XOPEN_SOURCE -fno-strict-aliasing -g
-L/Users/normg/gs371/slow43/openssl/install43/lib -o client client.o
rpc_test_clnt.o \
-lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
-lkrb5support -lcrypto -lresolv -lcrypto -lssl
Undefined symbols for architecture arm64:
"_cc_initialize", referenced from:
_api_macos_gen_new in libkrb5.a(cc_api_macos.o)
_api_macos_ptcursor_next in libkrb5.a(cc_api_macos.o)
_make_cache in libkrb5.a(cc_api_macos.o)
(maybe you meant: _krb5int_cc_initialize, _krb5_cc_initialize )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
gnumake[3]: *** [client] Error 1
gnumake[2]: *** [all-recurse] Error 1
gnumake[1]: *** [all-recurse] Error 1
gnumake: *** [all-recurse] Error 1
Build machine info:
normg at oink>sw_vers
ProductName: macOS
ProductVersion: 14.2.1
BuildVersion: 23C71
normg at oink>uname -a
Darwin oink.gemtalksystems.com 23.2.0 Darwin Kernel Version 23.2.0: Wed
Nov 15 21:59:33 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8112 arm64
I can send or post the complete build log if needed.
It appears the undefined symbol (cc_initialize) originates in the module
./src/lib/krb5/ccache/cc_api_macos.c, which I do not see in previous
source tree versions.
I can test a patch if someone can provide one.
Norm Green
GemTalk Systems
More information about the krbdev
mailing list