hugin-2014.0.0 fails to build with boost >=1.57.0

Bug #1391901 reported by Timo Gurr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

Applied the patch http://sourceforge.net/p/hugin/hugin/ci/e237d6d1d87354f974d37a95ba52dbd9666dd310/ for boost-1.56.0 but running into another build error with boost >=1.57.0.

[ 58%] Building CXX object src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o
In file included from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/TextureManager.h:45:0,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/ViewState.h:72,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/GLViewer.h:26,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/GLViewer.cpp:40:
/usr/include/boost/signals2/trackable.hpp: In member function 'boost::weak_ptr<boost::signals2::detail::trackable_pointee> boost::signals2::trackable::get_weak_ptr() const':
/usr/include/boost/signals2/trackable.hpp:49:7: error: return type 'class boost::weak_ptr<boost::signals2::detail::trackable_pointee>' is incomplete
       {
       ^
In file included from /usr/include/boost/signals2/slot.hpp:22:0,
                 from /usr/include/boost/signals2/connection.hpp:23,
                 from /usr/include/boost/signals2/signal.hpp:21,
                 from /usr/include/boost/signals2.hpp:19,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin_base/huginapp/ImageCache.h:32,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/TextureManager.h:51,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/ViewState.h:72,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/GLViewer.h:26,
                 from /home/user/Downloads/hugin-2014.0.0/src/hugin1/hugin/GLViewer.cpp:40:
/usr/include/boost/signals2/detail/tracked_objects_visitor.hpp: In member function 'void boost::signals2::detail::tracked_objects_visitor::add_if_trackable(const boost::signals2::trackable*) const':
/usr/include/boost/signals2/detail/tracked_objects_visitor.hpp:85:72: error: invalid use of void expression
             slot_->_tracked_objects.push_back(trackable->get_weak_ptr());
                                                                        ^
src/hugin1/hugin/CMakeFiles/hugin.dir/build.make:399: recipe for target 'src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o' failed
make[2]: *** [src/hugin1/hugin/CMakeFiles/hugin.dir/GLViewer.cpp.o] Error 1
CMakeFiles/Makefile2:1784: recipe for target 'src/hugin1/hugin/CMakeFiles/hugin.dir/all' failed
make[1]: *** [src/hugin1/hugin/CMakeFiles/hugin.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

Complete build log attached.

Revision history for this message
Timo Gurr (timo-gurr) wrote :
Revision history for this message
tmodes (tmodes) wrote :

This seems to be a problem in boost 1.57.
Please report the problem to boost tracker.

Revision history for this message
Timo Gurr (timo-gurr) wrote :

Indeed, thanks. And it also has been fixed in git master, for reference:

Upstream bug: https://svn.boost.org/trac/boost/ticket/10100
Upstream accepted pull request: https://github.com/boostorg/signals2/pull/8/commits

Revision history for this message
tmodes (tmodes) wrote :

Thanks for feedback.
Committed a workaround for Hugin for Boost 1.57

Changed in hugin:
status: New → Fix Committed
tmodes (tmodes)
Changed in hugin:
milestone: none → 2015.0beta1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.