The build of qt-3.3.8b fails with libpng-1.4.2 on my system. The problem are some changes in API. Qt patch and updated ebuild attached.
*** This bug has been marked as a duplicate of bug 319487 ***