cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Problem installing with ssl engine

From: Adam Ryan <adamr_at_powersurge.net>
Date: Tue, 23 Jul 2002 14:43:03 -0500

Sorry for the long post, here is most of the information about openssl
from the config.log, also I just installed OpenSSL 0.9.6d [engine] 9 May
2002

Still getting the error.

Please let me know if you find something below that is causing the
problem, or if I am missing anything that I can provide.

Thanks,
Adam

Here is more from the config.log
And also the configure script:

checking for CRYPTO_lock in -lcrypto... yes
checking for CRYPTO_add_lock in -lcrypto... yes
checking for SSL_connect in -lssl... yes
checking for openssl/x509.h... yes
checking for openssl/rsa.h... yes
checking for openssl/crypto.h... yes
checking for openssl/pem.h... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for openssl/engine.h... yes
checking for RAND_status... yes
checking for RAND_screen... no
checking for RAND_egd... yes

onfigure:10035: checking for CRYPTO_lock in -lcrypto
configure:10062: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lcrypto -ldl >&5
configure:10065: $? = 0
configure:10068: test -s conftest
configure:10071: $? = 0
configure:10082: result: yes
configure:10157: checking for CRYPTO_add_lock in -lcrypto
configure:10184: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lcrypto -ldl >&5

configure:10187: $? = 0
configure:10190: test -s conftest
configure:10193: $? = 0
configure:10204: result: yes
configure:10215: checking for SSL_connect in -lssl
configure:10242: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lssl -lcrypto -ldl >&5
configure:10245: $? = 0
configure:10248: test -s conftest
configure:10251: $? = 0
configure:10262: result: yes
configure:10351: checking for openssl/x509.h
configure:10361: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10367: $? = 0
configure:10386: result: yes
configure:10351: checking for openssl/rsa.h
configure:10361: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10367: $? = 0
configure:10386: result: yes
configure:10351: checking for openssl/crypto.h
configure:10361: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10367: $? = 0
configure:10386: result: yes
configure:10351: checking for openssl/crypto.h
configure:10361: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10367: $? = 0
configure:10386: result: yes
configure:10351: checking for openssl/pem.h
configure:10361: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10367: $? = 0
configure:10386: result: yes
configure:10351: checking for openssl/ssl.h
configure:10361: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10367: $? = 0
configure:10386: result: yes
configure:10351: checking for openssl/err.h
configure:10361: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10367: $? = 0
configure:10386: result: yes
configure:10451: checking for openssl/engine.h
configure:10461: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:10467: $? = 0
configure:10486: result: yes
configure:10510: checking for RAND_status
configure:10547: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lssl -lcrypto -ldl >&5
configure:10550: $? = 0
configure:10553: test -s conftest
configure:10556: $? = 0
configure:10566: result: yes
configure:10510: checking for RAND_screen
configure:10547: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lssl -lcrypto -ldl >&5
/tmp/ccjnDvMC.o: In function `main':
/web/SHIT/curl-7.9.8/configure:10538: undefined reference to
`RAND_screen'
collect2: ld returned 1 exit status
configure:10550: $? = 1
configure: failed program was:
#line 10516 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char RAND_screen (); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2

configure:10566: result: no
configure:10510: checking for RAND_egd
configure:10547: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lssl -lcrypto -ldl >&5
configure:10550: $? = 0
configure:10553: test -s conftest
configure:10556: $? = 0
configure:10566: result: yes
configure:10600: checking for gethostbyname_r
configure:10637: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lssl -lcrypto -ldl >&5
configure:10640: $? = 0
configure:10643: test -s conftest
configure:10646: $? = 0
configure:10656: result: yes
configure:10663: checking if gethostbyname_r takes 3 arguments
configure:10688: gcc -c -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c >&5
configure:10675: warning: `struct hostent_data' declared inside
parameter list
configure:10675: warning: its scope is only this definition or
declaration, which is probably not what you want.
configure:10675: conflicting types for `gethostbyname_r'
/usr/include/netdb.h:169: previous declaration of `gethostbyname_r'
configure:11105: result: no
configure:11107: checking if gethostbyaddr_r takes 8 arguments
configure:11135: gcc -c -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c >&5
configure:11138: $? = 0
configure:11141: test -s conftest.o
configure:11144: $? = 0
configure:11147: result: yes
configure:11175: checking for inet_ntoa_r
configure:11212: gcc -o conftest -g -O2
-I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include -L/usr/include/openssl/ssl/lib
conftest.c -lssl -lcrypto -ldl >&5
/tmp/ccZG7GZm.o: In function `main':
/web/SHIT/curl-7.9.8/configure:11203: undefined reference to
`inet_ntoa_r'
collect2: ld returned 1 exit status
configure:11215: $? = 1
configure: failed program was:
#line 11181 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char inet_ntoa_r (); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
configure:11663: $? = 0
configure:11682: result: yes
configure:11647: checking for sys/sockio.h
configure:11657: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:11654:24: sys/sockio.h: No such file or directory
configure:11663: $? = 1
configure: failed program was:
#line 11653 "configure"
#include "confdefs.h"
#include <sys/sockio.h>
configure:11682: result: no
configure:11647: checking for sys/stat.h
configure:11657: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:11663: $? = 0
configure:11682: result: yes
configure:11647: checking for sys/types.h
configure:11657: gcc -E -I/usr/include/openssl/ssl/include/openssl
-I/usr/include/openssl/ssl/include conftest.c
configure:11663: $? = 0
configure:11682: result: yes

-----Original Message-----
From: Götz Babin-Ebell [mailto:babinebell_at_trustcenter.de]
Sent: Tuesday, July 23, 2002 1:27 PM
To: Adam Ryan
Cc: curl-users_at_lists.sourceforge.net
Subject: Re: Problem installing with ssl engine

Adam Ryan schrieb:
> Hello,
Hello Adam,

>
> When installing --with-ssl, I get these errors below:
> Does anyone know why I would get these errors?
>
> ==From make
>
> make[2]: Entering directory `/web/SHIT/curl-7.9.8/src'
> /bin/sh ../libtool --mode=link gcc -g -O2 -o curl main.o
hugehelp.o
> urlglob.o writeout.o writeenv.o ../lib/libcurl.la -lssl -lcrypto -ldl
> gcc -g -O2 -o .libs/curl main.o hugehelp.o urlglob.o writeout.o
> writeenv.o ../lib/.libs/libcurl.so -lssl -lcrypto -ldl
> .../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
> make[2]: *** [curl] Error 1
> make[2]: Leaving directory `/web/SHIT/curl-7.9.8/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/web/SHIT/curl-7.9.8/src'
> make: *** [all-recursive] Error 1

Hm.

You seem to have in your system 2 OpenSSL libraries:

One OpenSSL with crypto engine support and
another one without crypto engine support.

Or:

You have one OpenSSL without engine but in the include
directory an engine.h header...

> config.log
[...]
naturally the needed information was missing... :-(
The test the OpenSSL engine stuff would be better...

BTW:For all that want to build cURL with OpenSSL 0.9.7:
        Passphrase protected engine keys don't work.
        Sometime (I hope) soon I'll have the time to send a patch...

Bye

Goetz

-- 
Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0,  Fax: +49-(0)40 80 80 26 -126
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-07-23