[cairo] Cairo-1.6.0 on solaris10 build failure
Andreas Tobler
andreast-list at fgznet.ch
Fri Apr 11 13:06:06 PDT 2008
Carl Worth wrote:
> On Fri, 11 Apr 2008 14:46:25 -0500, Dean Brundage wrote:
>> Please provide some pointers on this build failure. Thanks.
>>
>> cairo-ps-surface.c: In function `_cairo_ps_surface_emit_header':
>> cairo-ps-surface.c:110: error: too few arguments to function `ctime_r'
>>
>> The man page for ctim_r says it takes three arguments:
>> char *ctime_r(const time_t *clock, char *buf, int buflen);
>
> Not "the" man page. There are obviously more than one. The one on my
> system says:
>
> char *ctime_r(const time_t *timep, char *buf);
>
> ...
>
> CONFORMING TO
> POSIX.1-2001. C89 and C99 specify asctime(), ctime(), gmtime(), local‐
> time(), and mktime()
>
> NOTES
> The four functions asctime(), ctime(), gmtime() and localtime() return a
> pointer to static data and hence are not thread-safe. Thread-safe ver‐
> sions asctime_r(), ctime_r(), gmtime_r() and localtime_r() are specified
> by SUSv2, and available since libc 5.2.5.
>
> Suggested fix, anyone?
You might try to compile with:
-D_POSIX_PTHREAD_SEMANTICS | -D_POSIX_C_SOURCE=199506L
Should help
More information about the cairo
mailing list