This compile error aborted the install: kdepim-runtime-4.10.1/agents/nepomukfeeder/nepomukfeederagent.cpp:66: error: using typename outside of template Line 66 of nepomukfeederagent.cpp is typedef QSharedPointer< QMultiHash< typename Akonadi::Collection::Id, typename Akonadi::Item::Id> > MultiHashPointer; My understanding of the C++ language specification is that the "typename" keyword can only be used in an actual template definition. The above line is not, its a typedef. I changed this line: 66c66 < typedef QSharedPointer< QMultiHash< Akonadi::Collection::Id, Akonadi::Item::Id> > MultiHashPointer; --- > typedef QSharedPointer< QMultiHash< typename Akonadi::Collection::Id, typename Akonadi::Item::Id> > MultiHashPointer; and finished installing the package manually without errors. I believe the existing line with the typename is faulty, but will pass by some compilers. Reproducible: Always Steps to Reproduce: 1. emerge -1 kde-base/kdepim-runtime 2. 3. Actual Results: [ 93%] Building CXX object agents/nepomukfeeder/CMakeFiles/akonadi_nepomuk_feeder.dir/nepomukfeederagent.o cd /var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1_build/agents/nepomukfeeder && /usr/bin/x86_64-pc-linux-gnu-g++ -DDISABLE_NEPOMUK_LEGACY -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOURCE -DQT_NO_DEBUG -DNDEBUG -O2 -pipe -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -UQT_NO_EXCEPTIONS -fexceptions -UQT_NO_EXCEPTIONS -fPIC -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1_build/agents/nepomukfeeder -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1/agents/nepomukfeeder -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1 -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1_build -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1_build/agents/ontologies -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1/agents/ontologies -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1/agents/nepomukfeeder/plugin -I/var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1/agents/nepomukfeeder/. -I/usr/include/boost-1_49 -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -o CMakeFiles/akonadi_nepomuk_feeder.dir/nepomukfeederagent.o -c /var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1/agents/nepomukfeeder/nepomukfeederagent.cpp /var/tmp/portage/kde-base/kdepim-runtime-4.10.1/work/kdepim-runtime-4.10.1/agents/nepomukfeeder/nepomukfeederagent.cpp:66: error: using âtypenameâ outside of template Expected Results: Successful compile. I initially logged this in the gentoo bugtracker, but it seems to be a coding error rather than gentoo error.
compile fine here. => gentoo problem. Report to gentoo.
(In reply to comment #1) > compile fine here. > => gentoo problem. > Report to gentoo. Well, " it compiles" doesn't necessarily mean the code is right. Anyway, set a more appropriate resolution.
I already mentioned I initially assigned to gentoo, and that it does compile with some compilers. Its a case of strict vs less strict language checking.
Note that this is apparently a GCC 4.4 issue.
gentoo also said a gcc upgrade will probably bypass the issue. I still think its a minor fault in the code though.
Apparently this is a known problem fixed in a later version: http://quickgit.kde.org/?p=kdepim-runtime.git&a=commit&h=3481748772adce09dd57c7ca5f006d7c7f37006d I coped that url from the gentoo bug notes. So this bug can be closed.