Closed Bug 277569 Opened 20 years ago Closed 19 years ago

libical doesn't compile on WinXP using gcc - undefined reference to gmtime_r

Categories

(Calendar :: Internal Components, defect)

Other
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mattwillis, Assigned: mvl)

Details

Attachments

(1 file)

libical doesn't compile successfully on WinXP using gcc

The error I got was:
undefined reference to gmtime_r
../../dist/lib/libmozical.a(icaltime.o)(.text+0xq1bd): In function
icaltime_from_timet_with_zone

Commenting out this line was a workaround
http://lxr.mozilla.org/seamonkey/source/calendar/libical/config.h#8
nspr has gmtime_r. Maybe we should try to use that.
http://lxr.mozilla.org/seamonkey/source/nsprpub/pr/src/md/unix/ncr.c#248
someone on the newsgroup commented that this error appears with MSVC as well (I
have not tried to confirm)
nspr's impl of gmtime_r only exists on windows, so that won't work.
Attached patch workaround (checked in) — — Splinter Review
I checked in this patch.
I build regularly on WinXP using gcc.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: