build errors in RHEL4.7 AS 64bit

Asked by Jack Quinlin

Hi,

 I trying to build libecap in RHEL4.7 AS 64bit EM64T and I keep getting these build errors. All development packages are uptdate gcc, glibc, boost but I know I am missing something? I am not a strong programmer and so I am sure that this is more of an error on my part but I have read through many email list on google and squid. So any information or pointers in the right direction would be greatly appreciated.

Output from make and I can supply any files other output needed.

n file included from ../../../src/libecap/common/area.h:7,
                 from area.cc:1:
../../../src/libecap/common/memory.h:7:22: tr1/memory: No such file or directory
In file included from ../../../src/libecap/common/area.h:7,
                 from area.cc:1:
../../../src/libecap/common/memory.h:13: error: `std::tr1' has not been declared
../../../src/libecap/common/memory.h:13: error: expected nested-name-specifier before "weak_ptr"
../../../src/libecap/common/memory.h:13: error: `weak_ptr' has not been declared
../../../src/libecap/common/memory.h:14: error: `std::tr1' has not been declared
../../../src/libecap/common/memory.h:14: error: expected nested-name-specifier before "shared_ptr"
../../../src/libecap/common/memory.h:14: error: `shared_ptr' has not been declared
In file included from area.cc:1:
../../../src/libecap/common/area.h:21: error: ISO C++ forbids declaration of `shared_ptr' with no type
../../../src/libecap/common/area.h:21: error: expected `;' before '<' token
../../../src/libecap/common/area.h:30: error: expected `,' or `...' before '&' token
../../../src/libecap/common/area.h:30: error: ISO C++ forbids declaration of `Details' with no type
../../../src/libecap/common/area.h:39: error: `Details' does not name a type
../../../src/libecap/common/area.h: In constructor `libecap::Area::Area(const char*, libecap::size_type, int)':
../../../src/libecap/common/area.h:31: error: class `libecap::Area' does not have any field named `details'
../../../src/libecap/common/area.h:31: error: `aDetails' was not declared in this scope
area.cc: At global scope:
area.cc:13: warning: converting of negative value `-0x00000000000000001' to `libecap::size_type'
area.cc: In static member function `static libecap::Area libecap::Area::FromTempString(const std::string&)':
area.cc:17: error: `shared_ptr' was not declared in this scope
area.cc:17: error: expected primary-expression before '>' token
area.cc:17: error: `details' was not declared in this scope
make[3]: *** [area.lo] Error 1

Thanks,

Jack

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
Alex Rousskov Edit question
Last query:
Last reply:
Revision history for this message
Alex Rousskov (rousskov) said :
#1

What is your g++ compiler version? I suspect your GCC installation does not have tr1 support (see http://beans.seartipy.com/2006/12/10/getting-started-with-c-tr1-libraries/). I do not know whether that is due to the GCC version or some configuration options used to install GCC on your platform. The URL referenced above contains more information about tr1, including GCC support for that to-become-standard API.

N.B. eCAP does not use or require Boost, but does use a few tr1 classes (that GCC copied from Boost). It is possible to add code to eCAP to use Boost instead of tr1, but that documented to-do item does not have a volunteer at this time.

Thank you,

Alex.

Revision history for this message
Alex Rousskov (rousskov) said :
#3

Reverting status to "needs information" after some spam got posted as a Comment.

Revision history for this message
Jack Quinlin (jquinlin) said :
#4

this can be closed as it works just fine. User error as always.

Jack

________________________________
 From: Alex Rousskov <email address hidden>
To: <email address hidden>
Sent: Tuesday, November 13, 2012 3:01 PM
Subject: Re: [Question #62289]: build errors in RHEL4.7 AS 64bit

Your question #62289 on eCAP changed:
https://answers.launchpad.net/ecap/+question/62289

    Status: Open => Needs information

Alex Rousskov changed the question status:
Reverting status to "needs information" after some spam got posted as a
Comment.

--
You received this question notification because you asked the question.

Revision history for this message
Alex Rousskov (rousskov) said :
#5

Closing per comment #4.