[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#883100: ksudoku FTBFS on armel/armhf: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr'



Source: ksudoku
Version: 4:17.08.3-1
Severity: serious
Tags: patch

https://buildd.debian.org/status/package.php?p=ksudoku

...
In file included from /usr/include/GL/gl.h:2055:0,
                 from /<<PKGBUILDDIR>>/src/gui/views/ArcBall.h:43,
                 from /<<PKGBUILDDIR>>/src/gui/views/roxdokuview.h:34,
                 from /<<PKGBUILDDIR>>/src/gui/views/ksview.cpp:35:
/usr/include/GL/glext.h:466:19: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr'
 typedef ptrdiff_t GLsizeiptr;
                   ^~~~~~~~~~
In file included from /usr/include/arm-linux-gnueabi/qt5/QtGui/qopengl.h:107:0,
                 from /usr/include/arm-linux-gnueabi/qt5/QtOpenGL/qgl.h:45,
                 from /usr/include/arm-linux-gnueabi/qt5/QtOpenGL/QGL:1,
                 from /<<PKGBUILDDIR>>/src/gui/views/roxdokuview.h:26,
                 from /<<PKGBUILDDIR>>/src/gui/views/ksview.cpp:35:
/usr/include/GLES3/gl3.h:75:25: note: previous declaration as 'typedef khronos_ssize_t GLsizeiptr'
 typedef khronos_ssize_t GLsizeiptr;
                         ^~~~~~~~~~
In file included from /usr/include/GL/gl.h:2055:0,
                 from /<<PKGBUILDDIR>>/src/gui/views/ArcBall.h:43,
                 from /<<PKGBUILDDIR>>/src/gui/views/roxdokuview.h:34,
                 from /<<PKGBUILDDIR>>/src/gui/views/ksview.cpp:35:
/usr/include/GL/glext.h:467:19: error: conflicting declaration 'typedef ptrdiff_t GLintptr'
 typedef ptrdiff_t GLintptr;
                   ^~~~~~~~
In file included from /usr/include/arm-linux-gnueabi/qt5/QtGui/qopengl.h:107:0,
                 from /usr/include/arm-linux-gnueabi/qt5/QtOpenGL/qgl.h:45,
                 from /usr/include/arm-linux-gnueabi/qt5/QtOpenGL/QGL:1,
                 from /<<PKGBUILDDIR>>/src/gui/views/roxdokuview.h:26,
                 from /<<PKGBUILDDIR>>/src/gui/views/ksview.cpp:35:
/usr/include/GLES3/gl3.h:76:26: note: previous declaration as 'typedef khronos_intptr_t GLintptr'
 typedef khronos_intptr_t GLintptr;
                          ^~~~~~~~
src/gui/CMakeFiles/ksudoku_gui.dir/build.make:321: recipe for target 'src/gui/CMakeFiles/ksudoku_gui.dir/views/ksview.cpp.o' failed
make[4]: *** [src/gui/CMakeFiles/ksudoku_gui.dir/views/ksview.cpp.o] Error 1


Fix is attached.
Description: OpenGL support doesn't build when Qt is compiled with OpenGL ES
Author: Adrian Bunk <bunk@debian.org>

--- ksudoku-17.08.3.orig/CMakeLists.txt
+++ ksudoku-17.08.3/CMakeLists.txt
@@ -26,7 +26,9 @@ find_package(KF5 ${KF5_MIN_VERSION} REQU
 
 find_package(KF5KDEGames 4.9.0 REQUIRED)
 
-find_package(OpenGL)
+if(NOT ${Qt5Gui_OPENGL_IMPLEMENTATION} MATCHES "GLES")
+    find_package(OpenGL)
+endif()
 set_package_properties(OpenGL PROPERTIES DESCRIPTION "API for developing portable, interactive 2D and 3Dgraphics applications" TYPE REQUIRED PURPOSE "Kubrick will not be built and KSudoku will not have Roxdoku support without OpenGL.")
 
 include(FeatureSummary)

Reply to: