cURL / Mailing Lists / curl-library / Single Mail

curl-library

Linking curl to openssl : configuration

From: Lyndon Hill <emptystate_at_yahoo.co.uk>
Date: Fri, 13 Feb 2009 01:27:22 +0000 (GMT)

Hi, I am trying to cross compile curl and link to openssl.

I already cross compiled a basic curl build and it tested fine. Now (I believe) I have cross compiled openssl - the build finished and .a files appeared as expected, I can't see any problems.

So now I am trying to configure curl as follows

./configure --host=arm-linux --with-ssl=/path/to/openssl-0.9.8j --with-zlib=/path/to/zlib-1.2.3

I have set the $CC to point to arm-linux-gcc. Configure fails here -

configure:23578: checking for CRYPTO_lock in -lcrypto
configure:23610: arm-linux-gcc -o conftest -g0 -O2 -Wno-unused -Wno-shadow -W
no-missing-declarations -Wno-missing-prototypes -I/path/to/openssl-0.9.8j/include/openssl -I/path/to/openssl-0.9.8j/include -L/path/to/openssl-0.9.8j/lib conftest.c -lcrypto >&5
configure:23616: $? = 0
configure:23634: result: yes
configure:23723: checking for SSL_connect in -lssl
configure:23755: arm-linux-gcc -o conftest -g0 -O2 -Wno-unused -Wno-shadow -Wno-missing-declarations -Wno-missing-prototypes -I/path/to/openssl-0.9.8j/include/openssl -I/path/to/openssl-0.9.8j/include -L/path/to/openssl-0.9.8j/lib conftest.c -lssl -lcrypto >&5
/path/to/openssl-0.9.8j/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.o(.text+0x58): undefined reference to `dlopen'
dso_dlfcn.o(.text+0x80): undefined reference to `dlerror'
dso_dlfcn.o(.text+0x104): undefined reference to `dlclose'
[ etc ]
collect2: ld returned 1 exit status
configure:23761: $? = 1
configure: failed program was:
| /* confdefs.h. */
[ etc ]
configure:24354: error: OpenSSL libs and/or directories were not found where
specified!

Does this mean I need to look at ssl again or is it something I can change in configure ?

Thanks

      
Received on 2009-02-13