CVS Build Question -Solved!

Geoff Burling (
Mon, 14 Jan 2002 14:43:21 -0800 (PST)

Sasha Vasko wrote:

> I belive it could be fixed rather easily, but its kinda low on my
> priorities right now, so if you'd like to go and fix it I'll happily
> apply the patch.

The solution was simple, but finding it was hard:

[geoff@joan lib]$ diff -Naur parse.c.orig parse.c | more
--- parse.c.orig        Mon Jan 14 14:30:37 2002
+++ parse.c     Mon Jan 14 14:32:17 2002
@@ -2,6 +2,7 @@
 #include <string.h>
 #include <stdlib.h>

+#include <X11/Xlib.h>  /* For compatibility with older versions of XFree */
 #include <X11/Xutil.h>

 #include "../configure.h"

Older versions of Xutil.h do not have an include statement to Xlib.h --
although there is a comment to include Xlib.h if you use Xutil.h!
And there was no command to include Xutil.h until after 1.8.11 (was this in 
Jan Fedak's patches?)

NOTE: The manual for using GNU CC does contain a section addressing
parse errors with X11/Xlib.h & X11/Xutil.h. None of the fixes in that
section solve this problem. (Although running gcc with the flags
``-O2  -Wall -fPIC -traditional" will fill your disk partition with the
error message ``/usr/include/bits/string2.h:1101: macro or `#include' recursion too deep"
if you tee the output to a log file.)


The AfterStep Window Manager for X User's Mailing List