cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: OpenSSL thread-safety callbacks on AIX

From: Andrei Tarassov <andrei.tarassov_at_altiris.ee>
Date: Sat, 1 Oct 2005 21:12:00 +0200

I tried asking this question in the openssl mailing list, but did not
get any answer. Seems that the openssl team is not much interested in
AIX. But maybe somebody has experienced the same problems when using
curl?

In order to link with libgcc_s_pthread.a, you should be using the
-pthread option of gcc.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Saturday, October 01, 2005 21:02
To: libcurl development
Subject: Re: OpenSSL thread-safety callbacks on AIX

On Sat, 1 Oct 2005, Andrei Tarassov wrote:

> I am setting the callback functions, which should make openssl stuff
> thread-safe as described by
> http://www.openssl.org/docs/crypto/threads.html
> , but these functions just do not seem to be called on AIX. At the
> same time, the same test program works correctly (i.e. the callbacks
> are called) on Linux. Because of these problems our application
> crashes sometimes when downloading files from https servers in a
multi-threaded environment.
>
> Any ideas why this could happen?

I have no idea why. I never heard of this before. I would suggest that
you ask in a openssl-related forum as the question is about openssl
only.

> BTW, we've noticed that libcurl is linked to libgcc_s.a, while for
> thread safety it should be linked with libgcc_s_pthread.a. We tried to

> relink the library, but it did not help to solve the above mentioned
problem.

Hm, you have any idea why it linked with the wrong one or what we should
do to make it link with the "proper" one by default?

--
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
Received on 2005-10-01