[csw-maintainers] libcurl and 64 bit on x86

Chad Harp harpchad at opencsw.org
Wed Apr 15 02:06:11 CEST 2009


Looks like I'll need to wrap the curlbuild.h

Fedora does this:

#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include "curlbuild-32.h"
#elif __WORDSIZE == 64
#include "curlbuild-64.h"
#else
#error "Unknown word size"
#endif


We don't (I think) have a __WORDSIZE macro anywhere, so I'm thinking  
of this:

#if defined __arch64__ || defined __sparcv9
#include "curlbuild-64.h"
#else
#include "curlbuild-32.h"
#endif

I'm not positive about my macro choices, anybody want to shoot some  
holes in that before I commit (will it still include the 32 bit  
headers when building 32bit on a 64bit platform)?

On Apr 14, 2009, at 4:57 PM, Chad Harp wrote:

> Ok, I wrote a quick program to test it and am able to replicate  
> this. I'll work on a new build to fix the sparcv9.
>
> I'll take a look at openldap and see what's involved.  All I really  
> need is the library, I don't want to take on the server and other  
> stuff as I don't use it (and wouldn't be able to test it).
>
> Dagobert Michelsen wrote:
>> Hi Chad,
>> Am 14.04.2009 um 22:41 schrieb Chad Harp:
>>> Possibly, but the current version of curl doesn't include amd64  
>>> support since openldap doesn't have amd64 libraries (Mantis 3028).
>> Damn. Want to take a look at OpenLDAP?
>>> So I suspect you'd run into linking problems even if you were  
>>> able to compile.
>>>
>>> Did you have any issue with sparcv9?
>> Yes, same issue:
>>> gmake[4]: Entering directory `/home/dam/mgar/pkg/vorbistools/ 
>>> trunk/work/build-isa-sparcv9/vorbis-tools-1.2.0/ogg123'
>>> source='http_transport.c' object='http_transport.o' libtool=no \
>>>         DEPDIR=.deps depmode=none /bin/bash ../depcomp \
>>>         /opt/studio/SOS11/SUNWspro/bin/cc -DSYSCONFDIR=\"/opt/csw/ 
>>> etc\" -DLOCALEDIR=\"/opt/csw/share/locale\" -DHAVE_CONFIG_H -I. - 
>>> I.. -I/opt/csw/include   -I/opt/csw/include   -I/opt/csw/include - 
>>> I/opt/csw/include -D_REENTRANT  -I../include -I../intl  -I/opt/ 
>>> csw/include -D_REENTRANT  -xO4 -fast -w -fsimple -native -xcg92 - 
>>> xO3 -xarch=v9 -I/opt/csw/include -c http_transport.c
>>> "/opt/csw/include/curl/curlrules.h", line 134: zero or negative  
>>> subscript
>>> cc: acomp failed for http_transport.c
>> Best regards
>>   -- Dago
>
> _______________________________________________
> maintainers mailing list
> maintainers at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/maintainers




More information about the maintainers mailing list