2
我正嘗試在Ubuntu 14.04上從源代碼安裝OpenSSL 1.0.2k。我已經有1.0.1f版本。 ./config中後,我跑使,並得到一條消息:來自不同OpenSSL版本的衝突頭文件
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
我猜你是不是揭示了一些有趣的信息。我無法在發行版本和Master都可用的計算機上覆制(並使用「OpenSSL_1_0_2-stable」)。在'config'和'make'之前,你是否把'cd'放入'openssl-1.0.2k'目錄?路徑中是否有空白?另請參閱OpenSSL wiki上的[編譯和安裝](https://wiki.openssl.org/index.php/Compilation_and_Installation)。 – jww
是的,我在'config'和'make'之前將'cd'寫入'openssl-1.0.2k'。路徑中沒有空白。謝謝,我會一次又一次地讀OpenSSL wiki,直到我不明白爲止。 – Jago
消息*「#include使用來自不同OpenSSL版本的頭文件!」*來自['util/selftest.pl'](https://github.com/openssl/openssl/blob/OpenSSL_1_0_2-stable/util/selftest特等)。你的問題有一些缺失。請顯示您正在使用的確切命令,並請回顯您的PATH並將其添加到問題中。我想我們也需要看到'。/ config'的完整輸出。 – jww