Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

parrot no longer compiles on win32

0 views
Skip to first unread message

Goplat

unread,
Mar 13, 2004, 6:12:17 PM3/13/04
to perl6-i...@perl.org
The latest cvs of parrot fails to compile on mingw32,

In file included from include/parrot/parrot.h:258,
from src/utils.c:23:
include/parrot/misc.h:44: warning: `struct tm' declared inside parameter list
include/parrot/misc.h:44: warning: its scope is only this definition or
declaration, which is probably not what you want
src/utils.c:633: warning: `struct tm' declared inside parameter list
src/utils.c:634: conflicting types for `tm_to_array'
include/parrot/misc.h:44: previous declaration of `tm_to_array'
src/utils.c: In function `tm_to_array':
src/utils.c:637: dereferencing pointer to incomplete type

configure didn't define PARROT_HAS_HEADER_SYSTIME, even though I do have
sys/time.h. I also have time.h, PARROT_HAS_HEADER_TIME is defined but nothing
seems to uses it...

ops/sys.ops: In function `Parrot_gmtime_s_i':
ops/sys.ops:169: warning: implicit declaration of function `gmtime_r'
ops/sys.ops:170: warning: implicit declaration of function `asctime_r'
ops/sys.ops: In function `Parrot_localtime_s_i':
ops/sys.ops:178: warning: implicit declaration of function `localtime_r'

msvcrt doesn't have these functions (it uses thread-local storage to make the
traditional functions thread safe)

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

Leopold Toetsch

unread,
Mar 14, 2004, 7:09:04 AM3/14/04
to Goplat, perl6-i...@perl.org
Goplat <mrnob...@yahoo.com> wrote:
> ops/sys.ops:169: warning: implicit declaration of function `gmtime_r'
> ops/sys.ops:170: warning: implicit declaration of function `asctime_r'
> ops/sys.ops:178: warning: implicit declaration of function `localtime_r'

> msvcrt doesn't have these functions (it uses thread-local storage to make the
> traditional functions thread safe)

I've moved these functions now all to platform/generic/time.c with a
C<Parrot_> prefix, so that people can implement proper wrappers around
in their relevant platform subdir.

leo

Goplat

unread,
Mar 14, 2004, 12:41:55 PM3/14/04
to perl6-i...@perl.org

Thanks, with that and the attached patch to add said wrappers (and include
time.h) parrot compiles once again.

win32_r.patch

Leopold Toetsch

unread,
Mar 14, 2004, 1:11:23 PM3/14/04
to Goplat, perl6-i...@perl.org, poni...@perl.org
Goplat <mrnob...@yahoo.com> wrote:

> --- Leopold Toetsch <l...@toetsch.at> wrote:
>> Goplat <mrnob...@yahoo.com> wrote:
>> > ops/sys.ops:169: warning: implicit declaration of function `gmtime_r'
>> > ops/sys.ops:170: warning: implicit declaration of function `asctime_r'
>> > ops/sys.ops:178: warning: implicit declaration of function `localtime_r'
>>
>> > msvcrt doesn't have these functions (it uses thread-local storage to make
>> > the traditional functions thread safe)
>>
>> I've moved these functions now all to platform/generic/time.c with a
>> C<Parrot_> prefix, so that people can implement proper wrappers around
>> in their relevant platform subdir.

> Thanks, with that and the attached patch to add said wrappers (and include


> time.h) parrot compiles once again.

Thanks, applied.
leo

0 new messages