我正在尝试在Debian Wheezy上为ARM交叉编译OpenVPN 2.3.4和PolarSSL 1.3.7。PolarSSL已编译并安装在我的主目录中,但OpenVPN找不到库和头文件,因此显示以下错误消息:
checking polarssl version... configure: error: PolarSSL 1.2.x required and must be 1.2.10 or laterPolarSSL的配置如下:
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -D CMAKE_INSTALL_PREFIX=/home/smith9073/polarssl -D ENABLE_PROGRAMS=OFF ../polarssl-1.3.7/这是我试图告诉OpenVPN关于PolarSSL的位置的方法:
CFLAGS="-I/home/smith9073/polarssl/include" LDFLAGS="-L/home/smith9073/polarssl/lib" ./configure --host=arm-linux-gnueabihf --with-crypto-library=polarssl
checking polarssl version... configure: error: PolarSSL 1.2.x required and must be 1.2.10 or later
LIBS="-lpolarssl" CFLAGS="-I/home/smith9073/polarssl/include" LDFLAGS="-L/home/smith9073/polarssl/lib" ./configure --host=arm-linux-gnueabihf --with-crypto-library=polarssl
checking polarssl version... configure: error: PolarSSL 1.2.x required and must be 1.2.10 or later
CFLAGS="-I/home/smith9073/polarssl/include" LIBS="-lpolarssl/home/smith9073/polarssl/lib" ./configure --host=arm-linux-gnueabihf --with-crypto-library=polarssl
configure: error: C compiler cannot create executables
CFLAGS="-I/home/smith9073/polarssl/include" LIBS="-l/home/smith9073/polarssl/lib" ./configure --host=arm-linux-gnueabihf --with-crypto-library=polarssl
configure: error: C compiler cannot create executables
POLARSSL_CFLAGS="-I/home/smith9073/polarssl/include" POLARSSL_LIBS="-l/home/smith9073/polarssl/lib" ./configure --host=arm-linux-gnueabihf --with-crypto-library=polarssl
checking polarssl version... configure: error: PolarSSL 1.2.x required and must be 1.2.10 or later
POLARSSL_CFLAGS="-I/home/smith9073/polarssl/include" POLARSSL_LIBS="-lpolarssl/home/smith9073/polarssl/lib" ./configure --host=arm-linux-gnueabihf --with-crypto-library=polarssl
checking polarssl version... configure: error: PolarSSL 1.2.x required and must be 1.2.10 or later有人知道为什么OpenVPN找不到PolarSSL吗?
发布于 2014-06-27 21:26:10
PolarSSL 1.3.x版本打破了1.2.x系列的应用程序接口,而OpenVPN还没有更新到新的应用程序接口,所以暂时你将不得不使用PolarSSL 1.2.x或其他加密后端(OpenSSL)。
https://stackoverflow.com/questions/24037963
复制相似问题