curl-library
use libcurl with polarssl, linking issue.
Date: Wed, 19 Sep 2012 14:54:56 -0700 (PDT)
Hello;
I tried to build curl with polarssl instead of openssl. Here what I did :
Libcurl version : 7.27.0
Polar ssl version : 1.1.4
To build polar ssl I did :
make CC=gcc APPS=
make DESTDIR=/c/pssl install
To build curl I did :
perl Configure CFLAGS="-Os -ffunction-sections -fdata-sections -flto" LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections -flto -Os" --without-libidn,zlib,ldap-lib --disable-ipv6,manual,shared,verbose,debug,gopher --enable-hidden-symbols --enable-static --prefix=/c/curl --with-polarssl=/c/polarssl
Now Everything looks okay, I have added licurl.a, libpolarssl.a into my project with link option -DCURL_STATICLIB. After Compile I get those errors during linking :
=================================================
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_step2+0x4b)||undefined reference to `ssl_handshake'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_step2+0xd6)||undefined reference to `ssl_get_ciphersuite'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_step2+0xf8)||undefined reference to `ssl_get_verify_result'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_step2+0x1e1)||undefined reference to `x509parse_cert_info'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_common+0xb4)||undefined reference to `havege_init'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_common+0x103)||undefined reference to `x509parse_crtfile'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_common+0x148)||undefined reference to `x509parse_crtfile'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_common+0x18e)||undefined reference to `x509parse_keyfile'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$polarssl_connect_common+0x1ed)||undefined reference to `x509parse_crlfile'|
...
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$Curl_polarssl_close+0x5f)||undefined reference to `ssl_free'|
...\libcurl.a(libcurl_la-polarssl.o):polarssl.c:(.text$Curl_polarssl_version+0x7)||undefined reference to `version_get_number'|
||=== Build finished: 31 errors, 0 warnings (0 minutes, 10 seconds)
=================================================
Did I miss something ?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-19