Problems compiling in OpenSuse 11.1

Asked by Javier Román

I'm trying to compile libecap 0.0.2 in OpenSuse 11.1 but I got the error below. Could somebody help me?
Thanks.

ERROR:
make[4]: se ingresa al directorio `/home/macrosoft/Desktop/libecap-0.0.2/src/libecap/common'
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../src -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 -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
name.cc: At global scope:
name.cc:29: fatal error: opening dependency file .deps/name.Tpo: Permiso denegado
compilation terminated.
make[4]: *** [name.lo] Error 1
make[4]: se sale del directorio `/home/macrosoft/Desktop/libecap-0.0.2/src/libecap/common'
make[3]: *** [all] Error 2
make[3]: se sale del directorio `/home/macrosoft/Desktop/libecap-0.0.2/src/libecap/common'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/home/macrosoft/Desktop/libecap-0.0.2/src/libecap'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/macrosoft/Desktop/libecap-0.0.2/src'
make: *** [all-recursive] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Javier Román
Solved:
Last query:
Last reply:
Revision history for this message
Javier Román (jjromanc) said :
#1

I tried to compile on Ubuntu 9.04 and I got the same error.

any help?

Can I use other distro that it could work?

thanks.

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

Please see the "related bugs" link and #include <climits> in names.cc.

Revision history for this message
Javier Román (jjromanc) said :
#3

Ok, I compiled it but #include <climits> was and I changed it by #include <climits.h> and everything ok.

thanks.