cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: configure checkiing for ssl-engine

From: <rmitchell_at_eds.com>
Date: Thu, 03 Oct 2002 23:59:40 -0500

The problem is that RedHat included the engine version of openssl in their devel
rpm. What you can do is make sure that you don't have the openssl-devel rpm
installed. Some thing like:

    rpm -q -a | grep openssl

If you see 'openssl-devel-0.9.6b' in the list, you need to remove it:

    rpm -e openssel-devel-0.9.6b

That gets rid of the openssl header files from /usr/include. Now if you go back to
curl and reconfigure/rebuild, you should be OK:

    ./configure --prefix=/usr/local --with-ssl=/usr/local
    make clean; make

Ralph Mitchell

Zvi Har'El wrote:

> Hi,
>
> I have a problem with the way configure for the existence of openssl-engine. I
> have a machine with two versions of openssl installed: One is OpenSSL 0.9.6b
> [engine] 9 Jul 2001 (which originate at the Red Hat package openssl-0.9.6b-28)
> in /usr/lib and /usr/include, and another one, OpenSSL 0.9.6g 9 Aug 2002 (which
> I compiled from openssl-0.9.6g.tar.gz), in /usr/local/ssl/lib and
> /usr/local/ssl/include. I wish to build curl with the latter version openssl
> and to put it in /usr/local/bin (with RedHat's supplied curl, curl-7.9.7-2, in
> /usr/bin). I ran configure with the option --with-ssl=/usr/local/ssl. However
> there was a problem: /usr/local/ssl doesn't have an engine, and the configure
> check for engine is done by looking for the file openssl/engine.h. The check
> should have failed, but it succeeded, since this file does exist in the compiler
> search path: It does not exist in /usr/local/ssl/include, but it does exist in
> /usr/include! I had to fix the problem by editing lib/config.h manually to
> remove the line #define HAVE_OPENSSL_ENGINE_H, but I hope a better way to
> check for engine can be found, e.g., compiling and linking a small function
> which invokes an entry in libcrypto which exists only in the engine version,
> e.g. ENGINE_init. This may be done by the following patch:
>
> --- configure.in.orig Tue Sep 3 10:29:39 2002
> +++ configure.in Thu Oct 3 18:06:50 2002
> @@ -484,7 +484,7 @@
>
> dnl Check for the OpenSSL engine header, it is kind of "separated"
> dnl from the main SSL check
> - AC_CHECK_HEADERS(openssl/engine.h)
> + AC_CHECK_FUNC(ENGINE_init, AC_CHECK_HEADERS(openssl/engine.h), )
>
> AC_SUBST(OPENSSL_ENABLED)
>
> I regret to say that I didn't check this patch since my RedHat machine has
> autoconf 2.13, and curl requires at least 2.50.
>
> Best,
>
> Zvi.
>
> --
> Dr. Zvi Har'El mailto:rl_at_math.technion.ac.il Department of Mathematics
> tel:+972-54-227607 Technion - Israel Institute of Technology
> fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/ Haifa 32000, ISRAEL
> "If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
> Thursday, 27 Tishri 5763, 3 October 2002, 5:16PM
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET