LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-26-2015, 02:56 AM   #1
navigium
Member
 
Registered: Aug 2014
Location: Switzerland
Distribution: Slackware, FreeBSD
Posts: 119

Rep: Reputation: 58
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.
 
Old 09-26-2015, 03:27 AM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 09-26-2015, 03:51 AM   #3
navigium
Member
 
Registered: Aug 2014
Location: Switzerland
Distribution: Slackware, FreeBSD
Posts: 119

Original Poster
Rep: Reputation: 58
Quote:
Originally Posted by 55020 View Post
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).
 
Old 08-24-2021, 08:52 AM   #4
brian-in-ohio
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Rep: Reputation: Disabled
Smile 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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Icecat won't build in latest current slackass Slackware 9 04-29-2015 04:34 PM
Stellarium won't build from slackbuild Stephen Morgan Slackware 3 11-11-2013 09:51 AM
[SOLVED] zoneminder-1.25.0 won't build in slackware64-current buckprivatemil Slackware 3 07-19-2013 08:07 PM
[SOLVED] boost-build failed to build engine Red Hat 4.1.2 and GCC 4.1.2 Fritz_Doll Programming 2 08-10-2012 02:00 PM
What changes must be made in a slackBuild from 11.x To build for Slackware64 current? Alexvader Slackware 5 12-30-2009 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration