I needed to fix some things related to KDEDIR in the xsim ebuilds, but it seems they fail to compile for many reasons: missing '#inlcude <cassert>" in some files, a broken LDFLAGS string while compiling, and compiling against db-4 headers while linking against db-4.1 library. Do you experience the same? If you say so, I can go and apply some fixes...
yes, i can reproduce it. i guess its a gcc 3.4 thing? if you have some fixes, feel free to check them in :) otherwise i'll take a look as soon as well.
I checked in a patch that works for me (it's with gcc-3.3 here btw). It's straight into stable since it did not compile anyway. Feel free to take a look (and maybe remove older versions).