cURL / Mailing Lists / curl-library / Single Mail

curl-library

64 vs 32 bits (was Re: (no subject))

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 7 Oct 2005 20:09:20 +0200 (CEST)

On Fri, 7 Oct 2005, Brian Krings wrote:

> I am using cURL in a C application that works fine... until I got on a 64
> bit SLES 9 zSeries system. My application is a 31 bit application

Most computer architectures are 32 or 64 bits, but you have a 31 bit one?

> that attempts to dynamically load the /usr/lib/libcur.so (which in this case
> is a link to /usr/lib64/libcurl.2.0.2) I don't fail the dynamic link, but
> cURL seems to hang when the HTTP request is made

Hang how? How do you use libcurl then? What libcurl version is this? How did
you build the lib?

> but loading a 64bit .so with a 31 bit app is a not good anyway.

So why do you do it?

> So, my question is, is their a compat package for cURL on this platform 64
> bit SLES 9 zSeries ?

How did you get libcurl in the first place? If you're using a lib delivered by
your Linux distro, why don't you ask your Linux distro provider? The curl
project provides (lib)curl as source code and you can easily build your own
from this package for your OS of choice.

If you build it yourself, why don't you simply build a plain and simple 64bit
version if you run 64bit? I don't even understand how your app can be 32bit in
a 64bit environment. And what do you mean with libcurl being 64bit but your
app isn't?

curl needs no "compat package" as it already is compatible with itself!

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