LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-09-2010, 12:11 AM   #1
atanasoff
LQ Newbie
 
Registered: Dec 2008
Posts: 25

Rep: Reputation: 0
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***********************
 
Old 10-09-2010, 02:44 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,373

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
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.
 
Old 10-10-2010, 09:02 AM   #3
GooseYArd
Member
 
Registered: Jul 2009
Location: Reston, VA
Distribution: Slackware, Ubuntu, RHEL
Posts: 183

Rep: Reputation: 46
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++.
 
Old 10-11-2010, 09:16 PM   #4
atanasoff
LQ Newbie
 
Registered: Dec 2008
Posts: 25

Original Poster
Rep: Reputation: 0
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.
 
Old 10-12-2010, 10:52 PM   #5
atanasoff
LQ Newbie
 
Registered: Dec 2008
Posts: 25

Original Poster
Rep: Reputation: 0
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
 
Old 04-28-2013, 06:56 PM   #6
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Lubuntu, Slackware
Posts: 575

Rep: Reputation: 64
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?
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
Boost "slackpkg upgrade-all" performance grissiom Slackware 25 09-20-2009 10:37 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration