cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLOPT_LOCALPORT option broken ?!

From: Senthil Raja Velu <Senthil.Raja_at_ss8.com>
Date: Mon, 23 Feb 2009 23:03:28 -0800

Hi Markus,

I tried getaddrinfo and it worked for me;
testsvr% ./getaddrinfo 127.0.0.1 10.0.53.1 2001:4860:0:1001::68
resolving 127.0.0.1
         2 127.0.0.1
resolving 10.0.53.1
         2 10.0.53.1
resolving 2001:4860:0:1001::68
         26 2001:4860:0:1001::68
testsvr%

So I will proceed with compiling curl with ares enabled.

FYI, Here is my existing configuration.

  curl version: 7.19.3
  Host setup: sparc-sun-solaris2.10
  Install prefix: /vob/3prty_LI/CURL/7.19.3_Sol2.10/curl
  Compiler: cc
  SSL support: enabled (OpenSSL)
  SSH support: no (--with-libssh2)
  zlib support: enabled
  krb4 support: no (--with-krb4*)
  GSSAPI support: no (--with-gssapi)
  SPNEGO support: no (--with-spnego)
  c-ares support: no (--enable-ares)
  ipv6 support: enabled
  IDN support: no (--with-libidn)
  Build libcurl: Shared=yes, Static=yes
  Built-in manual: enabled
  Verbose errors: enabled (--disable-verbose)
  SSPI support: no (--enable-sspi)
  ca cert bundle: no
  ca cert path: no
  LDAP support: enabled (OpenLDAP)
  LDAPS support: no (--enable-ldaps)

Thanks,
Senthil.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
koettermarkus_at_gmx.de
Sent: Monday, February 23, 2009 6:54 PM
To: libcurl development
Subject: Re: CURLOPT_LOCALPORT option broken ?!

Hi,

Senthil Raja Velu wrote:

this messages
> * Trying 10.20.4.19... getaddrinfo(3) failed for bge0:0
suggests you are using curl without ares and threads for name resolving.

this would actually match my own setup:

   curl version: 7.19.4-20090219
   Host setup: x86_64-unknown-linux-gnu
   Install prefix: /opt/curl
   Compiler: gcc
   SSL support: enabled (OpenSSL)
   SSH support: no (--with-libssh2)
   zlib support: enabled
   krb4 support: no (--with-krb4*)
   GSSAPI support: no (--with-gssapi)
   SPNEGO support: no (--with-spnego)
   c-ares support: no (--enable-ares)
   ipv6 support: enabled
   IDN support: enabled
   Build libcurl: Shared=yes, Static=yes
   Built-in manual: enabled
   Verbose errors: enabled (--disable-verbose)
   SSPI support: no (--enable-sspi)
   ca cert bundle: /etc/ssl/certs/ca-certificates.crt
   ca cert path: no
   LDAP support: enabled (OpenLDAP)
   LDAPS support: no (--enable-ldaps)

As I guess the problem to be within Solaris 10 getaddrinfo behaviour, a
small programm is attached.

If it works, there try compiling curl with --enable-ares, and see if
problem persists.

The program:

gcc -o getaddrinfo getaddrinfo.c

execute

./getaddrinfo 127.0.0.1 10.0.53.1 2001:4860:0:1001::68

should give:

resolving 127.0.0.1
         2 127.0.0.1
resolving 10.0.53.1
         2 10.0.53.1
resolving 2001:4860:0:1001::68
         10 2001:4860:0:1001::68

So, please
1) try the attached program and sent the results
2) compile curl with ares, and see if problem persists

Daniel, are you aware of *any* problems using the Curl_resolv functions
to resolve hostnames on Solaris10?

MfG
Markus
Received on 2009-02-24