curl-library
RE: Building 64 bit version of libcurl on Solaris 10 SPARC
Date: Mon, 20 Jul 2009 15:01:11 -0700
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.comReceived on 2009-07-21