Results 1 to 4 of 4

Thread: Build error on Red Hat Linux (kernel:2.4.18)

  1. #1
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189

    Build error on Red Hat Linux (kernel:2.4.18)

    It failed and report:
    Network.cpp:17:23: ifaddrs.h: No such file or directory.

    This is the code:
    Code:
    #if defined(_WIN32)
    #  include <winsock2.h>
    #elif defined(__linux) || defined(__APPLE__) || defined(__FreeBSD__)
    #  include <ifaddrs.h>
    #else
    #  include <sys/ioctl.h>
    #  include <net/if.h>
    #  ifdef __sun
    #    include <sys/sockio.h>
    #  endif
    #endif
    I can not find the "ifaddrs.h" file on my RH Linux.

    Thanks!
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    What version of Red Hat are you trying to build Ice on?

  3. #3
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189
    Red Hat Release 7.3 (Valhalla)
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

  4. #4
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Note that we do not officially support RedHat 7.3. If you need this support for a commercial project please contact us at sales@zeroc.com and we can provide you a patch. Otherwise, it shouldn't be too difficult to do this yourself.

    Apparently, getifaddrs was added to RedHat after 7.3. This is needed to implement IceInternal::getLocalHosts (src/Ice/Network.cpp). You can probably use the alternative implementation that uses SIOCGIFCONF.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Installing Ice 3.3.1 on Red Hat Enterprise 5
    By genetics_lab in forum Help Center
    Replies: 8
    Last Post: 07-28-2010, 03:29 PM
  2. Building Ice-3.3.0 on Red Hat 9
    By pjtait in forum Help Center
    Replies: 19
    Last Post: 09-10-2008, 06:09 AM
  3. Red Hat Enterprise Linux 5 support
    By bernard in forum Announcements
    Replies: 0
    Last Post: 06-13-2007, 04:54 PM
  4. Replies: 6
    Last Post: 10-07-2003, 11:07 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
  •