Home Help Center

Error 1 while installing ICE on CentOS

FreekersFreekers Member Freek CleanbreadOrganization: PersonalProject: Mumble TeamSync for BF3 Gameservers
Hi,

I'm trying to install Ice on my CentOS 5.7 VPS and I just can't get it done.
I keep getting an Error 1 with a bunch of other errors:

ConnectionI.cpp:28:19: error: bzlib.h: No such file or directory
ConnectionI.cpp: In function 'std::string getBZ2Error(int)':
ConnectionI.cpp:2482: error: 'BZ_RUN_OK' was not declared in this scope
ConnectionI.cpp:2486: error: 'BZ_FLUSH_OK' was not declared in this scope
ConnectionI.cpp:2490: error: 'BZ_FINISH_OK' was not declared in this scope
ConnectionI.cpp:2494: error: 'BZ_STREAM_END' was not declared in this scope
ConnectionI.cpp:2498: error: 'BZ_CONFIG_ERROR' was not declared in this scope
ConnectionI.cpp:2502: error: 'BZ_SEQUENCE_ERROR' was not declared in this scope
ConnectionI.cpp:2506: error: 'BZ_PARAM_ERROR' was not declared in this scope
ConnectionI.cpp:2510: error: 'BZ_MEM_ERROR' was not declared in this scope
ConnectionI.cpp:2514: error: 'BZ_DATA_ERROR' was not declared in this scope
ConnectionI.cpp:2518: error: 'BZ_DATA_ERROR_MAGIC' was not declared in this scope
ConnectionI.cpp:2522: error: 'BZ_IO_ERROR' was not declared in this scope
ConnectionI.cpp:2526: error: 'BZ_UNEXPECTED_EOF' was not declared in this scope
ConnectionI.cpp:2530: error: 'BZ_OUTBUFF_FULL' was not declared in this scope
ConnectionI.cpp: In member function 'void Ice::ConnectionI::doCompress(IceInternal::BasicStream&, IceInternal::BasicStream&)':
ConnectionI.cpp:2555: error: 'BZ2_bzBuffToBuffCompress' was not declared in this scope
ConnectionI.cpp:2556: error: 'BZ_OK' was not declared in this scope
ConnectionI.cpp: In member function 'void Ice::ConnectionI::doUncompress(IceInternal::BasicStream&, IceInternal::BasicStream&)':
ConnectionI.cpp:2613: error: 'BZ2_bzBuffToBuffDecompress' was not declared in this scope
ConnectionI.cpp:2614: error: 'BZ_OK' was not declared in this scope
make[2]: *** [ConnectionI.o] Error 1
make[2]: Leaving directory `/root/ice/Ice-3.4.2/cpp/src/Ice'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/ice/Ice-3.4.2/cpp/src'
make: *** [all] Error 1

I'm a Linux newbie but I'm willing to learn. I've searched and searched but I cannot solve this one.

Tips and tricks are welcome!

Thank you very much in advance

Kind regards.

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    Welcome to the forum.

    It looks like your system is missing the bzip2-devel package. One way to install it is as follows:

    # yum install bzip2-devel

    Regards,
    Mark
  • FreekersFreekers Member Freek CleanbreadOrganization: PersonalProject: Mumble TeamSync for BF3 Gameservers
    Hi Mark,

    Thank you very much for the quick reply. I appreciate it.

    First, how did you see that I was missing the 'bzip2-devel package' package?

    I installed the bzip2-devel package but it now gives me the same kind of error.
    It looks like I'm missing more depencenies. What dependencies does ICE exactly need? I searched but I couldn't find them (could be me though!). The perl-XML-Parser is installed.
    I'm running CentOS5 minimal so I guess that's what causing most of the trouble.

    Thanks again in advance!
    Parser.cpp:11:19: error: expat.h: No such file or directory
    Parser.cpp:311: error: 'XML_Parser' does not name a type
    Parser.cpp:319: error: expected ',' or '...' before '*' token
    Parser.cpp:319: error: ISO C++ forbids declaration of 'XML_Char' with no type
    Parser.cpp: In function 'void startElementHandler(void*, int)':
    Parser.cpp:324: error: 'attr' was not declared in this scope
    Parser.cpp:329: error: 'struct CallbackData' has no member named 'parser'
    Parser.cpp:329: error: 'XML_GetCurrentLineNumber' was not declared in this scope
    Parser.cpp:330: error: 'struct CallbackData' has no member named 'parser'
    Parser.cpp:330: error: 'XML_GetCurrentColumnNumber' was not declared in this scope
    Parser.cpp:331: error: 'name' was not declared in this scope
    Parser.cpp: At global scope:
    Parser.cpp:335: error: expected ',' or '...' before '*' token
    Parser.cpp:335: error: ISO C++ forbids declaration of 'XML_Char' with no type
    Parser.cpp: In function 'void endElementHandler(void*, int)':
    Parser.cpp:338: error: 'struct CallbackData' has no member named 'parser'
    Parser.cpp:338: error: 'XML_GetCurrentLineNumber' was not declared in this scope
    Parser.cpp:339: error: 'struct CallbackData' has no member named 'parser'
    Parser.cpp:339: error: 'XML_GetCurrentColumnNumber' was not declared in this scope
    Parser.cpp:340: error: 'name' was not declared in this scope
    Parser.cpp: At global scope:
    Parser.cpp:344: error: expected ',' or '...' before '*' token
    Parser.cpp:344: error: ISO C++ forbids declaration of 'XML_Char' with no type
    Parser.cpp: In function 'void characterDataHandler(void*, int)':
    Parser.cpp:348: error: 's' was not declared in this scope
    Parser.cpp:348: error: 'len' was not declared in this scope
    Parser.cpp:349: error: 'struct CallbackData' has no member named 'parser'
    Parser.cpp:349: error: 'XML_GetCurrentLineNumber' was not declared in this scope
    Parser.cpp:350: error: 'struct CallbackData' has no member named 'parser'
    Parser.cpp:350: error: 'XML_GetCurrentColumnNumber' was not declared in this scope
    Parser.cpp: In static member function 'static void IceXML::Parser::parse(std::istream&, IceXML::Handler&)':
    Parser.cpp:391: error: 'XML_Parser' was not declared in this scope
    Parser.cpp:391: error: expected `;' before 'parser'
    Parser.cpp:393: error: 'struct CallbackData' has no member named 'parser'
    Parser.cpp:393: error: 'parser' was not declared in this scope
    Parser.cpp:395: error: 'XML_SetUserData' was not declared in this scope
    Parser.cpp:396: error: 'XML_SetElementHandler' was not declared in this scope
    Parser.cpp:397: error: 'XML_SetCharacterDataHandler' was not declared in this scope
    Parser.cpp:410: error: 'XML_Parse' was not declared in this scope
    Parser.cpp:412: error: 'XML_GetErrorCode' was not declared in this scope
    Parser.cpp:412: error: 'XML_ErrorString' was not declared in this scope
    Parser.cpp:412: error: 'XML_GetCurrentLineNumber' was not declared in this scope
    Parser.cpp:413: error: 'XML_GetCurrentColumnNumber' was not declared in this scope
    Parser.cpp:420: error: 'XML_ParserFree' was not declared in this scope
    Parser.cpp:424: error: 'XML_ParserFree' was not declared in this scope
    make[2]: *** [Parser.o] Error 1
    make[2]: Leaving directory `/root/ice/Ice-3.4.2/cpp/src/IceXML'
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/root/ice/Ice-3.4.2/cpp/src'
    make: *** [all] Error 1
    
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Freekers wrote: »
    First, how did you see that I was missing the 'bzip2-devel package' package?

    The error message that bzlib.h is missing indicates that the bzip2-devel package is not installed.

    In the Ice source distribution, the file cpp/INSTALL.LINUX lists the third-party dependencies. In addition to bzip2-devel, you will also need openssl-devel and expat-devel.

    Another third-party dependency is mcpp-devel. We have added our own patches to this package, so I strongly recommend that you either download our RHEL RPM (which should work fine on your CentOS installation) or download our third-party source archive and build it from source yourself. You could also use our Berkeley DB RPMs as well if you would rather not build it.

    Regards,
    Mark
  • FreekersFreekers Member Freek CleanbreadOrganization: PersonalProject: Mumble TeamSync for BF3 Gameservers
    Hi Mark,

    Thanks again for your reply!
    I got it running and all set up now :) Thanks again for the kind help.

    Merry Christmas.
Sign In or Register to comment.