I emerged kde-meta-3.4.2 and kdesdk-meta-3.4.2 from scratch on x86 using gcc-4.0.1, binutils-2.16.1 and glibc-2.3.5-20050722. The only ebuild refusing to compile was kghostview contained in kdegraphics-(meta)-3.4.2 see attachment. I found an upstream patch on http://websvn.kde.org/trunk/KDE/kdegraphics/kghostview/displayoptions.h?rev=423531&r1=409203&r2=423531 It is not the latest revision (that would probably lead to problems as kde4 is in sight) and helped me also to compile the 3.4.1 ebuild. Unfortunately, this patch was only applied to the trunk and not to the 3.4 branch and obviously therefore not included in the tarball. Probably the patch is also needed for the kdegraphics-3.4.2 monolithic ebuild to compile properly with gcc4.
Created attachment 65096 [details] the error message
Created attachment 65097 [details, diff] the gcc4 patch
Created attachment 65098 [details, diff] patch for the kghostview-3.4.2.ebuild
In portage. Please ask to backport the fix to the 3.4 branch, as many other fixes for gcc4 were already committed there, e.g. http://websvn.kde.org/branches/KDE/3.4/kdegraphics/kiconedit/kiconconfig.h?rev=430165&r1=409205&r2=430165
(In reply to comment #4) > In portage. > > Please ask to backport the fix to the 3.4 branch, as many other fixes for gcc4 done, it is backported see http://bugs.kde.org/show_bug.cgi?id=110249 thanks