[cairo] Solaris and Xrender.h
Chris Wilson
chris at chris-wilson.co.uk
Fri Apr 18 09:04:32 PDT 2008
On Thu, 2008-04-17 at 17:33 -1000, Kevin Brammer wrote:
> I'm trying to build Cairo (tried 1.2 and 1.4 versions) against a
> Solaris 8 box. I haven't downloaded 1.6 yet, but it should be
> irrelevant to the question.
>
> Is Xrender.h needed in order to compile?
With 1.6, cairo should compile without Xrender. You may have to
specify ./configure --disable-xlib-xrender, but I think the configure
script should automatically detect the absence of a suitable Xrender.h.
However, there have been reports of a compile failure with Solaris, and
the currently recommended workaround is:
--- src/cairo-ps-surface.c.old 2008-04-17 15:14:36.996930195 +0200
+++ src/cairo-ps-surface.c 2008-04-17 15:15:36.527525972 +0200
@@ -41,6 +41,7 @@
*/
#define _BSD_SOURCE /* for ctime_r(), snprintf(), strdup() */
+#define _POSIX_PTHREAD_SEMANTICS
#include "cairoint.h"
#include "cairo-ps.h"
#include "cairo-ps-surface-private.h"
Hope this helps.
--
Chris Wilson
More information about the cairo
mailing list