I have no idea whether this is going to be fixed by Boost or if we really need this to be fixed by Qt, but here goes what happens with games-board/pokerth when trying to build with against Boost 1.53.0_beta1 (in tree since tonight, under p.mask): x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -ggdb -g -frecord-gcc-switches -Wall -W -D_REENTRANT -DENABLE_IPV6 -DTIXML_USE_STL -DBOOST_FILESYSTEM_DEPRECATED -DPREFIX="/usr" -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Isrc/third_party/qtsingleapplication -I. -Isrc -Isrc/engine -Isrc/gui -Isrc/net -Isrc/engine/local_engine -Isrc/engine/network_engine -Isrc/config -Isrc/third_party/asn1 -Isrc/gui/qt -Isrc/gui/qt/connecttoserverdialog -Isrc/core -Isrc/gui/qt/sound -Isrc/gui/qt/qttools -Isrc/gui/qt/chattools -Isrc/gui/qt/qttools/qthelper -Isrc/gui/qt/gametable -Isrc/gui/qt/gametable/startsplash -Isrc/gui/qt/gametable/log -Isrc/gui/qt/aboutpokerth -Isrc/gui/qt/createnetworkgamedialog -Isrc/gui/qt/createinternetgamedialog -Isrc/gui/qt/joinnetworkgamedialog -Isrc/gui/qt/newlocalgamedialog -Isrc/gui/qt/settingsdialog -Isrc/gui/qt/settingsdialog/selectavatardialog -Isrc/gui/qt/settingsdialog/manualblindsorderdialog -Isrc/gui/qt/startnetworkgamedialog -Isrc/gui/qt/startwindow -Isrc/gui/qt/serverlistdialog -Isrc/gui/qt/styles -Isrc/gui/qt/changecontentdialog -Isrc/gui/qt/changecompleteblindsdialog -Isrc/gui/qt/internetgamelogindialog -Isrc/gui/qt/mymessagedialog -Isrc/gui/qt/gamelobbydialog -Isrc/gui/qt/timeoutmsgbox -Isrc/gui/qt/logfiledialog -Isrc/gui/qt/mymessagebox -I/usr/include -Imocs -Iuics -o obj/moc_joinnetworkgamedialogimpl.o mocs/moc_joinnetworkgamedialogimpl.cpp usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" make[1]: *** [mocs/moc_timeoutmsgboximpl.cpp] Errore 1 make[1]: *** Attesa dei processi non terminati.... usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" make[1]: *** [mocs/moc_gamelobbydialogimpl.cpp] Errore 1 usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" make[1]: *** [mocs/moc_startnetworkgamedialogimpl.cpp] Errore 1 usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" make[1]: *** [mocs/moc_gametablestylereader.cpp] Errore 1 usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" make[1]: *** [mocs/moc_mytimeoutlabel.cpp] Errore 1 usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" make[1]: *** [mocs/moc_gametableimpl.cpp] Errore 1 make[1]: Leaving directory `/tmp/portage/games-board/pokerth-1.0/work/PokerTH-1.0-src' make: *** [sub-pokerth_game-pro-make_default-ordered] Errore 2 Can somebody please look at this?
This is similar to this isn't it? https://bugreports.qt-project.org/browse/QTBUG-22829
(In reply to comment #1) > This is similar to this isn't it? > > https://bugreports.qt-project.org/browse/QTBUG-22829 We already apply a workaround for that (moc-workaround-for-boost-1.48.patch)
(In reply to comment #0) > I have no idea whether this is going to be fixed by Boost or if we really > need this to be fixed by Qt, but here goes what happens with > games-board/pokerth when trying to build with against Boost 1.53.0_beta1 (in > tree since tonight, under p.mask): > > x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -ggdb -g > -frecord-gcc-switches -Wall -W -D_REENTRANT -DENABLE_IPV6 -DTIXML_USE_STL > -DBOOST_FILESYSTEM_DEPRECATED -DPREFIX="/usr" -DQT_NO_DEBUG -DQT_SQL_LIB > -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED > -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore > -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui > -I/usr/include/qt4/QtSql -I/usr/include/qt4 > -Isrc/third_party/qtsingleapplication -I. -Isrc -Isrc/engine -Isrc/gui > -Isrc/net -Isrc/engine/local_engine -Isrc/engine/network_engine -Isrc/config > -Isrc/third_party/asn1 -Isrc/gui/qt -Isrc/gui/qt/connecttoserverdialog > -Isrc/core -Isrc/gui/qt/sound -Isrc/gui/qt/qttools -Isrc/gui/qt/chattools > -Isrc/gui/qt/qttools/qthelper -Isrc/gui/qt/gametable > -Isrc/gui/qt/gametable/startsplash -Isrc/gui/qt/gametable/log > -Isrc/gui/qt/aboutpokerth -Isrc/gui/qt/createnetworkgamedialog > -Isrc/gui/qt/createinternetgamedialog -Isrc/gui/qt/joinnetworkgamedialog > -Isrc/gui/qt/newlocalgamedialog -Isrc/gui/qt/settingsdialog > -Isrc/gui/qt/settingsdialog/selectavatardialog > -Isrc/gui/qt/settingsdialog/manualblindsorderdialog > -Isrc/gui/qt/startnetworkgamedialog -Isrc/gui/qt/startwindow > -Isrc/gui/qt/serverlistdialog -Isrc/gui/qt/styles > -Isrc/gui/qt/changecontentdialog -Isrc/gui/qt/changecompleteblindsdialog > -Isrc/gui/qt/internetgamelogindialog -Isrc/gui/qt/mymessagedialog > -Isrc/gui/qt/gamelobbydialog -Isrc/gui/qt/timeoutmsgbox > -Isrc/gui/qt/logfiledialog -Isrc/gui/qt/mymessagebox -I/usr/include -Imocs > -Iuics -o obj/moc_joinnetworkgamedialogimpl.o > mocs/moc_joinnetworkgamedialogimpl.cpp > usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error > at "BOOST_JOIN" > make[1]: *** [mocs/moc_timeoutmsgboximpl.cpp] Errore 1 > make[1]: *** Attesa dei processi non terminati.... > usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error > at "BOOST_JOIN" > make[1]: *** [mocs/moc_gamelobbydialogimpl.cpp] Errore 1 > usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error > at "BOOST_JOIN" > make[1]: *** [mocs/moc_startnetworkgamedialogimpl.cpp] Errore 1 > usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error > at "BOOST_JOIN" > make[1]: *** [mocs/moc_gametablestylereader.cpp] Errore 1 > usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error > at "BOOST_JOIN" > make[1]: *** [mocs/moc_mytimeoutlabel.cpp] Errore 1 > usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error > at "BOOST_JOIN" > make[1]: *** [mocs/moc_gametableimpl.cpp] Errore 1 > make[1]: Leaving directory > `/tmp/portage/games-board/pokerth-1.0/work/PokerTH-1.0-src' > make: *** [sub-pokerth_game-pro-make_default-ordered] Errore 2 > > Can somebody please look at this? Err...where's the full moc command line that fails?
net-p2p/ktorrent (which seems to have the same problem is linked in URL. Search for "Parse error" and then find the matching call...
Just like bug 401551, there's no way upstream is going to fix this in Qt 4.x (Qt5 is already fixed), so we have to find another workaround...
*** Bug 456350 has been marked as a duplicate of this bug. ***
RedHat has a patch, going to use it?
*** Bug 457532 has been marked as a duplicate of this bug. ***
Fixed in qt-core-4.8.4-r4