Bug 158244 - korganizer doesn't compile with --enable-final
Summary: korganizer doesn't compile with --enable-final
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-22 22:05 UTC by Ingmar Vanhassel
Modified: 2008-02-24 15:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
korganizer build log (99.68 KB, text/plain)
2008-02-22 22:25 UTC, Ingmar Vanhassel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ingmar Vanhassel 2008-02-22 22:05:54 UTC
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.
Comment 1 Ingmar Vanhassel 2008-02-22 22:25:23 UTC
Created attachment 23674 [details]
korganizer build log

build log attached.
Comment 2 Marcin Gil 2008-02-23 12:16:07 UTC
I can confirm this bug, with exactly the same error log.

Also using Gentoo, GCC 4.2.3 (Gentoo 4.2.3 p1.0).
Comment 3 Allen Winter 2008-02-23 17:33:48 UTC
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
Comment 4 Allen Winter 2008-02-24 14:32:32 UTC
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
Comment 5 Allen Winter 2008-02-24 15:14:34 UTC
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