Closed
Bug 303574
Opened 19 years ago
Closed 15 years ago
MinGW build problem in icalrecur.c
Categories
(Calendar :: Internal Components, defect)
Calendar
Internal Components
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mbockelkamp, Assigned: mbockelkamp)
References
Details
Attachments
(3 files, 2 obsolete files)
|
672 bytes,
patch
|
mvl
:
first-review-
|
Details | Diff | Splinter Review |
|
675 bytes,
patch
|
mvl
:
first-review-
|
Details | Diff | Splinter Review |
|
950 bytes,
patch
|
Details | Diff | Splinter Review |
The build of the calendar as part of the suite fails because of a double definition of intptr_t. Patch follows.
| Assignee | ||
Comment 1•19 years ago
|
||
Assignee: gray → mbockelkamp
Status: NEW → ASSIGNED
Attachment #191699 -
Flags: first-review?(mostafah)
Comment 2•19 years ago
|
||
Comment on attachment 191699 [details] [diff] [review] Patch So mingw doesn't define HAVE_INTPTR_T, but does have it? Sounds like a mingw problem to me.
| Assignee | ||
Comment 3•19 years ago
|
||
I just found <http://sourceforge.net/tracker/index.php?func=detail&aid=1020042&group_id=5470&atid=305470>, where the suggestion is to use #if HAVE_STDINT_H #define HAVE_UINTPTR_T 1 #define HAVE_INTPTR_T 1 #endif Since LXR sais HAVE_UINTPTR_T isn't used anywhere, that line can be removed. Patch follows.
| Assignee | ||
Comment 5•19 years ago
|
||
Comment on attachment 191752 [details] [diff] [review] Patch 2 (workaround stolen from python, untested) That was totally wrong
Attachment #191752 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•19 years ago
|
||
This works with MinGW but I'm not able to test other compilers. Note: LXR sais icalrecur.c is the only place where HAVE_INTPTR_T is used, so setting it in the "#ifdef HAVE_STDINT_H" block above doesn't pay.
| Assignee | ||
Updated•19 years ago
|
Attachment #191753 -
Flags: first-review?(mostafah)
| Assignee | ||
Updated•19 years ago
|
Attachment #191699 -
Flags: first-review?(mostafah)
Comment 7•19 years ago
|
||
Comment on attachment 191753 [details] [diff] [review] Patch 3 Moving review request to mvl, since he is still actively reviewing stuff and has also already commented in this bug.
Attachment #191753 -
Flags: first-review?(mostafah) → first-review?(mvl)
Updated•18 years ago
|
Component: libical → Internal Components
Comment 8•18 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: Internal Components. Be afraid for your sanity!
QA Contact: libical → base
Comment 10•18 years ago
|
||
Comment on attachment 191753 [details] [diff] [review] Patch 3 you want to test for having intptr_t, not for some random other thing.
Attachment #191753 -
Flags: first-review?(mvl) → first-review-
Comment 12•18 years ago
|
||
Comment on attachment 255212 [details] [diff] [review] Alternate patch This patch is exactly the same as attachment 191699 [details] [diff] [review], and does not address my comment in comment 2 (or explains why that comment is wrong)
Comment 13•18 years ago
|
||
Comment on attachment 255212 [details] [diff] [review] Alternate patch This is exactly the same patch as the first patch here, which i already rejected in comment 2.
Attachment #255212 -
Flags: first-review?(mvl) → first-review-
| Assignee | ||
Comment 14•18 years ago
|
||
MVL, please give me a hint how you want this to be fixed. This seems to be a trivial thing, since MinGW supports intptr_t but just doesn't define HAVE_INTPTR_T. Would a test that checks for MinGW first be more welcome?
Comment 15•18 years ago
|
||
IMO we should not stick to HAVE_STDINT_H, HAVE_INTPTR_T at all. When including stdint.h, I assume intptr_t being defined. So we should IMO more cleanly just work around msvc using stddef.h (testing against _MSC_VER) while all other platforms use stdint.h. However, I don't know what compiler is used on XP_BEOS, but I suspect we could just use one of those two headers...
Comment 16•15 years ago
|
||
Can this bug be marked as resolved INVALID/WONTFIX/WORKSFORME? btw Such a fix should be made in libical directly (http://sourceforge.net/projects/freeassociation/) in the first place.
Comment 17•15 years ago
|
||
I think this should go into libical if it has not already, and since we haven't heard anything in 2 years, lets close the bug. Thanks for trying though! Feel free to reopen if someone is still experiencing this issue.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•