LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   have "boost" newsbeuter will not compile (http://www.linuxquestions.org/questions/slackware-14/have-boost-newsbeuter-will-not-compile-837081/)

atanasoff 10-09-2010 01:11 AM

have "boost" newsbeuter will not compile
 
I've been trying to compile newsbeuter-2.3 on a Slackware 11.0
system. I think the problem is an #include <tr1/memory> line. I
have a "boost" package installed from slacky. Have tried
#include <boost/tr1/memory> but compiler can't find that either.

I get the following errors:

***********************snip***********************

c++ -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Wall -Wextra -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/include/libxml2 -I/usr/local/include -o src/configcontainer.o -c src/configcontainer.cpp
c++ -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Wall -Wextra -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/include/libxml2 -I/usr/local/include -o src/configparser.o -c src/configparser.cpp
c++ -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Wall -Wextra -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/include/libxml2 -I/usr/local/include -o src/colormanager.o -c src/colormanager.cpp
In file included from include/formaction.h:6,
from include/feedlist_formaction.h:4,
from src/colormanager.cpp:6:
include/rss.h:12:22: tr1/memory: No such file or directory
In file included from include/formaction.h:6,
from include/feedlist_formaction.h:4,
from src/colormanager.cpp:6:
include/rss.h:84: error: `std::tr1' has not been declared
include/rss.h:84: error: `shared_ptr' has not been declared
include/rss.h:84: error: expected `,' or `...' before '<' token

***********************snip***********************

business_kid 10-09-2010 03:44 AM

Quote:

include/rss.h:12:22: tr1/memory: No such file or directory
I'd fix that bit first. It's nearly always the first error that causes others.

GooseYArd 10-10-2010 10:02 AM

the TR1 extensions are a relatively recent addition to the g++ library. I'm not sure which version of gcc is included in 11.0, but if its older than 4.3 you almost definitely need a newer g++.

atanasoff 10-11-2010 10:16 PM

I have gcc-3.4.6 which does not seem to have the TR1 library, which was why I was exploring "boost". I'm building a newer version of Boost-1.38 that should have the TR1 extensions, and that may take as long as 2-3 days. My current boost-1.34.1 does not seem to work eventhough the TR1 stuff is there.

atanasoff 10-12-2010 11:52 PM

Problem solved:

Compiled and installed a newer version of boost:
boost-1.38.0 from slackbuilds.org

Untared source:
Modified 3 files:

/include/regexmanager.h
/include/rssh.h
/rss/rsspp_internal.h

by replacing line:

#include <tr1/memory>

with

#include <boost/tr1/memory.hpp>

retared source
built package with src2pkg

lucmove 04-28-2013 07:56 PM

I need this, but I downloaded boost 1.38.0 from slackbuilds.org and untarred it and there is no /include/ or /rss/ directory.

I also looked for the individual files with 'find' and couldn't find any of them. Any ideas, anyone?


All times are GMT -5. The time now is 09:40 AM.