cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2038004 ] Curl OpenSSL not compatible with 7.17 or 7.18

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 11 Aug 2008 22:24:23 +0000

Bugs item #2038004, was opened at 2008-08-04 22:32
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2038004&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SSL/TLS
Group: bad behaviour
>Status: Pending
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Anand Srivastava (sriv1211)
Assigned to: Daniel Stenberg (bagder)
Summary: Curl OpenSSL not compatible with 7.17 or 7.18

Initial Comment:
Not compatible with open ssl on these versions, as you can't compile as it doesn't recognise where the ssl lib is

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2008-08-12 00:24

Message:
Logged In: YES
user_id=1110
Originator: NO

This problem seems to be that his version of OpenSSL needs -ldl added to
LDFLAGS and our configure script doesn't try that (and I don't think we
should either since that'll only turn into a futile race we cannot win).
The only sane work-around for users is to use the pkg-config approach as
mentioned by Dan F. Thus, I no longer consider this a bug.

Of course a less generic work-around is to explicitly add -ldl to LDFLAGS
when invoking configure.

----------------------------------------------------------------------

Comment By: Anand Srivastava (sriv1211)
Date: 2008-08-08 11:48

Message:
Logged In: YES
user_id=2168169
Originator: YES

hi, sorry but i will be away until the 19th august, and won't be able to
do anything until then. would you be able to extend this bug thing? thanks.

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2008-08-08 03:59

Message:
Logged In: YES
user_id=236775
Originator: NO

This sounds like a duplicate of
https://sourceforge.net/tracker/index.php?func=detail&aid=2027161&group_id=976&atid=100976
Can you try the advice suggested there and report back?

----------------------------------------------------------------------

Comment By: Anand Srivastava (sriv1211)
Date: 2008-08-08 02:34

Message:
Logged In: YES
user_id=2168169
Originator: YES

first of all thankyou for assissting me. is there a single file curl is
looking for or a group of folders?
i installed openssl from source with the command ./config
--prefix=/usr/local/ssl . i don't know if it has shared libs, but i use
openssl with apache (if that is a shared lib)
config.log in 7.16 (ssl parts): ./configure --with-ssl:

...
configure:24412: checking OpenSSL options with pkg-config
configure:24431: result: no
...
configure:24601: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lcrypto -ldl
>&5
configure:24607: $? = 0
configure:24625: result: yes
configure:24647: checking for SSL_connect in -lssl
configure:24682: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lssl -lcrypto
-ldl >&5
configure:24688: $? = 0
configure:24706: result: yes
configure:24826: checking openssl/x509.h usability
configure:24843: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:24849: $? = 0
configure:24863: result: yes
configure:24867: checking openssl/x509.h presence
configure:24882: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:24888: $? = 0
configure:24902: result: yes
configure:24935: checking for openssl/x509.h
configure:24943: result: yes
configure:24826: checking openssl/rsa.h usability
configure:24843: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:24849: $? = 0
configure:24863: result: yes
configure:24867: checking openssl/rsa.h presence
configure:24882: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:24888: $? = 0
configure:24902: result: yes
configure:24935: checking for openssl/rsa.h
configure:24943: result: yes
configure:24826: checking openssl/crypto.h usability
configure:24843: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:24849: $? = 0
configure:24863: result: yes
configure:24867: checking openssl/crypto.h presence
configure:24882: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:24888: $? = 0
configure:24902: result: yes
configure:24935: checking for openssl/crypto.h
configure:24943: result: yes
configure:24826: checking openssl/pem.h usability
configure:24843: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:24849: $? = 0
configure:24863: result: yes
configure:24867: checking openssl/pem.h presence
configure:24882: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:24888: $? = 0
configure:24902: result: yes
configure:24935: checking for openssl/pem.h
configure:24943: result: yes
configure:24826: checking openssl/ssl.h usability
configure:24843: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:24849: $? = 0
configure:24863: result: yes
configure:24867: checking openssl/ssl.h presence
configure:24882: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:24888: $? = 0
configure:24902: result: yes
configure:24935: checking for openssl/ssl.h
configure:24943: result: yes
configure:24826: checking openssl/err.h usability
configure:24843: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:24849: $? = 0
configure:24863: result: yes
configure:24867: checking openssl/err.h presence
configure:24882: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:24888: $? = 0
configure:24902: result: yes
configure:24935: checking for openssl/err.h
configure:24943: result: yes
configure:25146: checking openssl/pkcs12.h usability
configure:25163: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:25169: $? = 0
configure:25183: result: yes
configure:25187: checking openssl/pkcs12.h presence
configure:25202: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:25208: $? = 0
configure:25222: result: yes
configure:25255: checking for openssl/pkcs12.h
configure:25263: result: yes
configure:25291: checking for ENGINE_init
configure:25347: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lssl -lcrypto
-ldl >&5
configure:25353: $? = 0
configure:25370: result: yes
configure:25389: checking openssl/engine.h usability
configure:25406: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
configure:25412: $? = 0
configure:25426: result: yes
configure:25430: checking openssl/engine.h presence
configure:25445: gcc -E -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c
configure:25451: $? = 0
configure:25465: result: yes
configure:25498: checking for openssl/engine.h
configure:25506: result: yes
configure:25523: checking for ENGINE_load_builtin_engines
configure:25579: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lssl -lcrypto
-ldl >&5
configure:25585: $? = 0
configure:25603: result: yes
configure:25630: checking for RAND_status
configure:25686: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lssl -lcrypto
-ldl >&5
configure:25692: $? = 0
configure:25710: result: yes
configure:25630: checking for RAND_screen
configure:25686: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lssl -lcrypto
-ldl >&5
***
configure:33379: gcc -c -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include conftest.c >&5
conftest.c:142: error: conflicting types for 'recv'
/usr/include/sys/socket.h:144: error: previous declaration of 'recv' was
here

####################

In 7.18: ./configure --with-ssl:
configure:26683: checking OpenSSL options with pkg-config
configure:26702: result: no
***
configure:26872: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lcrypto -lrt
>&5
configure:26878: $? = 0
configure:26896: result: yes
configure:26918: checking for SSL_connect in -lssl
configure:26953: gcc -o conftest -g -O2 -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include -L/usr/local/ssl/lib conftest.c -lssl -lcrypto
-l
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_bind_func':
dso_dlfcn.c:(.text+0x27d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2f9): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_bind_var':
dso_dlfcn.c:(.text+0x36d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x3e1): undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x44c): undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x4f5): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x546): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x56f): undefined reference to `dlerror'
collect2: ld returned 1 exit status
configure:27555: error: OpenSSL libs and/or directories were not found
where specified!

*** end of openssl stuff

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2008-08-08 00:30

Message:
Logged In: YES
user_id=1110
Originator: NO

Can you show us your config.log file, or at least the openssl related
parts of that file?

Do you have any shared OpenSSL libs in /usr/local/ssl/lib or are they
static only?

What if you run configure with just "--with-ssl" without specifying the
path? (You're using the default path anyway)

----------------------------------------------------------------------

Comment By: Anand Srivastava (sriv1211)
Date: 2008-08-06 00:54

Message:
Logged In: YES
user_id=2168169
Originator: YES

in 7.18: with a ./configure --with-ssl=/usr/local/ssl

checking for SSL_connect in -lssl... no
checking for ssl with RSAglue/rsaref libs in use... checking for
SSL_connect in -lssl... (cached) no
no
configure: error: OpenSSL libs and/or directories were not found where
specified!

in 7.16 with a ./configure --with-ssl=/usr/local/ssl
checking for CRYPTO_lock in -lcrypto... yes
checking for SSL_connect in -lssl... yes
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking openssl/pem.h usability... yes
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/pkcs12.h usability... yes
checking openssl/pkcs12.h presence... yes
checking for openssl/pkcs12.h... yes
checking for ENGINE_init... yes
checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for ENGINE_load_builtin_engines... yes
checking for RAND_status... yes
checking for RAND_screen... no
checking for RAND_egd... yes
checking for CRYPTO_cleanup_all_ex_data... yes
checking for SSL_get_shutdown... yes
checking for yaSSL using OpenSSL compatibility mode... no
configure: Added /usr/local/ssl/lib to LD_LIBRARY_PATH

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2008-08-04 22:42

Message:
Logged In: YES
user_id=1110
Originator: NO

Please be more specific about exactly what doesn't work and what you did
when it failed.

curl has been built against OpenSSL for ages and countless people have
done so using the curl 7.17 and 7.18 series as well. Me included.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2038004&group_id=976
Received on 2008-08-12

These mail archives are generated by hypermail.

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

File upload with ASP.NET