trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: February 2011

gcc >= 4.5 - kdebase/ksmserver/shutdowndlg.cpp may need a tweak

From: "David C. Rankin" <drankinatty@...>
Date: Tue, 15 Feb 2011 17:17:28 -0600
Tim, Robert, all,

  Building with svn rev: 1220968 I have run into the following error in
kdebase/ksmserver/shutdowndlg.cpp. Given that it involves the same constructor
type ‘KSMShutdownFeedback::KSMShutdownFeedback()’ as disclosed in the gcc bug,
it looks to be another cmake issue that needs to be resolved.

[ 82%] Building CXX object
ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/shutdowndlg.cpp.o
cd /home/david/tbld/kdebase/src/ksmserver && /usr/bin/c++
-Dkdeinit_ksmserver_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -march=x86-64 -mtune=generic -O2 -pipe
-include tqt.h -fPIC -I/home/david/tbld/kdebase/src/ksmserver
-I/home/david/tbld/kdebase/src -I/home/david/tbld/kdebase/kdmlib
-I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal   -o
CMakeFiles/kdeinit_ksmserver-shared.dir/shutdowndlg.cpp.o -c
/home/david/tbld/kdebase/ksmserver/shutdowndlg.cpp
/home/david/tbld/kdebase/ksmserver/shutdowndlg.cpp: In constructor
‘KSMShutdownFeedback::KSMShutdownFeedback()’:
/home/david/tbld/kdebase/ksmserver/shutdowndlg.cpp:83:39: error: cannot call
constructor ‘QImage::QImage’ directly
/home/david/tbld/kdebase/ksmserver/shutdowndlg.cpp:83:39: error:   for a
function-style cast, remove the redundant ‘::QImage’
make[2]: ***
[ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/shutdowndlg.cpp.o] Error 1
make[2]: Leaving directory `/home/david/tbld/kdebase/src'
make[1]: *** [ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/all] Error 2
make[1]: Leaving directory `/home/david/tbld/kdebase/src'
make: *** [all] Error 2
    Aborting...

  Let me know if you need anything else.

-- 
David C. Rankin, J.D.,P.E.