Building the whole kdepim from git, I get: Generating keylistmodel.moc usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN" automoc4: process for /build/src/build/kleopatra/keylistmodel.moc failed: Unknown error pid to wait for: 0 Reproducible: Always Steps to Reproduce: 1. Try to build kleopatra code from git Actual Results: the build fails Expected Results: it builds Every KDE component from git boost 1.50.0
Created attachment 72821 [details] proposed patch This fixes the build. The failure should happen only with BOOST 1.48 or 1.50 (see https://bugreports.qt-project.org/browse/QTBUG-22829 ). So, if you want to push this, it needs some check about the boost version.
Unfortunately, that define won't only apply to moc, so it's not really a fix. There doesn't appear to be a way to specify definitions for automoc, but not for anything else. See also: https://bugreports.qt-project.org/browse/QTBUG-22829
Incidentally, a workaround for all KDE software that uses boost is to alter the definitions entries of $PREFIX/lib/automoc4/automoc4.files.in to read: MOC_COMPILE_DEFINITIONS: @_moc_cdefs@;BOOST_TT_HAS_OPERATOR_HPP_INCLUDED MOC_DEFINITIONS: @_moc_defs@ -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
I get the same error when compiling kdepim 4.9.1 with boost 1.51.0. Using the workaround in comment 3 fixes the problem.
Setting status to confirmed.
Hello, There is a problem with the kdepim macport package. Please see this macport ticket : https://trac.macports.org/ticket/35210#comment:10 Can you help the macport developer community for the kde development on mac os 10 ? Best regards mparchet
Git commit e463ffacbaa4d722fe3b62039f2ad3560659f99a by Sergio Martins. Committed on 25/11/2012 at 16:45. Pushed by smartins into branch 'KDE/4.9'. Fix build with boost >= 1.48 For Qt 4.8.4 we might have a fix upstream. QTBUG-22829 M +3 -0 kleopatra/models/keylistmodel.cpp http://commits.kde.org/kdepim/e463ffacbaa4d722fe3b62039f2ad3560659f99a
Git commit d2dd42477527fc3f3e375b882ae4f388ff574ff0 by Sergio Martins. Committed on 25/11/2012 at 16:45. Pushed by smartins into branch 'master'. Fix build with boost >= 1.48 For Qt 4.8.4 we might have a fix upstream. QTBUG-22829 M +3 -0 kleopatra/models/keylistmodel.cpp http://commits.kde.org/kdepim/d2dd42477527fc3f3e375b882ae4f388ff574ff0
Fixed for Qt 4.8.4 too: https://codereview.qt-project.org/#change,40593
The problem appeared again for me, in KDE 4.9.5, Qt 4.8.4. Moving two more Boost headers (boost/bind.hpp and boost/graph/adjacency_list.hpp) inside #ifndef fixes the problem. Fix it, please.
This is back with boost 1.52. I fixed it by moving line 63 into the ifndef located below.
Created attachment 76835 [details] Fix build with boost 1.52
Thanks, Andrea. Will it be contained in 4.10?
Git commit 942c9bd5213862a89c5afacc28c39a2d4f6da5fd by Montel Laurent. Committed on 31/01/2013 at 10:58. Pushed by mlaurent into branch 'KDE/4.10'. Fix Bug 304111 - Kleopatra fails to build Apply patch from Andrea Scarpino It compiles on boost 1.49 too. FIXED-IN: 4.10.1 M +1 -1 kleopatra/models/keylistmodel.cpp http://commits.kde.org/kdepim/942c9bd5213862a89c5afacc28c39a2d4f6da5fd
in 4.10.1 not in 4.10
This error still appears when building KDE 4.10.0 with boost 1.52 and Qt 4.8.4. The patch does NOT fix it, but the workaround in comment 3 does. I also tried the suggestion in comment 10, with no success.
Created attachment 78610 [details] Fix build with boost >= 1.53 The attached patch allows me to build against boost-1.53.
(In reply to comment #17) > The attached patch allows me to build against boost-1.53. That has already been fixed, see BUG#316256