I tried to install the SlackBuild for 14.1 for ledger on Current. It didn't build. I then went on to try to build it manually and got an error with the Boost library that's on current.
Since I don't really use Boost and have only minor knowledge of C/C++, I have no idea how to fix this. I can't even tell whether it's a Slackware or upstream problem.
This is the relevant section of the build log:
Code:
In file included from /usr/include/boost/range/iterator_range.hpp:13:0,
from /usr/include/boost/range/as_literal.hpp:22,
from /usr/include/boost/algorithm/string/trim.hpp:19,
from /usr/include/boost/algorithm/string.hpp:19,
from /tmp/SBo/ledger-3.1/system.hh:168:
/usr/include/boost/range/iterator_range_core.hpp:661:9: note: template<class Iterator1T, class Iterator2T> bool boost::operator!=(const boost::iterator_range<IteratorT>&, const boost::iterator_range<Iterator2T>&)
operator!=( const iterator_range<Iterator1T>& l, const iterator_range<Iterator2T>& r )
^
/usr/include/boost/range/iterator_range_core.hpp:661:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.9.3/cstddef:45:0,
from /tmp/SBo/ledger-3.1/system.hh:159:
/tmp/SBo/ledger-3.1/src/account.h:265:22: note: ‘boost::optional<ledger::account_t::xdata_t>’ is not derived from ‘const boost::iterator_range<IteratorT>’
return xdata_ != NULL;
^
In file included from /usr/include/boost/range/iterator_range.hpp:13:0,
from /usr/include/boost/range/as_literal.hpp:22,
from /usr/include/boost/algorithm/string/trim.hpp:19,
from /usr/include/boost/algorithm/string.hpp:19,
from /tmp/SBo/ledger-3.1/system.hh:168:
/usr/include/boost/range/iterator_range_core.hpp:594:9: note: template<class IteratorT, class ForwardRange> typename boost::enable_if<boost::mpl::not_<boost::is_base_and_derived<boost::iterator_range_detail::iterator_range_tag, ForwardRange> >, bool>::type boost::operator!=(const ForwardRange&, const boost::iterator_range<IteratorT>&)
operator!=( const ForwardRange& l, const iterator_range<IteratorT>& r )
^
/usr/include/boost/range/iterator_range_core.hpp:594:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.9.3/cstddef:45:0,
from /tmp/SBo/ledger-3.1/system.hh:159:
/tmp/SBo/ledger-3.1/src/account.h:265:22: note: mismatched types ‘const boost::iterator_range<IteratorT>’ and ‘long int’
return xdata_ != NULL;
^
make[2]: *** [src/CMakeFiles/libledger.dir/stats.cc.o] Error 1
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
make: *** [all] Error 2
There are more similar errors.