Problems compiling hugs with glibc 2.2

Suchandra Thapa s-thapa-11@alumni.uchicago.edu
Sun, 31 Dec 2000 20:35:41 -0600


	The Gnu libc v2.2 changes the type definition 
of fpos_t from a long to a struct with a 
long int(__pos) and a structure dealing with conversions
of multibyte characters(_mbstate).  This causes the compilation
of iomonads.c to fail with errors at lines 715 and 
736 since fpos_t seems to be treated as a long.  A quick fix
that seems to work is to change config.h to comment out the
defines for fgetpos and fseekpos.  I tried making the 
appropriate changes in the references to variables of type 
fpos_t but I got a compilation error and didn't investigate 
further.  Also the pos member of the fpos_t is a 64 bit 
integer so that files greater than 2GB can be manipulated. 
It seems that the current typecast from fpos_t to int seems 
to have the potential for problems with files greater than 
2GB on 32bit platforms.  FYI, glibc is currently only used on 
redhat 7 systems but other linux distributions will probably migrate
to it in the future.


Shop Safely Online Without a Credit Card
http://www.rocketcash.com