cURL / Mailing Lists / curl-library / Single Mail


Re: AIX multithreaded issue - CURLE_COULDNT_CONNECT

From: Daniel Stenberg <>
Date: Mon, 7 Jun 2004 14:31:24 +0200 (CEST)

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] =

     Daniel Stenberg -- --
      Dedicated custom curl help for hire:
Received on 2004-06-07