cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: AIX multithreaded issue - CURLE_COULDNT_CONNECT

From: Joseph Anto Smith <antosmith_at_yahoo.com>
Date: Mon, 7 Jun 2004 09:31:00 -0500 (CDT)

Daniel,
 
    That worked! The link was helpful. Thanks a lot.
 
Joseph

----- Original Message -----

 
On Mon, 7 Jun 2004, Joseph Anto Smith wrote:

> I should have included the details earlier... The exact funtion is connect
in connect.c The funny thing is connect returns -1 indicating it failed but the
errno is not set. I suppose this has something to do with threads and I am stuck
in how to proceed further with the debugging.

This is really out of my league. This is clearly a matter of reading up on AIX
details and figure out what you need to do to build multi-threaded programs for
your operating system.

According to web page[1] I found:

AIX maintains two kinds of libraries on the system, thread-safe and non-thread
safe. Multi-threaded libraries on AIX follow a different naming convention, Usually
the multi-threaded library names are followed with "_r". For example, libc.a is
single threaded whereas libc_r.a is multi-threaded.

To make your multi-threaded application run on AIX, you must ensure that you
do not have a "system library path" in your LIBPATH environment variable when
you run the application.

[1] =
http://www.slac.stanford.edu/exp/glast/ground/software/extDoc/xerces/1_7_0/doc/faq-build.html#faq-8

-- 
Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-06-07