openscad FTBFS in armhf due to conflict declaration of headers gl3.h and glew.h

Bug #1491553 reported by Tiago Stürmer Daitx
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openscad (Debian)
New
Unknown
openscad (Ubuntu)
Confirmed
Undecided
Unassigned
tulip (Debian)
New
Unknown

Bug Description

openscad openscad 2015.03-1+dfsg-2ubuntu1 FTBFS on armhf due to conflicting headers.

From the armhf build at https://launchpad.net/ubuntu/+source/openscad/2015.03-1+dfsg-2ubuntu1/+build/7851279

g++ -c -pipe -fno-strict-aliasing -frounding-math -DEIGEN_DONT_ALIGN -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/freetype2 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_REENTRANT -Wall -W -Wno-unused-local-typedefs -fPIC -DOPENSCAD_VERSION=2015.03-1 -DOPENSCAD_SHORTVERSION=2015.03 -DOPENSCAD_YEAR=.0 -DOPENSCAD_MONTH=.0 -DOPENSCAD_DAY=.0 -DENABLE_CGAL -DENABLE_OPENCSG -DUSE_SCINTILLA_EDITOR -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -Isrc -isystem /usr/include/arm-linux-gnueabihf/qt5 -Isrc/libtess2/Include -isystem /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL -isystem /usr/include/arm-linux-gnueabihf/qt5/QtPrintSupport -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtConcurrent -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -Iobjects -isystem /usr/include/eigen3 -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o objects/grid.o src/grid.cc
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopengl.h:97:0,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/qgl.h:39,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/QGLWidget:1,
                 from src/QGLView.h:4,
                 from src/QGLView.cc:28:
/usr/include/GLES3/gl3.h:69:25: error: conflicting declaration 'typedef khronos_ssize_t GLsizeiptr'
 typedef khronos_ssize_t GLsizeiptr;
                         ^
In file included from src/system-gl.h:4:0,
                 from src/QGLView.h:3,
                 from src/QGLView.cc:28:
/usr/include/GL/glew.h:1663:19: note: previous declaration as 'typedef ptrdiff_t GLsizeiptr'
 typedef ptrdiff_t GLsizeiptr;
                   ^
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopengl.h:97:0,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/qgl.h:39,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/QGLWidget:1,
                 from src/QGLView.h:4,
                 from src/QGLView.cc:28:
/usr/include/GLES3/gl3.h:70:26: error: conflicting declaration 'typedef khronos_intptr_t GLintptr'
 typedef khronos_intptr_t GLintptr;
                          ^
In file included from src/system-gl.h:4:0,
                 from src/QGLView.h:3,
                 from src/QGLView.cc:28:
/usr/include/GL/glew.h:1662:19: note: previous declaration as 'typedef ptrdiff_t GLintptr'
 typedef ptrdiff_t GLintptr;
                   ^
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopengl.h:97:0,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/qgl.h:39,
                 from /usr/include/arm-linux-gnueabihf/qt5/QtOpenGL/QGLWidget:1,
                 from src/QGLView.h:4,
                 from src/QGLView.cc:28:
/usr/include/GLES3/gl3.h:377:60: error: 'void __glewActiveTexture(GLenum)' redeclared as different kind of symbol
 GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
                                                            ^
In file included from src/system-gl.h:4:0,
                 from src/QGLView.h:3,
                 from src/QGLView.cc:28:
/usr/include/GL/glew.h:15048:40: note: previous declaration 'void (* __glewActiveTexture)(GLenum)'
 GLEW_FUN_EXPORT PFNGLACTIVETEXTUREPROC __glewActiveTexture;
                                        ^

Tags: ftbfs
tags: added: ftbfs
description: updated
Changed in tulip (Debian):
status: Unknown → New
Changed in openscad (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openscad (Ubuntu):
status: New → Confirmed
Changed in tulip (Debian):
status: New → Fix Released
Changed in tulip (Debian):
status: Fix Released → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.