Subject: pkg/33416: MesaDemos
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 05/03/2006 10:45:00
>Number:         33416
>Category:       pkg
>Synopsis:       MesaDemos
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 03 10:45:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


make[3]: Entering directory `/pkg/obj/graphics/MesaDemos/work/Mesa-6.4.2/progs/xdemos'
gcc -I../../include -m64 -O3 -fPIC -I/usr/openwin/include -DUSE_XSHM glxdemo.c -L../../lib -R/usr/pkg/lib  -L/usr/pkg/lib -L/usr/openwin/lib/64 -R/usr/openwin/lib/64 -lglut -lGLU -lGL -lX11 -lXext -lm -o glxdemo
In file included from ../../include/GL/glx.h:300,
                 from glxdemo.c:11:
../../include/GL/glxext.h:340: error: conflicting types for 'int64_t'
/usr/include/sys/int_types.h:64: error: previous declaration of 'int64_t' was here
make[3]: *** [glxdemo] Error 1
make[3]: Leaving directory `/pkg/obj/graphics/MesaDemos/work/Mesa-6.4.2/progs/xdemos'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory `/pkg/obj/graphics/MesaDemos/work/Mesa-6.4.2/progs'
gmake[1]: *** [default] Error 1
gmake[1]: Leaving directory `/pkg/obj/graphics/MesaDemos/work/Mesa-6.4.2'
gmake: *** [solaris-x86-64-gcc] Error 2
*** Error code 2




>How-To-Repeat:


bmake


>Fix:


patch-am:


--- include/GL/glxext.h.orig    Mon Nov  7 22:20:29 2005
+++ include/GL/glxext.h Tue Jan 24 19:18:49 2006
@@ -333,7 +333,7 @@
 
 #if defined(__sun__)
 #include <inttypes.h>
-#if defined(__STDC__)
+#if defined(__STDC__) && !defined(_INT64_TYPE)
 #if defined(__arch64__)
 typedef long int int64_t;
 #else