Skip Menu |
 

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>
Download (untitled) / with headers
text/plain 1.2KiB
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
From: ghudson@mit.edu
Subject: git commit

Fix link line for t_fortuna

https://github.com/krb5/krb5/commit/14d4b4969c408f1191fac2595e7b5079424aac44
Author: Gilles Espinasse <g.esp@free.fr>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: 14d4b4969c408f1191fac2595e7b5079424aac44
Branch: master
src/lib/crypto/krb/Makefile.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)