See http://mantis.freepascal.org/bug_view_advanced_page.php?bug_id=11837. There was a recent change in gtk that prevents (for instance) lazarus from compiling. The bug is in fpc and is already corrected. Unfortunately the portage version of fpc used by lazarus is still buggy. The attached patch and ebuild fix fpc and make lazarus compile again. The revision bump is necessary because the bug also prevents lazarus programs from compiling.
Created attachment 166920 [details, diff] The proposed patch This is the proposed patch, a slightly tweaked version of the original patch from the freepascal bug report. The credit isn't mine ;)
Created attachment 166921 [details] The proposed ebuild
Thanks, this is fixed in dev-lang/fpc-2.2.0-r1 and in dev-lang/fpc-2.2.2.