cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: compiling error

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 23 Mar 2002 17:08:08 +0100 (MET)

On Fri, 22 Mar 2002, Delabre Jean-Philippe wrote:

> I tried to compile both curl-7.9.5 and curl-7.9.6-pre2, but I obtain the
> same compilation error, both with gcc-2.95.3 and gcc-3.0.2. I use
> glibc-2.2.4, openssl-0.9.6b, libtool-1.4.2, on a very modified LFS 3.0
>
> /usr/gcc-2.95.3/bin/gcc -g -O2 -Wl,-rpath-link -Wl,/usr/X11R6/lib -o
> .libs/curl main.o hugehelp.o urlglob.o writeout.o -L/usr/X11R6/lib
> ../lib/.libs/libcurl.so -lssl -lcrypto -ldl -Wl,--rpath
> -Wl,/pkgs/curl-7.9.5/lib
>
> ../lib/.libs/libcurl.so: undefined reference to `ENGINE_load_private_key'
> ../lib/.libs/libcurl.so: undefined reference to `ENGINE_set_default'
> ../lib/.libs/libcurl.so: undefined reference to `ENGINE_free'
> ../lib/.libs/libcurl.so: undefined reference to `ENGINE_by_id'
> collect2: ld returned 1 exit status
>
> Is there something to do?

You have the engine.h file in the openssl include directory. It is taken as a
sign that you have installed ENGINE support for your OpenSSL and then libcurl
compiles to enable that.

It seems as if you have the include file for ENGINE, but not the lib...

To work around this:

Change the HAVE_OPENSSL_ENGINE_H define in your lib/config.h file to *not* be
defined.

Recompile the whole lot.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-23