Version: (using KDE 3.5.9) Installed from: Gentoo Packages Compiler: gcc-4.2.3 (gentoo unstable) OS: Linux When passing the --enable-final flag to configure, korganizer fails to compile with the following error: /bin/sh ../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -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 -o libkorganizer_calendar.la -rpath /usr/kde/3.5/lib64 -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64 -R /usr/kde/3.5/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 1:0 stdcalendar.lo -lkparts ../libkdepim/libkdepim.la ../libkcal/libkcal.la /bin/sh ../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./interfaces -I../libemailfunctions -I../libkpimidentities -I../libkholidays -I../mimelib -I../certmanager/lib -I../korganizer/printing -I.. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_LARGE_FILES=1 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -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 libkorganizer_la.all_cpp.lo libkorganizer_la.all_cpp.cpp /bin/sh ../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=nocona -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 -o libkorganizer_eventviewer.la -rpath /usr/kde/3.5/lib64 -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64 -R /usr/kde/3.5/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 1:0 libkorganizer_eventviewer_la.all_cpp.lo -lkparts ../libkcal/libkcal.la koagendaview.cpp: In member function ‘void KOAgendaView::updateEventDates(KOAgendaItem*)’: koagendaview.cpp:1028: warning: unused variable ‘recur’ calendarview.cpp: In member function ‘bool CalendarView::openCalendar(const QString&, bool)’: calendarview.cpp:393: warning: unused variable ‘cr’ kotodoviewitem.cpp: In member function ‘bool KOTodoViewItem::isAlternate()’: kotodoviewitem.cpp:212: warning: suggest parentheses around assignment used as truth value koprefs.cpp: In member function ‘QColor* KOPrefs::resourceColor(const QString&)’: koprefs.cpp:304: warning: converting to ‘int’ from ‘double’ actionmanager.cpp: In member function ‘void ActionManager::file_open(const KURL&)’: actionmanager.cpp:722: warning: ‘setActiveWindow’ is deprecated (declared at /usr/kde/3.5/include/kwin.h:113) ../kdgantt/KDGanttViewTaskItem.h: In member function ‘virtual void KOrg::TimelineSubItem::showItem(bool, int)’: ../kdgantt/KDGanttViewTaskItem.h:64: error: ‘virtual void KDGanttViewTaskItem::showItem(bool, int)’ is private timelineitem.cpp:116: error: within this context ../kdgantt/KDGanttView.h:456: error: ‘KDTimeHeaderWidget* KDGanttView::myTimeHeader’ is private timelineitem.cpp:122: error: within this context ../kdgantt/KDGanttView.h:456: error: ‘KDTimeHeaderWidget* KDGanttView::myTimeHeader’ is private timelineitem.cpp:123: error: within this context ../kdgantt/KDGanttView.h:457: error: ‘KDTimeTableWidget* KDGanttView::myTimeTable’ is private timelineitem.cpp:128: error: within this context ../kdgantt/KDGanttView.h:457: error: ‘KDTimeTableWidget* KDGanttView::myTimeTable’ is private timelineitem.cpp:140: error: within this context koattendeeeditor.cpp: In member function ‘virtual bool KOAttendeeEditor::eventFilter(QObject*, QEvent*)’: koattendeeeditor.cpp:438: error: expected unqualified-id before numeric constant koattendeeeditor.cpp:438: error: expected `)' before numeric constant make[3]: *** [libkorganizer_la.all_cpp.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/kde-base/korganizer-3.5.9/work/korganizer-3.5.9/korganizer' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kde-base/korganizer-3.5.9/work/korganizer-3.5.9/korganizer' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kde-base/korganizer-3.5.9/work/korganizer-3.5.9' make: *** [all] Error 2 Also see gentoo bug http://bugs.gentoo.org/show_bug.cgi?id=211027, I'll attach a full build log.
Created attachment 23674 [details] korganizer build log build log attached.
I can confirm this bug, with exactly the same error log. Also using Gentoo, GCC 4.2.3 (Gentoo 4.2.3 p1.0).
SVN commit 778448 by winterz: first part of patch to fix compile with --enable-final CCBUGS: 158244 M +4 -4 timelineitem.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=778448
SVN commit 778732 by winterz: compile with --enable-final, part 2 CCBUGS: 158244 M +3 -1 KDGanttViewTaskItem.h WebSVN link: http://websvn.kde.org/?view=rev&revision=778732
SVN commit 778744 by winterz: finally solve the hellish can't build with enable-final bug. gotta hate X11. BUGS: 158244 M +1 -0 kodaymatrix.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=778744