Bug 70546

Summary: glext.h:412:25: error: redefinition of typedef 'PFNGLBLENDCOLORPROC'
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: medium CC: brianp
Version: gitKeywords: regression
Hardware: x86-64 (AMD64)   
OS: NetBSD   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2013-10-16 19:12:50 UTC
mesa: 9da4021626dd48a1cc25054d1d4009e098f4d97b (master)

Seeing this build failure on NetBSD 6.1.


  CC       glapi_dispatch.lo
In file included from ../../../include/GL/gl.h:2085:0,
                 from ../../../src/mapi/glapi/glapi_priv.h:38,
                 from glapi_dispatch.c:40:
../../../include/GL/glext.h:412:25: error: redefinition of typedef 'PFNGLBLENDCOLORPROC'
../../../include/GL/gl.h:1739:25: note: previous declaration of 'PFNGLBLENDCOLORPROC' was here
../../../include/GL/glext.h:413:25: error: redefinition of typedef 'PFNGLBLENDEQUATIONPROC'
../../../include/GL/gl.h:1740:25: note: previous declaration of 'PFNGLBLENDEQUATIONPROC' was here
Comment 1 Brian Paul 2013-10-16 19:23:43 UTC
Hi Vinson,

If you remove lines 1739-1740 in gl.h does that fix this?
Comment 2 Vinson Lee 2013-10-17 16:59:37 UTC
(In reply to comment #1)
> 
> If you remove lines 1739-1740 in gl.h does that fix this?

Yes, removing those two lines fixes the build.

diff --git a/include/GL/gl.h b/include/GL/gl.h
index 975cfe8..babb746 100644
--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -1736,8 +1736,6 @@ GLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target,
 GLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format,
        GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
 
-typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
Comment 3 Brian Paul 2013-10-17 18:13:03 UTC
Fixed with commit a36f7e651e947ff14dbbd242b1d9ab160442c532

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.