Subject: problem compiling MesaLib
To: netbsd-help <netbsd-help@netbsd.org>
From: Rob Hamrick <rph@chaosnet.org>
List: netbsd-help
Date: 10/05/2005 07:50:27
I've been trying to update gtk2 on NetBSD 2.0.2 (macppc) and pkgsrc has been
having trouble building MesaLib. Is there anything I should check before
sending a PR?
This is an excerpt of where the errors begin:
mkdir drivers/x11/.libs
cc -c -I../../include -I../../src/mesa -I../../src/mesa/main
-I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl
-I../../src/mesa/shader -I../../src/mesa/swrast
-I../../src/mesa/swrast_setup -O2 -I/usr/pkg/include -I/usr/include
-DUSE_XSHM -DPTHREADS drivers/x11/glxapi.c -fPIC -DPIC -o
drivers/x11/.libs/glxapi.o
In file included from drivers/x11/glxapi.h:32,
from drivers/x11/glxapi.c:38:
../../include/GL/glx.h:38:22: X11/Xlib.h: No such file or directory
../../include/GL/glx.h:39:23: X11/Xutil.h: No such file or directory
In file included from drivers/x11/glxapi.h:32,
from drivers/x11/glxapi.c:38:
../../include/GL/glx.h:179: error: parse error before "GLXPixmap"
../../include/GL/glx.h:179: warning: data definition has no type or storage class
../../include/GL/glx.h:180: error: parse error before "GLXDrawable"
../../include/GL/glx.h:180: warning: data definition has no type or storage class
../../include/GL/glx.h:183: error: parse error before "GLXFBConfigID"
../../include/GL/glx.h:183: warning: data definition has no type or storage class
[...etc.]