[bug-notifications] [curl 0003781]: Please fix includes for 64 bit
Mantis Bug Tracker
noreply at opencsw.org
Fri Aug 7 18:24:23 CEST 2009
The following issue has been CLOSED
======================================================================
http://www.opencsw.org/mantis/view.php?id=3781
======================================================================
Reported By: dam
Assigned To: dam
======================================================================
Project: curl
Issue ID: 3781
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2009-07-27 07:08 CEST
Last Modified: 2009-08-07 18:24 CEST
======================================================================
Summary: Please fix includes for 64 bit
Description:
Please release a curl package as you already fixed. It is desperately
needed.
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
======================================================================
----------------------------------------------------------------------
(0006527) dam (manager) - 2009-08-07 18:24
http://www.opencsw.org/mantis/view.php?id=3781#c6527
----------------------------------------------------------------------
The issue is fixed in 7.19.5,REV=2009.08.07
More information about the bug-notifications
mailing list