首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用PolarSSL交叉编译OpenVPN?

用PolarSSL交叉编译OpenVPN?
EN

Stack Overflow用户
提问于 2014-06-04 20:50:53
回答 1查看 867关注 0票数 1

我正在尝试在Debian Wheezy上为ARM交叉编译OpenVPN 2.3.4和PolarSSL 1.3.7。PolarSSL已编译并安装在我的主目录中,但OpenVPN找不到库和头文件,因此显示以下错误消息:

代码语言:javascript
复制
checking polarssl version... configure: error: PolarSSL 1.2.x required and must be 1.2.10 or later

PolarSSL的配置如下:

代码语言:javascript
复制
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的位置的方法:

代码语言:javascript
复制
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吗?

EN

回答 1

Stack Overflow用户

发布于 2014-06-27 21:26:10

PolarSSL 1.3.x版本打破了1.2.x系列的应用程序接口,而OpenVPN还没有更新到新的应用程序接口,所以暂时你将不得不使用PolarSSL 1.2.x或其他加密后端(OpenSSL)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24037963

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档