[csw-maintainers] libcurl and 64 bit on x86

Chad Harp harpchad at opencsw.org
Wed Apr 15 16:43:12 CEST 2009


I've put a new curldevel package in testing (sparc only, since x86 
doesn't have 64-bit support right now).

curldevel-7.19.4,REV=2009.04.15-SunOS5.8-sparc-CSW.pkg.gz

It's wraps curlbuild.h using the following:

/* Allow 32 and 64 bit headers to coexist */
#if defined __arch64__ || defined __sparcv9
#include "curlbuild-64.h"
#else
#include "curlbuild-32.h"
#endif

I opted not to make the changes to curlbuild.h because there were 
several lines (other than the sizeof(long) we discussed) that would have 
to change (see diff below).  I think this will be more easily adapted to 
future versions.



harpchad at build8s (CSW)$ diff curlbuild-32.h curlbuild-64.h
108c108
< #define CURL_PULL_SYS_TYPES_H 1
---
 > /* #undef CURL_PULL_SYS_TYPES_H */
122c122
< #define CURL_PULL_INTTYPES_H 1
---
 > /* #undef CURL_PULL_INTTYPES_H */
128c128
< #define CURL_SIZEOF_LONG 4
---
 > #define CURL_SIZEOF_LONG 8
131c131
< #define CURL_TYPEOF_CURL_OFF_T int64_t
---
 > #define CURL_TYPEOF_CURL_OFF_T long
137c137
< #define CURL_FORMAT_CURL_OFF_T "lld"
---
 > #define CURL_FORMAT_CURL_OFF_T "ld"
140c140
< #define CURL_FORMAT_CURL_OFF_TU "llu"
---
 > #define CURL_FORMAT_CURL_OFF_TU "lu"
143c143
< #define CURL_FORMAT_OFF_T "%lld"
---
 > #define CURL_FORMAT_OFF_T "%ld"
149c149
< #define CURL_SUFFIX_CURL_OFF_T LL
---
 > #define CURL_SUFFIX_CURL_OFF_T L
152c152
< #define CURL_SUFFIX_CURL_OFF_TU ULL
---
 > #define CURL_SUFFIX_CURL_OFF_TU UL


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




More information about the maintainers mailing list