[cairo-bugs] [Bug 4815] New: src/cairo.h needs <X11/Xlib.h>
included on Solaris 9
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Oct 19 16:17:04 PDT 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=4815
Summary: src/cairo.h needs <X11/Xlib.h> included on Solaris 9
Product: cairo
Version: 1.0.0
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: cworth at cworth.org
ReportedBy: david.kirkby at onetel.net
QAContact: cairo-bugs at cairographics.org
Hope you don't mind, but here is another problem, I found on Solaris 9 on SPARC.
I'm not the only one to have problems compiling cairo 1.0.0 on Solaris - see
http://lists.freedesktop.org/archives/cairo/2004-August/001734.html
The person who wrote that told me how he got around the problem. It was
necessary to add
#include <X11/Xlib.h>
at the top of src/cairo.h
If one looks at the file /usr/include/X11/Xutil.h on Solaris, it clearly states
<X11/Xlib.h> must be included.
sparrow / # grep "You must" /usr/include/X11/Xutil.h
/* You must include <X11/Xlib.h> before including this file */
If you write a "hello world" program, but include <X11/Xutil.h> without
<X11/Xlib.h> and it will fail to compile. Add in <X11/Xlib.h> before the
<X11/Xutil.h> and it will compile.
I've tried hacking taking this onto cairo 1.0.2 and it did not work, although I
have not spent much time on it. Perhaps it needs to go into another file, in
additon (or instead of) src/cairo.h
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the cairo-bugs
mailing list