When attempting to emerge kde-base/kdepim-3.4.3 using gcc-4.1, I get the error below. The attached patch allows kde-base/kdepim-3.4.3 to compile with gcc-4.1. /bin/sh ../libtool --silent --mode=compile --tag=CXX x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./libical/src/libical -I./libical/src/libicalss -I./libical/src/libical -I./libical/src/libicalss -I./versit -I../ -I../ktnef -I../libemailfunctions -I../libkdepim -I/usr/kde/3.4/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 kcal_kabc_la.all_cpp.lo `test -f 'kcal_kabc_la.all_cpp.cpp' || echo './'`kcal_kabc_la.all_cpp.cpp listbase.h: In member function 'bool KCal::ListBase<T>::removeRef(T*) [with T = KCal::Incidence]': incidence.cpp:316: instantiated from here listbase.h:75: error: cannot convert 'QValueListIterator<KCal::Incidence*>' to 'const char*' for argument '1' to 'int remove(const char*)' listbase.h: In member function 'bool KCal::ListBase<T>::removeRef(T*) [with T = KCal::Attachment]': incidence.cpp:404: instantiated from here listbase.h:75: error: cannot convert 'QValueListIterator<KCal::Attachment*>' to 'const char*' for argument '1' to 'int remove(const char*)' listbase.h: In member function 'bool KCal::ListBase<T>::removeRef(T*) [with T = KCal::Alarm]': incidence.cpp:570: instantiated from here listbase.h:75: error: cannot convert 'QValueListIterator<KCal::Alarm*>' to 'const char*' for argument '1' to 'int remove(const char*)' listbase.h: In member function 'bool KCal::ListBase<T>::removeRef(T*) [with T = KCal::Todo]': calendarlocal.cpp:168: instantiated from here listbase.h:75: error: cannot convert 'QValueListIterator<KCal::Todo*>' to 'const char*' for argument '1' to 'int remove(const char*)' listbase.h: In member function 'bool KCal::ListBase<T>::removeRef(T*) [with T = KCal::Journal]': calendarlocal.cpp:504: instantiated from here listbase.h:75: error: cannot convert 'QValueListIterator<KCal::Journal*>' to 'const char*' for argument '1' to 'int remove(const char*)' make[3]: *** [libkcal_la.all_cpp.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdepim-3.4.3/work/kdepim-3.4.3/libkcal' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdepim-3.4.3/work/kdepim-3.4.3/libkcal' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdepim-3.4.3/work/kdepim-3.4.3' make: *** [all] Error 2 !!! ERROR: kde-base/kdepim-3.4.3 failed. Call stack: ebuild.sh, line 1532: Called dyn_compile ebuild.sh, line 929: Called src_compile kdepim-3.4.3.ebuild, line 31: Called kde_src_compile kde.eclass, line 113: Called kde_src_compile 'all' kde.eclass, line 230: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 226: Called die
Created attachment 85000 [details, diff] Patch to build kdepim-3.4.3 using gcc-4.1
The latest arch version seems to compile just fine.