I encountered the following error whilst compiling qt (3.3.4-r8) on a box with modular-x: kernel/qapplication_x11.cpp:5957:26: X11/SM/SMlib.h: No such file or directory It seems qt has a missing dependency on x11-libs/libSM. Compilation proceeds without error once libSM is installed.
Allrighty, qt is now patched.