I don't know if there is a newer release than this, I can't find it. In iomonad.c there are a number of places where fpos_t is cast to an int. You cannot do this. It can be fixed by using ftell instead. On glibc systems fpos_t is an aggregate type.