[openbox] alpha4 compile problem on Intel Sunos 5.8
Christian von Mueffling
cvm at aiss.de
Mon Aug 11 08:24:17 EDT 2003
On Fri, Aug 08, 2003 at 11:10:14AM -0400, Ben Jansens wrote:
> > Compiling openbox-3.0-alpha4.tar.gz on Solaris 5.8 (intel) with
> > gcc-3.2.1 I get the following errors.
>
> [snip]
>
> > In file included from /users/dau/local/gnu/xrender-0.8.3/include/X11/extensions/Xrender.h:33,
> > from /users/dau/local/gnu/xft-2.1.2/include/X11/Xft/Xft.h:43,
> > from render/render.h:5,
> > from render/color.c:1:
> > /usr/openwin/include/X11/Xutil.h:56: warning: ignoring #pragma ident
> > /usr/openwin/include/X11/Xutil.h:117: parse error before "Bool"
>
> Looks like I need to include <X11/Xlib.h> before Xft.h in
> render.h. Could you try that out and confirm if it works. If so
> it'll appear in the next alpha.
Jep, seems that was it. But I had to add these inclusions on some
other places too, I attached the diff.
Thanks,
--
chris
-------------- next part --------------
*** ./kernel/dispatch.h.orig Mon Aug 11 14:20:30 2003
--- ./kernel/dispatch.h Mon Aug 11 14:21:10 2003
***************
*** 1,9 ****
#ifndef __dispatch_h
#define __dispatch_h
- #include "misc.h"
-
#include <X11/Xlib.h>
struct _ObClient;
--- 1,9 ----
#ifndef __dispatch_h
#define __dispatch_h
#include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+ #include "misc.h"
struct _ObClient;
*** ./render/font.h.orig Mon Aug 11 14:17:02 2003
--- ./render/font.h Mon Aug 11 14:18:28 2003
***************
*** 1,6 ****
--- 1,7 ----
#ifndef __font_h
#define __font_h
#define _XFT_NO_COMPAT_ /* no Xft 1 API */
+ #include <X11/Xlib.h>
#include <X11/Xft/Xft.h>
#include "render.h"
#include "geom.h"
*** ./render/render.h.orig Mon Aug 11 14:18:02 2003
--- ./render/render.h Mon Aug 11 14:17:41 2003
***************
*** 2,9 ****
#define __render_h
#define _XFT_NO_COMPAT_ /* no Xft 1 API */
- #include <X11/Xft/Xft.h>
#include <X11/Xlib.h>
#include <glib.h>
typedef union _RrTextureData RrTextureData;
--- 2,9 ----
#define __render_h
#define _XFT_NO_COMPAT_ /* no Xft 1 API */
#include <X11/Xlib.h>
+ #include <X11/Xft/Xft.h>
#include <glib.h>
typedef union _RrTextureData RrTextureData;
*** ./render/test.c.orig Mon Aug 11 14:21:59 2003
--- ./render/test.c Mon Aug 11 14:22:10 2003
***************
*** 1,5 ****
--- 1,6 ----
#include <stdio.h>
#include <X11/Xlib.h>
+ #include <X11/Xutil.h>
#include <X11/extensions/shape.h>
#include <string.h>
#include <stdlib.h>
More information about the openbox
mailing list