Cannot build latest krb5 on Mac 10.9
Weijun Wang
weijun.wang at oracle.com
Thu Dec 19 09:52:56 EST 2013
Hi All
I just git cloned krb5 from github and cannot build it on my OS X 10.9
with Xcode 5. The error is
ld: warning: ignoring file builtin/aes/iaesx64.so, file was built for
unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being
linked (x86_64): builtin/aes/iaesx64.so
Undefined symbols for architecture x86_64:
"_k5_iDec128_CBC", referenced from:
_cbc_dec in aes.so
"_k5_iDecExpandKey128", referenced from:
_krb5int_aes_decrypt in aes.so
"_k5_iDec256_CBC", referenced from:
_cbc_dec in aes.so
"_k5_iEnc128_CBC", referenced from:
_cbc_enc in aes.so
"_k5_iDecExpandKey256", referenced from:
_krb5int_aes_decrypt in aes.so
"_k5_iEnc256_CBC", referenced from:
_cbc_enc in aes.so
"_k5_iEncExpandKey128", referenced from:
_krb5int_aes_encrypt in aes.so
"_k5_iEncExpandKey256", referenced from:
_krb5int_aes_encrypt in aes.so
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [libk5crypto.3.1.dylib] Error 1
make[1]: *** [all-recurse] Error 1
make: *** [all-recurse] Error 1
The so files in builtin/aes are
$ file lib/crypto/builtin/aes/*.so
lib/crypto/builtin/aes/aescrypt.so: Mach-O 64-bit object x86_64
lib/crypto/builtin/aes/aeskey.so: Mach-O 64-bit object x86_64
lib/crypto/builtin/aes/aestab.so: Mach-O 64-bit object x86_64
lib/crypto/builtin/aes/iaesx64.so: ELF 64-bit LSB relocatable, x86-64,
version 1 (SYSV), not stripped
So this iaesx64.so has a different arch. Could that be the problem?
Thanks
Max
More information about the krbdev
mailing list