other-licenses/libical fails to build on AIX

RESOLVED FIXED

Status

Calendar
Internal Components
RESOLVED FIXED
16 years ago
12 years ago

People

(Reporter: Philip K. Warren, Assigned: John Gray)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
libical fails to build properly on AIX. In particular, the
other-licenses/libical/src/libical/icalderived* files do not build. I have
downloaded the latest beta of libical from sourceforge (beta4), and that builds
without any problems on AIX.

Comment 1

15 years ago
mostafah:
Is it possible to update libical in mozilla CVS that AIX can build with
--enable-calendar, please ?

Comment 2

15 years ago
Do we know where it is failing so I have an idea of which part to update and
make sure whether just updating fixes this problem? Some configure tweaks may be
needed.
(Reporter)

Comment 3

15 years ago
I will get this information for you shortly. I need to rebuild with calendar 
support enabled to see where the build breaks again.
(Reporter)

Comment 4

15 years ago
First error:
"/home/pkw/sb/mozilla/trunk/mozilla/other-licenses/libical/src/libical/icalcomponent.c",
line 824.41: 1506-022 (S) "__tm_gmtoff" is not a member of "struct tm".
gmake[3]: *** [icalcomponent.o] Error 1

Second error (after fixing icalcomponent.c error):
"icalderivedparameter.c", line 230.38: 1506-334 (S) Identifier parameter_map has
already been defined on line 58 of "icalderivedparameter.c".
"icalderivedparameter.c", line 257.33: 1506-334 (S) Identifier icalparameter_map
has already been defined on line 132 of "icalderivedparameter.c".

Third error (after fixing icalderivedparameter.c error):
"icalderivedproperty.c", line 251.32: 1506-334 (S) Identifier property_map has
already been defined on line 62 of "icalderivedproperty.c".
"icalderivedproperty.c", line 318.37: 1506-334 (S) Identifier enum_map has
already been defined on line 142 of "icalderivedproperty.c".

Fourth error (after fixing icalderivedproperty.c errors):
"icalderivedvalue.c", line 300.34: 1506-334 (S) Identifier value_map has already
been defined on line 63 of "icalderivedvalue.c".

Fifth error (after fixing icalderivedvalue.c errors):
"/home/pkw/sb/mozilla/trunk/mozilla/other-licenses/libical/src/libical/icalyacc.h",
line 18.9: 1506-213 (S) Macro name TRUE cannot be redefined.
"/home/pkw/sb/mozilla/trunk/mozilla/other-licenses/libical/src/libical/icalyacc.h",
line 19.9: 1506-213 (S) Macro name FALSE cannot be redefined.
(Reporter)

Comment 6

15 years ago
Everything almost compiles now, with the exception of the two errors below:

1) "icalderivedproperty.c", line 2006.19: 1506-343 (S) Redeclaration of
icalproperty_value_kind_to_kind differs from previous declaration on line 97 of
"/home/pkw/sb/mozilla/trunk/mozilla/other-licenses/libical/src/libical/icalproperty.h".

2)
"/home/pkw/sb/mozilla/trunk/mozilla/other-licenses/libical/src/libical/icalyacc.h",
line 18.9: 1506-213 (S) Macro name TRUE cannot be redefined.
"/home/pkw/sb/mozilla/trunk/mozilla/other-licenses/libical/src/libical/icalyacc.h",
line 19.9: 1506-213 (S) Macro name FALSE cannot be redefined.
(Reporter)

Comment 7

15 years ago
Created attachment 143745 [details] [diff] [review]
Patch v1

Change the icalproperty_value_kind_to_kind function to match the one in the
derived code. Remove the TRUE/FALSE defines from icalyacc.h as they conflict
with the ones from AIX's sys/types.h file and don't seem to be referenced
anywhere.

Comment 8

15 years ago
Patch checked in.
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED
(Reporter)

Comment 9

15 years ago
I am going to go ahead and turn on calendar building for the AIX Tinderbox now.
I will mark this bug as verified once it has built successfully on the Tinderbox.

Updated

12 years ago
QA Contact: gurganbl → libical
Component: libical → Internal Components
The bugspam monkeys have been set free and are feeding on Calendar :: Internal Components. Be afraid for your sanity!
QA Contact: libical → base
You need to log in before you can comment on or make changes to this bug.