I have just installed Lazarus 1.0.4 on Fedora and tried to do my first compilation (in this case, rebuild the IDE for installing a component package) and I've got the messages below (the packages were compiled well, the problem occurred when linking). So I tried to compile a simple project and the problem was the same.
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/lib/libEGL.so.1: undefined reference to `wl_display_dispatch_queue_pending'
project1.lpr(20,1) Error: Error while linking
project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping