From: | Gilles Espinasse <g.esp@free.fr> |
To: | krb5-bugs@mit.edu |
Subject: | [PATCH] krb5 : fix t_fortuna linking with openssl |
Date: | Wed, 1 May 2013 14:00:29 +0200 |
CC: | Gilles Espinasse <g.esp@free.fr> |
When using configure --with-crypto-impl=openssl
make check fail on t_fortuna linking with
gcc -L../../../lib -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/lib -O2 -fno-strict-aliasing -Wl,--hash-style=gnu -o t_fortuna t_fortuna.o -lk5crypto -lkrb5support
/usr/bin/ld: t_fortuna.o: undefined reference to symbol 'AES_set_encrypt_key'
/usr/bin/ld: note: 'AES_set_encrypt_key' is defined in DSO /usr/lib/libcrypto.so.1.0.0 so try adding it to the linker command line
/usr/lib/libcrypto.so.1.0.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Adding LIBS fix that on 1.10 and 1.11 and master branch
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
---
src/lib/crypto/krb/Makefile.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/crypto/krb/Makefile.in b/src/lib/crypto/krb/Makefile.in
index 4ef9b85..ff288cb 100644
--- a/src/lib/crypto/krb/Makefile.in
+++ b/src/lib/crypto/krb/Makefile.in
@@ -215,7 +215,7 @@ check-unix:: t_fortuna
fi
t_fortuna: t_fortuna.o $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
- $(CC_LINK) -o t_fortuna t_fortuna.o $(K5CRYPTO_LIB) $(SUPPORT_LIB)
+ $(CC_LINK) -o t_fortuna t_fortuna.o $(K5CRYPTO_LIB) $(SUPPORT_LIB) $(LIBS)
clean-unix:: clean-libobjs
$(RM) t_fortuna.o t_fortuna t_fortuna.output
--
1.7.2.5
make check fail on t_fortuna linking with
gcc -L../../../lib -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/lib -O2 -fno-strict-aliasing -Wl,--hash-style=gnu -o t_fortuna t_fortuna.o -lk5crypto -lkrb5support
/usr/bin/ld: t_fortuna.o: undefined reference to symbol 'AES_set_encrypt_key'
/usr/bin/ld: note: 'AES_set_encrypt_key' is defined in DSO /usr/lib/libcrypto.so.1.0.0 so try adding it to the linker command line
/usr/lib/libcrypto.so.1.0.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Adding LIBS fix that on 1.10 and 1.11 and master branch
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
---
src/lib/crypto/krb/Makefile.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/crypto/krb/Makefile.in b/src/lib/crypto/krb/Makefile.in
index 4ef9b85..ff288cb 100644
--- a/src/lib/crypto/krb/Makefile.in
+++ b/src/lib/crypto/krb/Makefile.in
@@ -215,7 +215,7 @@ check-unix:: t_fortuna
fi
t_fortuna: t_fortuna.o $(SUPPORT_DEPLIB) $(CRYPTO_DEPLIB)
- $(CC_LINK) -o t_fortuna t_fortuna.o $(K5CRYPTO_LIB) $(SUPPORT_LIB)
+ $(CC_LINK) -o t_fortuna t_fortuna.o $(K5CRYPTO_LIB) $(SUPPORT_LIB) $(LIBS)
clean-unix:: clean-libobjs
$(RM) t_fortuna.o t_fortuna t_fortuna.output
--
1.7.2.5