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

Ito Kazumitsu ito.kazumitsu at hitachi-cable.co.jp
Fri May 30 06:16:01 PDT 2003


In message "Re: [kaffe] libraries/clib/net/InetAddressImpl.c cannot be compiled on old Linux"
    on 03/05/30, Timothy Stack <stack at cs.utah.edu> writes:

> > (2) InetAddressImpl.c uses getnameinfo which my old Linux host does not
> >     have.
> 
> I don't understand, its supposed to be protected by an ifdef for 
> getaddrinfo.  Are you saying that it has getaddrinfo but not 
> getnameinfo?  Thats odd...

I have found "#define HAVE_GETADDRINFO 1" in config/config.h,
which must be undefined but configure may have wrongly guessed.

And the compiler message goes like this:

InetAddressImpl.c: In function `java_net_InetAddressImpl_stringToBits':
InetAddressImpl.c:120: storage size of `ia' isn't known
InetAddressImpl.c:120: warning: unused variable `ia'
InetAddressImpl.c: In function `java_net_NativeInetAddressImpl_lookupAllHostAddr
0':
InetAddressImpl.c:225: dereferencing pointer to incomplete type
InetAddressImpl.c:230: dereferencing pointer to incomplete type
InetAddressImpl.c:231: dereferencing pointer to incomplete type
InetAddressImpl.c:280: warning: implicit declaration of function `gai_strerror'
InetAddressImpl.c: In function `java_net_NativeInetAddressImpl_getHostByAddr0':
InetAddressImpl.c:375: storage size of `sa_buf' isn't known
InetAddressImpl.c:387: `NI_MAXHOST' undeclared (first use in this function)
InetAddressImpl.c:387: (Each undeclared identifier is reported only once
InetAddressImpl.c:387: for each function it appears in.)
InetAddressImpl.c:407: dereferencing pointer to incomplete type
InetAddressImpl.c:408: dereferencing pointer to incomplete type
InetAddressImpl.c:409: dereferencing pointer to incomplete type
InetAddressImpl.c:410: dereferencing pointer to incomplete type
InetAddressImpl.c:413: dereferencing pointer to incomplete type
InetAddressImpl.c:424: warning: implicit declaration of function `getnameinfo'
InetAddressImpl.c:434: `NI_NAMEREQD' undeclared (first use in this function)
InetAddressImpl.c:375: warning: unused variable `sa_buf'




More information about the kaffe mailing list