Can't compile on Lenny

Asked by landysaccount on 2009-11-15

I'm stuck trying to get ecap installed on my system.

I get this when I type make:

if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../src -Iyes -g -O2 -MT name.lo -MD -MP -MF ".deps/name.Tpo" -c -o name.lo name.cc; \
        then mv -f ".deps/name.Tpo" ".deps/name.Plo"; else rm -f ".deps/name.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I../../../src -Iyes -g -O2 -MT name.lo -MD -MP -MF .deps/name.Tpo -c name.cc -fPIC -DPIC -o .libs/name.o
name.cc: In constructor ‘libecap::Name::Name()’:
name.cc:7: error: ‘INT_MIN’ was not declared in this scope
name.cc: In constructor ‘libecap::Name::Name(const std::string&)’:
name.cc:11: error: ‘INT_MIN’ was not declared in this scope
name.cc: In constructor ‘libecap::Name::Name(const std::string&, int)’:
name.cc:15: error: ‘INT_MIN’ was not declared in this scope
name.cc: In member function ‘bool libecap::Name::assignedHostId() const’:
name.cc:23: error: ‘INT_MIN’ was not declared in this scope
name.cc: In member function ‘void libecap::Name::assignHostId(int) const’:
name.cc:27: error: ‘INT_MIN’ was not declared in this scope
make[4]: *** [name.lo] Error 1
make[4]: Leaving directory `/workingdir/libecap-0.0.2/src/libecap/common'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/workingdir/libecap-0.0.2/src/libecap/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/workingdir/libecap-0.0.2/src/libecap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/workingdir/libecap-0.0.2/src'
make: *** [all-recursive] Error 1

Am I missing something?

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
landysaccount
Solved:
2009-11-15
Last query:
2009-11-15
Last reply:
landysaccount (landysaccount) said : #1

I was able to install by editing:

/libecap-0.0.2/src/libecap/common/name.cc file and

adding #include <limits.h>
instead of #include <limits>