Results 1 to 5 of 5

Thread: Error 1 while installing ICE on CentOS

  1. #1
    Freekers is offline Registered User
    Name: Freek Cleanbread
    Organization: Personal
    Project: Mumble TeamSync for BF3 Gameservers
    Join Date
    Dec 2011
    Posts
    3

    Error 1 while installing ICE on CentOS

    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::BasicStr eam&, 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::BasicS tream&, 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.

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    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

  3. #3
    Freekers is offline Registered User
    Name: Freek Cleanbread
    Organization: Personal
    Project: Mumble TeamSync for BF3 Gameservers
    Join Date
    Dec 2011
    Posts
    3
    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!

    Code:
    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

  4. #4
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Quote Originally Posted by Freekers View Post
    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

  5. #5
    Freekers is offline Registered User
    Name: Freek Cleanbread
    Organization: Personal
    Project: Mumble TeamSync for BF3 Gameservers
    Join Date
    Dec 2011
    Posts
    3
    Hi Mark,

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

    Merry Christmas.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can not install ICE in CentOS 5.2
    By anhpnt in forum Help Center
    Replies: 1
    Last Post: 08-12-2009, 10:59 PM
  2. Replies: 10
    Last Post: 04-23-2009, 03:08 AM
  3. Help installing ice for php5
    By Kami in forum Help Center
    Replies: 2
    Last Post: 04-08-2009, 05:53 PM
  4. Building Ice-3.3.0 on CentOS 4.6
    By stwhit in forum Help Center
    Replies: 5
    Last Post: 08-07-2008, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •