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

Ito Kazumitsu ito.kazumitsu@hitachi-cable.co.jp
Thu Jun 12 17:37:01 2003


Hi Dalibor,

In message "Re: [kaffe] libraries/clib/net/InetAddressImpl.c cannot be compiled on old Linux"
    on 03/06/12, Dalibor Topic <robilad@yahoo.com> writes:

> > > 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.

> 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.

Unfortunately, make says:

 gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include -I../../../kaf
fe -DKVER=\"1.1.x-cvs\" -I/home/ito/kaffe/release/kaffe-1.1.0/./kaffe/kaffevm -I
/home/ito/kaffe/release/kaffe-1.1.0/./kaffe/kaffevm/systems/unix-jthreads -I../.
./../config -I../../../include -DKAFFE_VMDEBUG -g -O2 -Wall -Wstrict-prototypes
-c InetAddressImpl.c -Wp,-MD,.deps/InetAddressImpl.TPlo  -fPIC -DPIC -o .libs/In
etAddressImpl.o
In file included from InetAddressImpl.c:32:
../../../include/dummyin6.h:74: parse error before `in_port_t'
../../../include/dummyin6.h:74: warning: no semicolon at end of struct or union
../../../include/dummyin6.h:76: parse error before `}'
InetAddressImpl.c: In function `java_net_NativeInetAddressImpl_lookupAllHostAddr
0':
InetAddressImpl.c:231: dereferencing pointer to incomplete type
InetAddressImpl.c:236: dereferencing pointer to incomplete type
InetAddressImpl.c:237: dereferencing pointer to incomplete type
InetAddressImpl.c: In function `java_net_NativeInetAddressImpl_getHostByAddr0':
InetAddressImpl.c:381: storage size of `sa_buf' isn't known
InetAddressImpl.c:413: dereferencing pointer to incomplete type
InetAddressImpl.c:414: dereferencing pointer to incomplete type
InetAddressImpl.c:415: dereferencing pointer to incomplete type
InetAddressImpl.c:416: dereferencing pointer to incomplete type
InetAddressImpl.c:419: dereferencing pointer to incomplete type
InetAddressImpl.c:381: warning: unused variable `sa_buf'
make[2]: *** [InetAddressImpl.lo] Error 1