我正在尝试交叉编译openvpn 2.3.4和polarssl 1.3.7,用于debian wheezy上的arm。polarssl已编译并安装在我的主目录中,但openvpn找不到库和头,因此显示以下错误消息:

checking polarssl version... configure: error: PolarSSL 1.2.x required and must be 1.2.10 or later

Polarssl的配置如下:
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吗?

最佳答案

polarssl 1.3.x版本破坏了1.2.x系列的api,openvpn还没有更新到新的api,因此暂时您必须使用polarssl1.2.x或其他加密后端(openssl)。

关于linux - 与PolarSSL交叉编译OpenVPN吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24037963/

10-10 15:04