cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: use libcurl with polarssl, linking issue.

From: Paul Bakker <paul_curl_at_brainspark.nl>
Date: Wed, 26 Sep 2012 22:43:42 +0200

Hi Emanuel,

Did you use --without-ssl?
That is required as far as I know!

If I do:
./configure --without-ssl --with-polarssl
make

then:
src/curl -V

says:

curl 7.27.0 (i686-pc-linux-gnu) libcurl/7.27.0 PolarSSL/1.1.4 zlib/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s
rtsp smtp smtps telnet tftp
Features: IPv6 Largefile SSL libz

Best regards,
Paul Bakker

On 19-9-2012 23:54, Emanuel Patern wrote:
> 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
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-26