[cairo-bugs] [Bug 15463] New: Build fails on Solaris because ctime_r requires three arguments

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 11 16:53:57 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=15463

           Summary: Build fails on Solaris because ctime_r requires three
                    arguments
           Product: cairo
           Version: 1.6.2
          Platform: SPARC
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: dhollen at mosis.org
         QAContact: cairo-bugs at cairographics.org


Building cairo on Solaris 10 fails, when compiled with Sun Studio 12.
The error is:

"cairo-ps-surface.c", line 110: prototype mismatch: 2 args passed, 3 expected

Line 110 is:

    ctime_r (&now, ctime_buf)

On Solaris, ctime_r takes a third argument.  Prototype is:

    char *ctime_r(const time_t *clock, char *buf, int buflen);

So on Solaris the correct call is:

    ctime_r (&now, ctime_buf, 26)

After I made this change, everything compiled, though there were a lot of
warnings like this (in many source files):

    "cairo-ps-surface.c", line 389: warning: enum type mismatch: op "="


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list