Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454080 - dev-libs/boost-1.53.0 headers are unparsable by moc
Summary: dev-libs/boost-1.53.0 headers are unparsable by moc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL: https://tinderboxlogs.s3.amazonaws.co...
Whiteboard:
Keywords: PMASKED
: 456350 457532 (view as bug list)
Depends on:
Blocks: boost-1.53
  Show dependency tree
 
Reported: 2013-01-25 23:08 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2013-02-15 10:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2013-01-25 23:08:07 UTC
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?
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2013-01-26 10:29:41 UTC
This is similar to this isn't it?

https://bugreports.qt-project.org/browse/QTBUG-22829
Comment 2 Davide Pesavento gentoo-dev 2013-01-26 10:58:11 UTC
(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)
Comment 3 Davide Pesavento gentoo-dev 2013-01-26 11:01:44 UTC
(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?
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-01-26 12:22:08 UTC
net-p2p/ktorrent (which seems to have the same problem is linked in URL. Search for "Parse error" and then find the matching call...
Comment 5 Davide Pesavento gentoo-dev 2013-02-05 04:50:54 UTC
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...
Comment 6 Davide Pesavento gentoo-dev 2013-02-13 23:59:14 UTC
*** Bug 456350 has been marked as a duplicate of this bug. ***
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2013-02-14 00:08:12 UTC
RedHat has a patch, going to use it?
Comment 8 Chris Reffett (RETIRED) gentoo-dev Security 2013-02-14 20:58:26 UTC
*** Bug 457532 has been marked as a duplicate of this bug. ***
Comment 9 Davide Pesavento gentoo-dev 2013-02-15 10:22:06 UTC
Fixed in qt-core-4.8.4-r4