Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-26-2005
rc_hz 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
Send a message via MSN to rc_hz
-->
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)
Reply With Quote
  #2 (permalink)  
Old 11-26-2005
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,060
What version of Red Hat are you trying to build Ice on?
Reply With Quote
  #3 (permalink)  
Old 11-26-2005
rc_hz 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
Send a message via MSN to rc_hz
-->
Red Hat Release 7.3 (Valhalla)
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
Reply With Quote
  #4 (permalink)  
Old 11-26-2005
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,060
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build error in Redhat Linux 9.0 wuqiu Help Center 10 05-16-2006 11:39 PM
Does ICE can build&run on Linux with IA64? Yunqiao Yin Help Center 2 10-17-2005 01:23 AM
Performance problems on RedHat Linux 2.4.21 kernel gasproni Help Center 7 10-04-2005 10:54 AM
Ice 1.2.0 Linux build patch bernard Patches 0 01-30-2004 06:23 PM
Build problem on Linux Jeff Holle Help Center 5 08-13-2003 01:21 AM


All times are GMT -4. The time now is 10:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.