Default Camellia Encryption Support in Build

Arpit Srivastava arpit.orb at gmail.com
Fri Jun 21 09:47:02 EDT 2013


Thanks for replies. I am getting following errors AND unable to identify
the root cause:

/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function map_mode:camellia.c:78:
error: undefined reference to 'EVP_camellia_128_cbc'
/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function map_mode:camellia.c:80:
error: undefined reference to 'EVP_camellia_256_cbc'
/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function
cts_encr:camellia.c:182: error: undefined reference to 'Camellia_set_key'
/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function
cts_encr:camellia.c:203: error: undefined reference to
'Camellia_cbc_encrypt'
/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function
cts_decr:camellia.c:236: error: undefined reference to 'Camellia_set_key'
/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function
cts_decr:camellia.c:259: error: undefined reference to
'Camellia_cbc_encrypt'
/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function
krb5int_camellia_cbc_mac:camellia.c:327: error: undefined reference to
'Camellia_set_key'
/home/arpit.srivastava/standalone-ndk-toolchain-9/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
../../../lib/libk5crypto.a(camellia.o): in function
krb5int_camellia_cbc_mac:camellia.c:346: error: undefined reference to
'Camellia_ecb_encrypt'

Arpit


On Thu, Jun 20, 2013 at 9:03 PM, Nate Rosenblum <nater at maginatics.com>wrote:

> > > 2. When I built Krb5 1.10 with OpenSSL - it built fine. But when I am
> > > trying to build Krb5 1.11.3 the same way with OpenSSL - I am getting
> some
> > > Camellia related linking errors. (I am building the lib for Android
> > > platform and using 1.0.0a version of OpenSSL for libssl and libcrypto)
> >
> > You are running configure using "--with-crypto-impl=openssl"?  What
> > are the specific errors that you are getting?
>
> I ran into this back in May and emailed the list about it. There are only
> three colliding symbols (Camellia_{Ekeygen, EncryptBlock, DecryptBlock}),
> and you can easily patch them out of the header as they're only used within
> the translation unit. I didn't send a pull request for this because it's a
> bit hacky; renaming the symbols is probably the way to go.
>
> patch as gist, if it'll get you unblocked:
> https://gist.github.com/flandr/5823800
>
> Best,
>
> --nate
>


More information about the krbdev mailing list