[kaffe] libraries/clib/net/InetAddressImpl.c cannot be compiled on old Linux

Dalibor Topic robilad at yahoo.com
Thu Jun 12 09:32:01 PDT 2003


Hi Tim, hi Ito,

--- Timothy Stack <stack at cs.utah.edu> wrote:
> 
> On Friday, May 30, 2003, at 08:08  AM, Dalibor Topic wrote:
> >
> >> 2. Patch replace/getifaddrs.c
> >>
> >>    Old Linux does not have linux/netlink.h and linux/rtnetlink.h.
> >>    So I do not expect kaffe to use replace/getifaddrs.c.
> >
> > I'll happily let Tim deal with the ipv6 stuff ;)
> 
> Just some configure magic i think.

that should be fixed by my first patch from today.

> >> 3. Install getaddrinfo.
> >>
> >>    Get getaddrinfo-1.5.1.tar.gz from
> >>      http://www.sra.co.jp/people/m-kasahr/getaddrinfo/
> >>    and compile getaddrinfo.c.  This program provides
> >>    getaddrinfo() and getnameinfo().
> >
> > License is modified BSD without advertising clause, which is GPL 
> > compatible, so
> > it can be merged in. It's up to Tim to decide if and how it should go 
> > in, as he
> > wrote the IPv6 support.
> 
> The existing code already falls back to the old style gethostbyname, 
> its just that I didn't bother to check for both getaddrinfo/getnameinfo 
> since it seemed like they would always come in pairs.  Simple enough to 
> just add a check for getnameinfo too...

My second patch merged the getaddrinfo replacement function in, alongside with
some IPv6 dummy macros from its package to enable compilation on IPv4 systems.
I hope this will fix most of the issues on Linux 2.0 and on the Flest
regression test host, which has been suffering from the same problems,
apparently.

cheers,
dalibor topic

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com




More information about the kaffe mailing list