我试图从源代码在Ubuntu 14.04上安装OpenSSL 1.0.2k。我已经有了1.0.1f版本。在 ./ config 之后,我运行 make 并获取下一条消息:
cryptlib.c:1019:5: error: conflicting types for 'CRYPTO_memcmp'
int CRYPTO_memcmp(const volatile void *in_a, const volatile void *in_b, size_t len)
^
In file included from cryptlib.h:72:0,
from cryptlib.c:117:
/usr/include/openssl/crypto.h:582:5: note: previous declaration of 'CRYPTO_memcmp' was here
int CRYPTO_memcmp(const void *a, const void *b, size_t len);
制作报告显示:
#include uses headers from different OpenSSL version!
如何为编译器设置正确的标头?我的路径是:
usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
答案 0 :(得分:0)
对我来说,通过从PPA更新包到OpenSSL-1.0.2g来解决问题:
sudo add-apt-repository ppa:0k53d-karl-f830m/openssl
sudo apt-get update
sudo apt-get install openssl