Bug 341355

Summary: Kleopatra fails to build with boost>=1.57
Product: [Applications] kleopatra Reporter: Heiko Becker <heiko.becker>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: franz.graf, heri+kde, mutz, orodruinlair, stupor_scurvy343, winter, wk
Priority: NOR    
Version: 2.2.0   
Target Milestone: ---   
Platform: Exherbo   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Heiko Becker 2014-11-28 13:00:26 UTC
If I try to compile kdepim-4.14.3 against https://bugreports.qt-project.org/browse/QTBUG-22829 I get the following error:

Generating moc_kotodoview.cpp
Generating moc_notesagentnotedialog.cpp
Generating moc_kowhatsnextview.cpp
Generating moc_filteractionwithurl.cpp
Generating moc_kmailsearchpatternedit.cpp
Generating moc_notesagentsettingsdialog.cpp
Generating moc_notesmanager.cpp
Generating moc_kmsearchmessagemodel.cpp
Generating moc_filterconverttosieveresultdialog.cpp
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
Generating moc_tabwidget.cpp
AUTOGEN: error: process for /var/tmp/paludis/build/kde-kdepim-4.14.3/work/build/kleopatra/tabwidget.moc failed:
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"

This is similar to https://bugreports.qt-project.org/browse/QTBUG-22829 only that BOOST_JOIN seems to used in more headers in boost-1.57.
I would have used the #ifndef Q_MOC_RUN workaround if would which header exactly is causing this.


Reproducible: Always
Comment 1 Wulf C. Krueger 2015-06-07 16:04:14 UTC
Still broken...
Comment 2 Franz Graf 2015-09-23 11:49:00 UTC
Some on Gentoo. Emerge of kde-base/kleopatra-4.14.10 with installed dev-libs/boost-1.57.0 fails with:

.....
[ 19%] Generating emailoperationspreferences.h, emailoperationspreferences.cpp
cd /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf && /usr/bin/kconfig_compiler /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10/kleopatra/kcfg/emailoperationspreferences.kcfg /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10/kleopatra/kcfg/emailoperationspreferences.kcfgc -d /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf/
cd /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10 /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10/kleopatra/conf /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf/CMakeFiles/kcm_kleopatra.dir/DependInfo.cmake --color=
Dependee "/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf/CMakeFiles/kcm_kleopatra.dir/DependInfo.cmake" is newer than depender "/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf/CMakeFiles/kcm_kleopatra.dir/depend.internal".
Dependee "/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf/CMakeFiles/kcm_kleopatra.dir/depend.internal".
Scanning dependencies of target kcm_kleopatra
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
AUTOGEN: error: process for /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/tabwidget.moc failed:
usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"

.....

[ 24%] Linking CXX shared module ../../lib/kcm_kleopatra.so
cd /var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/kleopatra/conf && /usr/bin/cmake -E cmake_link_script CMakeFiles/kcm_kleopatra.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -UQT_NO_EXCEPTIONS -Wno-missing-braces -Wno-parentheses -Wno-ignored-qualifiers -Wl,--enable-new-dtags -Wl,--no-undefined -lc  -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,kcm_kleopatra.so -o ../../lib/kcm_kleopatra.so CMakeFiles/kcm_kleopatra.dir/dirservconfigpage.o CMakeFiles/kcm_kleopatra.dir/appearanceconfigpage.o CMakeFiles/kcm_kleopatra.dir/appearanceconfigwidget.o CMakeFiles/kcm_kleopatra.dir/gnupgsystemconfigurationpage.o CMakeFiles/kcm_kleopatra.dir/smimevalidationconfigurationwidget.o CMakeFiles/kcm_kleopatra.dir/smimevalidationconfigurationpage.o CMakeFiles/kcm_kleopatra.dir/cryptooperationsconfigwidget.o CMakeFiles/kcm_kleopatra.dir/cryptooperationsconfigpage.o CMakeFiles/kcm_kleopatra.dir/smimevalidationpreferences.o CMakeFiles/kcm_kleopatra.dir/tooltippreferences.o CMakeFiles/kcm_kleopatra.dir/emailoperationspreferences.o CMakeFiles/kcm_kleopatra.dir/fileoperationspreferences.o CMakeFiles/kcm_kleopatra.dir/kcm_kleopatra_automoc.o  -L/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/lib  -L/usr/lib64/qt4 /usr/lib64/libkcmutils.so.4.14.12 -lkleo /usr/lib64/libkio.so.5.14.12 ../../lib/libkleopatraclientgui.so.0.3.0 /usr/lib64/libkdeui.so.5.14.12 /usr/lib64/qt4/libQtSvg.so /usr/lib64/libkdecore.so.5.14.12 /usr/lib64/qt4/libQtDBus.so /usr/lib64/qt4/libQtCore.so -lpthread /usr/lib64/qt4/libQtGui.so /usr/lib64/qt4/libQtNetwork.so /usr/lib64/qt4/libQtXml.so -Wl,-rpath,/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/lib:/usr/lib64/qt4: -Wl,-rpath-link,/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build/lib 
make[2]: Leaving directory '/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build'
[ 24%] Built target kcm_kleopatra
make[1]: Leaving directory '/var/tmp/portage/portage/kde-base/kleopatra-4.14.10/work/kleopatra-4.14.10_build'
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: kde-base/kleopatra-4.14.10::gentoo failed (compile phase):
 *   emake failed
Comment 3 Allen Winter 2015-09-23 20:27:36 UTC
should be fixed with commit 3c72e211dc4ee1420bf744312036dc2141238912