Bug 426088 - Compile error (kdesrc-build)
Summary: Compile error (kdesrc-build)
Status: RESOLVED FIXED
Alias: None
Product: ksudoku
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Ian Wadham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 05:57 UTC by Justin Zobel
Modified: 2020-09-09 21:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Zobel 2020-09-02 05:57:13 UTC
Full build of kdesrc-build, errors:

```
# kdesrc-build running: 'gmake' '-j' '8'
# from directory: /home/justin/kde/build/ksudoku
[  2%] Automatic MOC for target ksudoku_logic
[  5%] Built target doc-index-cache-bz2
[  5%] Built target ksudoku_logic_autogen
[ 15%] Built target ksudoku_logic
[ 17%] Automatic MOC for target ksudoku_gui
[ 17%] Built target ksudoku_gui_autogen
[ 20%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/ksudoku_gui_autogen/mocs_compilation.cpp.o
[ 23%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/welcomescreen.cpp.o
[ 25%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/puzzleprinter.cpp.o
[ 28%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/settings.cpp.o
[ 30%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/views/ksview.cpp.o
[ 33%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/views/gameactions.cpp.o
[ 35%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/views/renderer.cpp.o
[ 38%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/views/valuelistwidget.cpp.o
In file included from /home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.h:31,
                 from /home/justin/kde/src/ksudoku/src/gui/views/ksview.cpp:33:
/home/justin/kde/src/ksudoku/src/gui/views/ArcBall.h:31: warning: "assert" redefined
   31 | # define assert(x) { }
      | 
In file included from /home/justin/kde/qt5/include/QtCore/qglobal.h:50,
                 from /home/justin/kde/qt5/include/QtCore/qnamespace.h:43,
                 from /home/justin/kde/qt5/include/QtCore/qobjectdefs.h:48,
                 from /home/justin/kde/qt5/include/QtCore/qobject.h:46,
                 from /home/justin/kde/qt5/include/QtCore/QObject:1,
                 from /home/justin/kde/src/ksudoku/src/gui/ksudokugame.h:26,
                 from /home/justin/kde/src/ksudoku/src/gui/views/ksview.h:26,
                 from /home/justin/kde/src/ksudoku/src/gui/views/ksview.cpp:23:
/usr/include/assert.h:89: note: this is the location of the previous definition
   89 | #  define assert(expr)       \
      | 
In file included from /home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.h:31,
                 from /home/justin/kde/build/ksudoku/src/gui/ksudoku_gui_autogen/DWW7M6GQBY/moc_roxdokuview.cpp:10,
                 from /home/justin/kde/build/ksudoku/src/gui/ksudoku_gui_autogen/mocs_compilation.cpp:9:
/home/justin/kde/src/ksudoku/src/gui/views/ArcBall.h:31: warning: "assert" redefined
   31 | # define assert(x) { }
      | 
In file included from /home/justin/kde/qt5/include/QtCore/qglobal.h:50,
                 from /home/justin/kde/qt5/include/QtCore/qalgorithms.h:43,
                 from /home/justin/kde/qt5/include/QtCore/qlist.h:43,
                 from /home/justin/kde/qt5/include/QtCore/QList:1,
                 from /home/justin/kde/src/ksudoku/src/gui/config.h:23,
                 from /home/justin/kde/build/ksudoku/src/gui/ksudoku_gui_autogen/EWIEGA46WW/moc_config.cpp:10,
                 from /home/justin/kde/build/ksudoku/src/gui/ksudoku_gui_autogen/mocs_compilation.cpp:2:
/usr/include/assert.h:89: note: this is the location of the previous definition
   89 | #  define assert(expr)       \
      | 
[ 41%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/views/view2d.cpp.o
[ 43%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/views/ArcBall.cpp.o
[ 46%] Building CXX object src/gui/CMakeFiles/ksudoku_gui.dir/views/roxdokuview.cpp.o
In file included from /home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.h:31,
                 from /home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.cpp:23:
/home/justin/kde/src/ksudoku/src/gui/views/ArcBall.h:31: warning: "assert" redefined
   31 | # define assert(x) { }
      | 
In file included from /home/justin/kde/qt5/include/QtCore/qglobal.h:50,
                 from /home/justin/kde/qt5/include/QtGui/qtguiglobal.h:43,
                 from /home/justin/kde/qt5/include/QtGui/qopengl.h:43,
                 from /home/justin/kde/qt5/include/QtOpenGL/qgl.h:45,
                 from /home/justin/kde/qt5/include/QtOpenGL/QGL:1,
                 from /home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.h:26,
                 from /home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.cpp:23:
/usr/include/assert.h:89: note: this is the location of the previous definition
   89 | #  define assert(expr)       \
      | 
[ 48%] Linking CXX static library ../../lib/libksudoku_gui.a
[ 74%] Built target ksudoku_gui
Scanning dependencies of target ksudoku_autogen
[ 76%] Automatic MOC for target ksudoku
[ 76%] Built target ksudoku_autogen
Scanning dependencies of target ksudoku
[ 82%] Building CXX object src/CMakeFiles/ksudoku.dir/ksudoku_autogen/mocs_compilation.cpp.o
[ 82%] Building CXX object src/CMakeFiles/ksudoku.dir/generator/sudokuboard.cpp.o
[ 84%] Building CXX object src/CMakeFiles/ksudoku.dir/main.cpp.o
[ 87%] Building CXX object src/CMakeFiles/ksudoku.dir/generator/state.cpp.o
[ 89%] Building CXX object src/CMakeFiles/ksudoku.dir/generator/dlxsolver.cpp.o
[ 92%] Building CXX object src/CMakeFiles/ksudoku.dir/generator/cagegenerator.cpp.o
[ 94%] Building CXX object src/CMakeFiles/ksudoku.dir/generator/mathdokugenerator.cpp.o
[ 97%] Building CXX object src/CMakeFiles/ksudoku.dir/ksudoku_logging.cpp.o
/home/justin/kde/src/ksudoku/src/generator/cagegenerator.cpp: In member function ‘int CageGenerator::makeCages(SKGraph*, QList<int>*, int, int, bool, int)’:
/home/justin/kde/src/ksudoku/src/generator/cagegenerator.cpp:48:48: warning: unused parameter ‘maxValue’ [-Wunused-parameter]
   48 |                               int maxSize, int maxValue,
      |                                            ~~~~^~~~~~~~
/home/justin/kde/src/ksudoku/src/generator/sudokuboard.cpp: In member function ‘BoardContents SudokuBoard::insertValues(const BoardContents&, Difficulty, Symmetry)’:
/home/justin/kde/src/ksudoku/src/generator/sudokuboard.cpp:445:9: warning: variable ‘value’ set but not used [-Wunused-but-set-variable]
  445 |     int value = 0;
      |         ^~~~~
/home/justin/kde/src/ksudoku/src/main.cpp: In function ‘int main(int, char**)’:
/home/justin/kde/src/ksudoku/src/main.cpp:81:24: warning: ‘static QHash<QString, QByteArray>* KConfigDialogManager::changedMap()’ is deprecated: Since 5.32. See API docs [-Wdeprecated-declarations]
   81 |  KConfigDialogManager::changedMap()->insert(QStringLiteral("ksudoku::SymbolConfigListWidget"), SIGNAL(itemChanged(QListWidgetItem*)));
      |                        ^~~~~~~~~~
In file included from /home/justin/kde/usr/include/KF5/KConfigWidgets/KConfigDialogManager:1,
                 from /home/justin/kde/src/ksudoku/src/main.cpp:29:
/home/justin/kde/usr/include/KF5/KConfigWidgets/kconfigdialogmanager.h:283:40: note: declared here
  283 |     static QHash<QString, QByteArray> *changedMap();
      |                                        ^~~~~~~~~~
/home/justin/kde/src/ksudoku/src/main.cpp:81:35: warning: ‘static QHash<QString, QByteArray>* KConfigDialogManager::changedMap()’ is deprecated: Since 5.32. See API docs [-Wdeprecated-declarations]
   81 |  KConfigDialogManager::changedMap()->insert(QStringLiteral("ksudoku::SymbolConfigListWidget"), SIGNAL(itemChanged(QListWidgetItem*)));
      |                                   ^
In file included from /home/justin/kde/usr/include/KF5/KConfigWidgets/KConfigDialogManager:1,
                 from /home/justin/kde/src/ksudoku/src/main.cpp:29:
/home/justin/kde/usr/include/KF5/KConfigWidgets/kconfigdialogmanager.h:283:40: note: declared here
  283 |     static QHash<QString, QByteArray> *changedMap();
      |                                        ^~~~~~~~~~
/home/justin/kde/src/ksudoku/src/main.cpp:81:35: warning: ‘static QHash<QString, QByteArray>* KConfigDialogManager::changedMap()’ is deprecated: Since 5.32. See API docs [-Wdeprecated-declarations]
   81 |  KConfigDialogManager::changedMap()->insert(QStringLiteral("ksudoku::SymbolConfigListWidget"), SIGNAL(itemChanged(QListWidgetItem*)));
      |                                   ^
In file included from /home/justin/kde/usr/include/KF5/KConfigWidgets/KConfigDialogManager:1,
                 from /home/justin/kde/src/ksudoku/src/main.cpp:29:
/home/justin/kde/usr/include/KF5/KConfigWidgets/kconfigdialogmanager.h:283:40: note: declared here
  283 |     static QHash<QString, QByteArray> *changedMap();
      |                                        ^~~~~~~~~~
/home/justin/kde/src/ksudoku/src/generator/sudokuboard.cpp: In member function ‘int SudokuBoard::getSymmetricIndices(int, Symmetry, int, int*)’:
/home/justin/kde/src/ksudoku/src/generator/sudokuboard.cpp:1073:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1073 |             col = lr;
      |             ~~~~^~~~
/home/justin/kde/src/ksudoku/src/generator/sudokuboard.cpp:1075:9: note: here
 1075 |         case DIAGONAL_2:
      |         ^~~~
[100%] Linking CXX executable ../bin/ksudoku
/usr/bin/ld: ../lib/libksudoku_gui.a(roxdokuview.cpp.o): in function `ksudoku::RoxdokuView::resizeGL(int, int)':
/home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.cpp:178: undefined reference to `gluPerspective'
/usr/bin/ld: ../lib/libksudoku_gui.a(roxdokuview.cpp.o): in function `ksudoku::RoxdokuView::Selection(int, int)':
/home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.cpp:219: undefined reference to `gluPickMatrix'
/usr/bin/ld: /home/justin/kde/src/ksudoku/src/gui/views/roxdokuview.cpp:220: undefined reference to `gluPerspective'
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/CMakeFiles/ksudoku.dir/build.make:212: bin/ksudoku] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:279: src/CMakeFiles/ksudoku.dir/all] Error 2
gmake: *** [Makefile:161: all] Error 2
```
Comment 1 Albert Astals Cid 2020-09-02 18:44:08 UTC
Which distribution are you using?
Comment 2 Justin Zobel 2020-09-02 22:18:35 UTC
Solus
Comment 3 Bug Janitor Service 2020-09-03 17:15:26 UTC
A possibly relevant merge request was started @ https://invent.kde.org/games/ksudoku/-/merge_requests/1
Comment 4 Albert Astals Cid 2020-09-09 21:23:41 UTC
Git commit 420b5b9887db92364832d5427144f17da7878960 by Albert Astals Cid.
Committed on 03/09/2020 at 17:15.
Pushed by aacid into branch 'master'.

Link against GLU

Since we use it

M  +2    -2    CMakeLists.txt
M  +1    -1    src/CMakeLists.txt

https://invent.kde.org/games/ksudoku/commit/420b5b9887db92364832d5427144f17da7878960