[kaffe] HP-UX and IPv6 still fail
robilad at kaffe.org
Tue Sep 16 10:20:03 PDT 2003
Dalibor Topic wrote:
> Riccardo wrote:
>> HP-UX and IPv6 still fail
>> I tried compiling kaffe-cvs on another HP=UX 10.20 box, which has an
>> older compiler (gcc 2.95) and generally less software installed,
>> nevertheless inet6 functions fail to be correctly included from the
>> dummy files probably.
> I've got around to try to fix the HP-UX problems, following yous and
> Helmer's lead.
> So I'm trying to buld kaffe on the HPUX box from TestDrive. Ugh. The
> include file for /usr/include/sys/socket.h seems to be badly broken so
> the configure script breaks when trying to detect the size of sin_port.
> for some information.
> I'm building me a fresh gcc 3.3.1 (as TestDrive only has gcc 3.2.3) and
> hope that the configure script will work with that one.
Turns out I can't build gcc 3.3.1 with the gcc (3.2.3) that's on the
test drive machine. The compiler doesn't seem to be able to include the
proper definition for size_t when compiling libiberty/floatformat.c.
This breaks both binutils 2.14 and gcc 3.3.1. Great.
gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../binutils-2.14/libiberty/../include -W -Wall -Wtraditional
-pedantic ../../binutils-2.14/libiberty/floatformat.c -o floatformat.o
../../binutils-2.14/libiberty/floatformat.c:25: syntax error before "size_t"
../../binutils-2.14/libiberty/floatformat.c:26: syntax error before "size_t"
It seems that the fixincludes script from gcc 3.2.3 broke the fixed
stddef.h slightly, as size_t gets never defined when compiling the file.
bash-2.04$ gcc -E -H ../gcc-3.3.1/libiberty/floatformat.c
-I../gcc-3.3.1/include | grep size_t
extern void *memcpy (void *s1, const void *s2, size_t n);
extern void *memset (void *s, int c, size_t n);
Multiple include guards may be useful for:
I'm building gcc with hp's c compiler now, I hope that will work better.
More information about the kaffe