Solaris 7 and xinetd 2.3.11

Douglas Kong <[email protected]> Tue, 08 Jul 2003 01:24:48 +0800
Newsgroups gmane.network.xinetd
Message-ID <[email protected]>
Hi,

I get the following error when i try to make the xinetd 2.3.11.
I am running Solaris 7 on SPARC, using gcc 2.95, either gnu make or
Solaris make, both return the same error. It seems Solaris 7 does not
support IPv6, and the make is somehow calling the AF_INET6.

axi:/home/douglas/src/xinetd-2.3.11# make
cd libs/src/portable ; make CC=gcc CFLAGS='-g -O2  -I../../include'
install
make[1]: Entering directory
`/home/douglas/src/xinetd-2.3.11/libs/src/portable'
gcc -g -O2  -I../../include   -c -o inet_ntop.o inet_ntop.c
In file included from inet_ntop.c:33:
/usr/include/sys/socket.h:56: warning: empty declaration
inet_ntop.c:56: parse error before `__P'
inet_ntop.c:57: parse error before `__P'
inet_ntop.c: In function `inet_ntop':
inet_ntop.c:76: warning: return makes pointer from integer without a
cast
inet_ntop.c:77: `AF_INET6' undeclared (first use in this function)
inet_ntop.c:77: (Each undeclared identifier is reported only once
inet_ntop.c:77: for each function it appears in.)
inet_ntop.c:78: warning: return makes pointer from integer without a
cast
inet_ntop.c: At top level:
inet_ntop.c:99: warning: `inet_ntop4' was declared implicitly `extern'
and
later `static'
inet_ntop.c:76: warning: previous declaration of `inet_ntop4'
inet_ntop.c:99: warning: type mismatch with previous implicit
declaration
inet_ntop.c:76: warning: previous implicit declaration of `inet_ntop4'
inet_ntop.c:99: warning: `inet_ntop4' was previously implicitly declared
to return `int'
inet_ntop.c:122: warning: `inet_ntop6' was declared implicitly `extern'
and later `static'
inet_ntop.c:78: warning: previous declaration of `inet_ntop6'
inet_ntop.c:122: warning: type mismatch with previous implicit
declaration
inet_ntop.c:78: warning: previous implicit declaration of `inet_ntop6'
inet_ntop.c:122: warning: `inet_ntop6' was previously implicitly
declared
to return `int'
make[1]: *** [inet_ntop.o] Error 1
make[1]: Leaving directory
`/home/douglas/src/xinetd-2.3.11/libs/src/portable'
make: *** [libportable] Error 2

Can anyone help? Thanks.

Best Regards,
Douglas Kong