cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: I've been trying to build curl multiple times but always fail :-(

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 24 Jul 2009 23:34:56 +0200 (CEST)

On Fri, 24 Jul 2009, harald54_at_gmx.de wrote:

> config.log is attached

The key is in this sequence from your log:

configure:24038: checking for SSL_connect in -lssl
configure:24070: gcc -o conftest -g0 -O2 -Wno-system-headers
-I/usr/local/ssl/include/openssl -I/usr/local/ssl/include
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lrt >&5
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x2f3): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x3e6): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x46b): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x53c): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x5a3): undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x688): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x6fd): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x744): undefined reference to `dlerror'

... clearly your lib needs -ldl to be specified, but libcurl's check doesn't
append that when checking. Try something like:

  LDFLAGS=-ldl ./configure [...]

... and see if that helps. If not, read the new config.log and go from there!

-- 
  / daniel.haxx.se
Received on 2009-07-24