cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Building 64 bit version of libcurl on Solaris 10 SPARC

From: Michael Leong <michael_at_voltage.com>
Date: Tue, 21 Jul 2009 10:33:37 -0700

Perhaps I spoke too soon. I got it to build a 64 bit library, which I can use to link up an executable, but when it actually gets into the curl code, it causes a bus error.

It seems that there's something wrong about the byte alignment in this library I've generated. I also compiled it with an option to allow misaligned byte accesses, and then it just crashes, so there's something bigger wrong here.

Anyone else run into byte alignment problems on a 64 bit library, or have any idea how to get rid of them?

Thanks again.
-Michael
________________________________________
From: Michael Leong
Sent: Monday, July 20, 2009 3:01 PM
To: libcurl development
Subject: RE: Building 64 bit version of libcurl on Solaris 10 SPARC

Thanks for the answers, all.

I got it all working with:

CC=cc CFLAGS="-xtarget=ultra -xarch=v9 -xstrconst -xdepend -Xa -xcode=pic32" ./configure --with-ssl=[path to ssl] --prefix=[prefix] --enable-shared --disable-ldap --disable-ipv6 --enable-thread --without-libidn --without-zlib --without-libssh2

Hope this helps someone else. Thanks again.
-Michael

-----Original Message-----
From: Stefan Teleman [mailto:stefan.teleman_at_gmail.com]
Sent: Monday, July 20, 2009 12:32 PM
To: libcurl development
Cc: Michael Leong
Subject: Re: Building 64 bit version of libcurl on Solaris 10 SPARC

It's been in OpenSolaris and Nevada (future Solaris 11) since July
2007, both 32- and 64-bit, both SPARC and Intel.

--Stefan

-----

On Mon, Jul 20, 2009 at 14:03, Kamil Dudka<kdudka_at_redhat.com> wrote:
> On Monday 20 of July 2009 19:49:51 Michael Leong wrote:
>> Hi all,
>>
>> I'm trying to build a 64 bit version of libcurl on a Solaris 10 SPARC
>> machine. I'm using the configure command:
>>
>> CC=cc CFLAGS=-m64 ./configure --with-ssl=[path to OpenSSL] --prefix=[prefix
>> path]
>
> Try to look at the output of ./configure, especially for "build system type"
> and "host system type". Maybe you want to tweak these configure options.
>
>> The library compiles fine, but when I try to link it against a .o file, the
>> linker complains about libcurl, saying: "wrong ELF class: ELFCLASS32". This
>> seems to mean that it's not really building a 64 bit library.
>>
>> Has anyone else had this problem or been able to build a 64 bit library on
>> this platform? I assume it's something to do with a compiler flag I'm
>> missing or something, but I don't know what it is.
>
> I've never tried to build libcurl on that platform.
>
> Kamil
>

--
Stefan Teleman
stefan.teleman_at_gmail.com
Received on 2009-07-21