Subject: pkg/31509: MesaLib build fails, macppc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rph@choasnet.org>
List: pkgsrc-bugs
Date: 10/08/2005 14:04:00
>Number:         31509
>Category:       pkg
>Synopsis:       MesaLib build fails, macppc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 08 14:04:00 +0000 2005
>Originator:     Rob Hamrick
>Release:        2.0.2
>Organization:
>Environment:
NetBSD tumble 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Tue Mar 22 16:19:08 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/macppc/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/macppc/compile/GENERIC macppc
>Description:
MesaLib build fails under NetBSD 2.0.2, maccppc, with recent CVS update of pkgsrc.  

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.]
>How-To-Repeat:
$ cd /usr/pkgsrc/graphics/MesaLib
$ su
# make fetch-list | sh
# make
>Fix: