>> I'm trying to recompile the latest Lazarus (using a quite recent FPC: >> version 2.5.1 [2010/03/29] for i386) > > Not enough recent. Please update. Right. I got the same error and updating to latest FPC trunk version helped. I think it doesn't define version "2_4" any more, or something similar. Juha