linux - 针对 ARM9 与 ssl 交叉编译 cURL 时出现问题

标签 linux gcc curl arm cross-compiling

我正在尝试交叉编译curl并启用ARM9的ssl选项,但不知何故我无法启用它。

我之前交叉编译过 openssl,然后尝试使用 ssl 选项运行 ./configure:

CPPFLAGS="-I/home/asphantix/Tools/owa33a/openssl/openssl-1.0.1c/include" LDFLAGS="-L/home/asphantix/Tools/owa33a/openssl/openssl-1.0.1c/ssl" ./configure --with-ssl --without-ca-bundle --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi --build=x86_64-unknown-linux-gnu

它贯穿始终,但这就是我每次得到的:

configure: Configured to build curl/libcurl:

curl version:     7.28.1
Host setup:       arm-none-linux-gnueabi
Install prefix:   /usr/local
Compiler:         arm-none-linux-gnueabi-gcc
SSL support:      no      (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl} )
SSH support:      no      (--with-libssh2)
zlib support:     no      (--with-zlib)
krb4 support:     no      (--with-krb4*)
GSSAPI support:   no      (--with-gssapi)
SPNEGO support:   no      (--with-spnego)
TLS-SRP support:  no      (--enable-tls-srp)
resolver:         default (--enable-ares / --enable-threaded-resolver)
ipv6 support:     no      (--enable-ipv6)
IDN support:      no      (--with-{libidn,winidn})
Build libcurl:    Shared=yes, Static=yes
Built-in manual:  enabled
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors:   enabled (--disable-verbose)
SSPI support:     no      (--enable-sspi)
ca cert bundle:   no
ca cert path:     no
LDAP support:     no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)
LDAPS support:    no      (--enable-ldaps)
RTSP support:     enabled
RTMP support:     no      (--with-librtmp)
metalink support: no      (--with-libmetalink)
Protocols:        DICT FILE FTP GOPHER HTTP IMAP POP3 RTSP SMTP TELNET TFTP

我还尝试设置以下内容:

export AR=arm-none-linux-gnueabi-ar
export AS=arm-none-linux-gnueabi-as
export LD=arm-none-linux-gnueabi-ld
export RANLIB=arm-none-linux-gnueabi-ranlib
export CC=arm-none-linux-gnueabi-gcc
export NM=arm-none-linux-gnueabi-nm

这是配置日志: https://dl.dropbox.com/u/3985208/config.log

我错过了什么吗?

最佳答案

您似乎没有 crypto 库。

configure:20710: checking for CRYPTO_lock in -lcrypto
configure:20732: arm-none-linux-gnueabi-gcc -o conftest -O2 -Wno-system-   headers -isystem /home/asphantix/Tools/owa33a/openssl/openssl-1.0.1c/include  -   L/home/asphantix/Tools/owa33a/openssl/openssl-1.0.1c/ssl  conftest.c -lcrypto  -lrt >&5
/opt/crosstool/arm-none-linux-gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
...
configure:20741: result: no

关于linux - 针对 ARM9 与 ssl 交叉编译 cURL 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14695184/

相关文章:

javascript - PHP - file_get_contents 未获取所有内容(尝试使用curl,相同的结果)

python - 如何在不使用 pyCURL 的情况下获取信息(请求)

java - 在 Linux 中以 Java 代码执行 FFmpeg 命令的问题

linux - 如何在 Ubuntu 中更改已安装 GDB 的配置以交叉调试 ARM-LINUX

c - 为什么当我尝试实现一个函数来反转数组时,我的输入数组和输出数组都损坏了?

c - Execl 返回错误地址

使用 cURL + JSON Lib 的 C++ POST 请求

linux - 从 CentOS Journalctl 获取特定的 PID

php - VIM 在打开 PHP 文件时捕获致命信号 SEGV

android - 有没有办法让 Android NDK-build 使用更新版本的 gcc?