compiling hugs with latest linux glibcs

Ganesh Sittampalam ganesh@earth.li
Sat, 30 Dec 2000 14:19:31 +0000 (GMT)


Hi,

When I try to compile the February 2000 release of hugs with latest
releases of linux glibc (found in redhat 7.0 and the development
distribution of debian), I get the following errors:

gcc -c -g  -O2 builtin.c
In file included from builtin.c:1431:
iomonad.c: In function `primHGetPosn':
iomonad.c:715: aggregate value used where an integer was expected
iomonad.c: In function `primHSetPosn':
iomonad.c:730: invalid initializer
iomonad.c:736: incompatible types in assignment
make: *** [builtin.o] Error 1

This is caused by changes to the fpos_t type, which is no longer directly
castable to an int. I'm not sure what the appropriate fix is, since there
don't seem to be accessor functions for the type - making the source look
inside the structure that fpos_t has become would then break with older
glibcs. I've just removed the references to fgetpos and fsetpos from
src/unix/configure.in to make it compile for now.

Regards,

Ganesh Sittampalam