2013-02-04 38 views
0

我想交叉編譯curl與ARM9啓用ssl選項,但不知何故我無法啓用它。麻煩交叉編譯用於ARM9的ssl cURL

我穿越編譯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 

這裏的的config.log: https://dl.dropbox.com/u/3985208/config.log

我錯過了什麼嗎?

回答

0

它看起來像你沒有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 
+0

是的,庫中包含錯誤。我得到它編譯。然而這是錯誤的。目標主機上出現總線錯誤。 目標是arm926ej-s。我放棄交叉編譯curl ... – mherwig

+0

@mherwig發表另一個問題,不要放棄。但具體而言,描述性的。 – auselen