LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ledger-cli slackbuild won't build against Boost in current (https://www.linuxquestions.org/questions/slackware-14/ledger-cli-slackbuild-wont-build-against-boost-in-current-4175554547/)

navigium 09-26-2015 02:56 AM

ledger-cli slackbuild won't build against Boost in current
 
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.

55020 09-26-2015 03:27 AM

SlackBuilds.org is for 14.1, not for -current. But there's an unofficial (but well known) repo that carries SBo patches for -current.

https://github.com/Ponce/slackbuilds

and yes, it has ledger

https://github.com/Ponce/slackbuilds...usiness/ledger

navigium 09-26-2015 03:51 AM

Quote:

Originally Posted by 55020 (Post 5425859)
SlackBuilds.org is for 14.1, not for -current. But there's an unofficial (but well known) repo that carries SBo patches for -current.

https://github.com/Ponce/slackbuilds

and yes, it has ledger

https://github.com/Ponce/slackbuilds...usiness/ledger

Thank you for your help. I'm pretty new to running current. I tend to stick to releases until my hardware isn't supported anymore. That's why this wasn't known to me (even though I know that SlackBuild are for 14.1, that's why I tried to build it manually).

brian-in-ohio 08-24-2021 08:52 AM

ledger-cli build slackware current
 
Same problem, years later. Just wanted to thank ponce for his git repository, ledger built fine on Slackware current using his slackbuild. Thanks!


All times are GMT -5. The time now is 05:28 AM.