Ticket #20804 (closed defect: duplicate)
conflicting header file with gl.h
| Reported by: | adi_himawan@… | Owned by: | jmr@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Port: | enblend glew |
Description
I'm trying to install enblend and got the following errors
/opt/local/include/GL/gl.h:1737: error: conflicting declaration 'typedef void (* PFNGLTEXIMAGE3DPROC)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)' /opt/local/include/GL/glew.h:1190: error: 'PFNGLTEXIMAGE3DPROC' has a previous declaration as 'typedef void (* PFNGLTEXIMAGE3DPROC)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)' /opt/local/include/GL/gl.h:1841: error: conflicting declaration 'typedef void (* PFNGLSECONDARYCOLORPOINTERPROC)(GLint, GLenum, GLsizei, const GLvoid*)' /opt/local/include/GL/glew.h:1477: error: 'PFNGLSECONDARYCOLORPOINTERPROC' has a previous declaration as 'typedef void (* PFNGLSECONDARYCOLORPOINTERPROC)(GLint, GLenum, GLsizei, GLvoid*)' /opt/local/include/GL/gl.h:1843: error: conflicting declaration 'typedef void (* PFNGLPOINTPARAMETERFVPROC)(GLenum, const GLfloat*)' /opt/local/include/GL/glew.h:1458: error: 'PFNGLPOINTPARAMETERFVPROC' has a previous declaration as 'typedef void (* PFNGLPOINTPARAMETERFVPROC)(GLenum, GLfloat*)' /opt/local/include/GL/gl.h:1845: error: conflicting declaration 'typedef void (* PFNGLPOINTPARAMETERIVPROC)(GLenum, const GLint*)' /opt/local/include/GL/glew.h:1460: error: 'PFNGLPOINTPARAMETERIVPROC' has a previous declaration as 'typedef void (* PFNGLPOINTPARAMETERIVPROC)(GLenum, GLint*)' /opt/local/include/GL/gl.h:1847: error: conflicting declaration 'typedef void (* PFNGLMULTIDRAWARRAYSPROC)(GLenum, const GLint*, const GLsizei*, GLsizei)' /opt/local/include/GL/glew.h:1455: error: 'PFNGLMULTIDRAWARRAYSPROC' has a previous declaration as 'typedef void (* PFNGLMULTIDRAWARRAYSPROC)(GLenum, GLint*, GLsizei*, GLsizei)' /opt/local/include/GL/gl.h:1848: error: conflicting declaration 'typedef void (* PFNGLMULTIDRAWELEMENTSPROC)(GLenum, const GLsizei*, GLenum, const GLvoid**, GLsizei)' /opt/local/include/GL/glew.h:1456: error: 'PFNGLMULTIDRAWELEMENTSPROC' has a previous declaration as 'typedef void (* PFNGLMULTIDRAWELEMENTSPROC)(GLenum, GLsizei*, GLenum, const GLvoid**, GLsizei)' /opt/local/include/GL/gl.h:1927: error: conflicting declaration 'typedef void (* PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint, GLenum, GLvoid**)' /opt/local/include/GL/glew.h:1766: error: 'PFNGLGETVERTEXATTRIBPOINTERVPROC' has a previous declaration as 'typedef void (* PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint, GLenum, GLvoid*)' /opt/local/include/GL/gl.h:1969: error: conflicting declaration 'typedef void (* PFNGLGETSHADERSOURCEPROC)(GLuint, GLsizei, GLsizei*, GLchar*)' /opt/local/include/GL/glew.h:1761: error: 'PFNGLGETSHADERSOURCEPROC' has a previous declaration as 'typedef void (* PFNGLGETSHADERSOURCEPROC)(GLint, GLsizei, GLsizei*, GLchar*)'
My guess is it is because gl.h in my mac define the macro X_GL_H instead of gl_h_ or GL_H
These are a few lines from my gl.h
#ifndef __X_GL_H #define __X_GL_H
Attachments
Change History
comment:1 follow-up: ↓ 3 Changed 4 years ago by macsforever2000@…
- Owner changed from macports-tickets@… to jmr@…
- Port changed from glew to enblend glew
comment:2 Changed 4 years ago by jmr@…
- Status changed from new to closed
- Resolution set to duplicate
comment:3 in reply to: ↑ 1 Changed 3 years ago by natasapjescic@…
Replying to macsforever2000@…:
Hi all, I am sorry if this is not good question, but I can't find solution. I've tried to build some libraries and I got the errors:
/usr/X11/include/GL/gl.h:1850: error: conflicting declaration ‘typedef void (* PFNGLSECONDARYCOLORPOINTERPROC)(GLint, GLenum, GLsizei, const GLvoid*)’ /opt/local/include/GL/glew.h:1477: error: ‘PFNGLSECONDARYCOLORPOINTERPROC’ has a previous declaration as ‘typedef void (* PFNGLSECONDARYCOLORPOINTERPROC)(GLint, GLenum, GLsizei, GLvoid*)’ /usr/X11/include/GL/gl.h:1852: error: conflicting declaration ‘typedef void (* PFNGLPOINTPARAMETERFVPROC)(GLenum, const GLfloat*)’ /opt/local/include/GL/glew.h:1458: error: ‘PFNGLPOINTPARAMETERFVPROC’ has a previous declaration as ‘typedef void (* PFNGLPOINTPARAMETERFVPROC)(GLenum, GLfloat*)’ /usr/X11/include/GL/gl.h:1854: error: conflicting declaration ‘typedef void (* PFNGLPOINTPARAMETERIVPROC)(GLenum, const GLint*)’ /opt/local/include/GL/glew.h:1460: error: ‘PFNGLPOINTPARAMETERIVPROC’ has a previous declaration as ‘typedef void (* PFNGLPOINTPARAMETERIVPROC)(GLenum, GLint*)’ /usr/X11/include/GL/gl.h:1856: error: conflicting declaration ‘typedef void (* PFNGLMULTIDRAWARRAYSPROC)(GLenum, const GLint*, const GLsizei*, GLsizei)’ /opt/local/include/GL/glew.h:1455: error: ‘PFNGLMULTIDRAWARRAYSPROC’ has a previous declaration as ‘typedef void (* PFNGLMULTIDRAWARRAYSPROC)(GLenum, GLint*, GLsizei*, GLsizei)’ /usr/X11/include/GL/gl.h:1857: error: conflicting declaration ‘typedef void (* PFNGLMULTIDRAWELEMENTSPROC)(GLenum, const GLsizei*, GLenum, const GLvoid**, GLsizei)’ /opt/local/include/GL/glew.h:1456: error: ‘PFNGLMULTIDRAWELEMENTSPROC’ has a previous declaration as ‘typedef void (* PFNGLMULTIDRAWELEMENTSPROC)(GLenum, GLsizei*, GLenum, const GLvoid**, GLsizei)’ /usr/X11/include/GL/gl.h:1936: error: conflicting declaration ‘typedef void (* PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint, GLenum, GLvoid**)’ /opt/local/include/GL/glew.h:1766: error: ‘PFNGLGETVERTEXATTRIBPOINTERVPROC’ has a previous declaration as ‘typedef void (* PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint, GLenum, GLvoid*)’ /usr/X11/include/GL/gl.h:1978: error: conflicting declaration ‘typedef void (* PFNGLGETSHADERSOURCEPROC)(GLuint, GLsizei, GLsizei*, GLchar*)’ /opt/local/include/GL/glew.h:1761: error: ‘PFNGLGETSHADERSOURCEPROC’ has a previous declaration as ‘typedef void (* PFNGLGETSHADERSOURCEPROC)(GLint, GLsizei, GLsizei*, GLchar*)’ /Users/natasa/src/EM/superpixels/lib/rays3d/test_rays3d.cpp: In function ‘int test1()’: /Users/natasa/src/EM/superpixels/lib/rays3d/test_rays3d.cpp:219: warning: unused variable ‘filename’ make[2]: *** [CMakeFiles/test3dRays.dir/test_rays3d.o] Error 1 make[1]: *** [CMakeFiles/test3dRays.dir/all] Error 2 make: *** [all] Error 2
I saw that someone before had similar problem, but I can't find solution. :( Can anybody help me... Thank you in advance, Natasa
comment:4 Changed 3 years ago by natasapjescic@…
- Status changed from closed to reopened
- Resolution duplicate deleted
comment:5 Changed 3 years ago by jmr@…
- Status changed from reopened to closed
- Resolution set to duplicate
- Use WikiFormatting (added for you).
- Check if your comment is present before posting it again (duplicate deleted).
- If you're going to reopen a ticket, reopen the original, not a duplicate.
- Your problem is different anyway, apparently involving building your own code, not the enblend port. This is not a MacPorts bug.
Note: See
TracTickets for help on using
tickets.

