After syncing my gentoo portage, I have discovered many conflicts in my portage tree. KDE 3.5 has been marked stable on amd64, but the update could not be straightforward because of blocking packages.
I quickly found out that there was a conflict between monolithic packages and modulized packages (like kdebase vs kdebase-meta which simply requires konsole, kstart, kdepasswd, etc.) It took me much more time to understand the source of this conflict. It was pretty simple, though. In my world file, there was the very monolithic kde-base/kde (which was a mistake because I uninstalled it long ago).
Then, I struggle longuer with the compilation of the individual packages. Whatever the order I tried, I was stopped with the error: xxx.moc: No such file or directory For instance:
make[1]: Entering directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0'
Making all in kdeeject
make[2]: Entering directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdeeject'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdeeject'
Making all in kdialog
make[2]: Entering directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdialog'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kdialog.o `test -f 'kdialog.cpp' || echo './'`kdialog.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o widgets.o `test -f 'widgets.cpp' || echo './'`widgets.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o klistboxdialog.o `test -f 'klistboxdialog.cpp' || echo './'`klistboxdialog.cpp
klistboxdialog.cpp:25:30: klistboxdialog.moc: No such file or directory
make[2]: *** [klistboxdialog.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0/kdialog'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdialog-3.5.0/work/kdialog-3.5.0'
make: *** [all] Error 2
!!! ERROR: kde-base/kdialog-3.5.0 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
ebuild.sh, line 1248: Called kde-meta_src_compile
kde-meta.eclass, line 410: Called kde_src_compile
kde.eclass, line 164: Called kde_src_compile 'all'
kde.eclass, line 306: Called kde_src_compile 'myconf' 'configure' 'make'
kde.eclass, line 302: Called die
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
Done.
The clue was
/usr/share/aclocal/linc.m4:1: warning: underquoted definition of AM_PATH_LINC
run info '(automake)Extending aclocal'
It sounds like automake was not up to date. Unfortunately it was (almost)
kro64 bin # emerge -s automake
Searching...
[ Results for search key : automake ]
[ Applications found : 2 ]
* sys-devel/automake
Latest version available: 1.9.6-r2
Latest version installed: 1.9.6-r1
Size of files: 747 kB
I then gave a try to
cd /usr/bin/
mv automake automake-wrapper
ln -s automake-1.9 automake
And that worked
automake-wrapper was guilty!
Hope this helps!