Subject: pkg/22092: graphics/glut fails to build after graphics/MesaLib/buildlink2.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jsalmi@gmx.net>
List: netbsd-bugs
Date: 07/08/2003 16:27:31
>Number:         22092
>Category:       pkg
>Synopsis:       graphics/glut fails to build after graphics/MesaLib/buildlink2.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 08 16:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jukka Salmi
>Release:        NetBSD 1.6.1_STABLE on i386
>Organization:
>Environment:
NetBSD haustier.salmi.ch 1.6.1_STABLE NetBSD 1.6.1_STABLE (HAUSTIER) #0: Sat Jul  5 23:42:57 CEST 2003     root@haustier.salmi.ch:/usr/src/sys/arch/i386/compile/HAUSTIER i386
>Description:
A few days ago graphics/MesaLib/buildlink2.mk from current pkgsrc was changed to add -DGLX_GLXEXT_LEGACY to CPPFLAGS and CFLAGS. Since then graphics/glut fails to build on my machine:

-----
In file included from glut_bitmap.c:8:
glutint.h:780: parse error before `GLXFBConfigSGIX'
glutint.h:785: parse error before `GLXFBConfigSGIX'
glutint.h:788: parse error before `__glut_glXGetFBConfigFromVisualSGIX'
glutint.h:789: warning: type defaults to `int' in declaration of `__glut_glXGetFBConfigFromVisualSGIX'
glutint.h:789: warning: data definition has no type or storage class
gmake: *** [glut_bitmap.lo] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/graphics/glut
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/glut
-----
>How-To-Repeat:
Build graphics/glut using a current pkgsrc.
>Fix:
Don't know; I just removed the two lines which add -DGLX_GLXEXT_LEGACY to CPPFLAGS and CFLAGS, and glut built fine.
>Release-Note:
>Audit-Trail:
>Unformatted: