Changed the thread title as I can't build a working 2.2.4 either.
Problem is the same. Trying to build a project fails with lots of undefined references.
Also the object files in my build of Lazarus are about one half or one third of the ones in the official package.
Very strange!
FPC seems OK, ie with the official 2.2.4 Lazarus package everything works.