trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: September 2010

Building Trinity on BLFS - gcc issues

From: Leandro Nini <drfiemost@...>
Date: Sat, 18 Sep 2010 16:45:49 +0200
As promised here comes some other compile errors probably caused by gcc-4.5:

In file included from /opt/qt/include/tqimage.h:32:0,
                 from /opt/trinity-3.5.12/include/kaboutdata.h:24,
                 from main.cpp:21,
                 from libkdeinit_ksmserver_la.all_cpp.cpp:2:
/opt/qt/include/qimage.h: In member function ‘bool
QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/opt/qt/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’
within ‘||’
In file included from libkdeinit_ksmserver_la.all_cpp.cpp:4:0:
shutdowndlg.cpp: In constructor
‘KSMShutdownFeedback::KSMShutdownFeedback()’:
shutdowndlg.cpp:78:36: error: cannot call constructor ‘QImage::QImage’
directly
shutdowndlg.cpp:78:36: error:   for a function-style cast, remove the
redundant ‘::QImage’
shutdowndlg.cpp:79:39: error: cannot call constructor ‘QImage::QImage’
directly
shutdowndlg.cpp:79:39: error:   for a function-style cast, remove the
redundant ‘::QImage’
make[3]: *** [libkdeinit_ksmserver_la.all_cpp.lo] Errore 1
make[3]: Leaving directory
`/usr/src/KDETrinity/20100918/kdebase-20100918/ksmserver'




In file included from /opt/qt/include/tqimage.h:32:0,
                 from /opt/trinity-3.5.12/include/kaboutdata.h:24,
                 from main.cpp:24,
                 from krandrtray.all_cpp.cpp:2:
/opt/qt/include/qimage.h: In member function ‘bool
QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/opt/qt/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’
within ‘||’
In file included from krandrtray.cpp:65:0,
                 from krandrtray.all_cpp.cpp:3:
krandrbindings.cpp: In constructor
‘KRandRSystemTray::KRandRSystemTray(QWidget*, const char*)’:
krandrbindings.cpp:31:2: error: cannot call constructor
‘KShortcut::KShortcut’ directly
krandrbindings.cpp:31:2: error:   for a function-style cast, remove the
redundant ‘::KShortcut’
krandrbindings.cpp:31:2: error: cannot call constructor
‘KShortcut::KShortcut’ directly
krandrbindings.cpp:31:2: error:   for a function-style cast, remove the
redundant ‘::KShortcut’
In file included from krandrtray.all_cpp.cpp:3:0:
krandrtray.cpp: In member function ‘void
KRandRSystemTray::slotCycleDisplays()’:
krandrtray.cpp:508:6: warning: unused variable ‘lastIndex’
krandrtray.cpp:512:9: warning: unused variable ‘s’
krandrtray.cpp: In member function ‘void
KRandRSystemTray::findPrimaryDisplay()’:
krandrtray.cpp:663:6: warning: unused variable ‘lastIndex’
krandrtray.cpp: In member function ‘void
KRandRSystemTray::slotOutputChanged(int)’:
krandrtray.cpp:783:11: warning: unused variable ‘output_id’
krandrtray.cpp:785:9: warning: unused variable ‘s’
make[3]: *** [krandrtray.all_cpp.o] Errore 1
make[3]: Leaving directory
`/usr/src/KDETrinity/20100918/kdebase-20100918/kcontrol/randr'





In file included from kpackage.cpp:51:0,
                 from kpackage.all_cpp.cpp:2:
/opt/trinity-3.5.12/include/kedittoolbar.h:271:1: warning:
‘KEditToolbarWidget’ has a field ‘KEditToolbarWidget::m_inactiveList’ whose
type uses the anonymous namespace
/opt/trinity-3.5.12/include/kedittoolbar.h:271:1: warning:
‘KEditToolbarWidget’ has a field ‘KEditToolbarWidget::m_activeList’ whose
type uses the anonymous namespace
In file included from kpackage.cpp:52:0,
                 from kpackage.all_cpp.cpp:2:
/opt/trinity-3.5.12/include/kmimemagic.h:156:62: warning: ‘KMimeMagicResult’
is deprecated (declared at /opt/trinity-3.5.12/include/kmimemagic.h:47)
/opt/trinity-3.5.12/include/kmimemagic.h:170:58: warning: ‘KMimeMagicResult’
is deprecated (declared at /opt/trinity-3.5.12/include/kmimemagic.h:47)
/opt/trinity-3.5.12/include/kmimemagic.h:186:89: warning: ‘KMimeMagicResult’
is deprecated (declared at /opt/trinity-3.5.12/include/kmimemagic.h:47)
/opt/trinity-3.5.12/include/kmimemagic.h:191:27: warning: ‘KMimeMagic’ is
deprecated (declared at /opt/trinity-3.5.12/include/kmimemagic.h:102)
/opt/trinity-3.5.12/include/kmimemagic.h:197:22: warning: ‘KMimeMagicResult’
is deprecated (declared at /opt/trinity-3.5.12/include/kmimemagic.h:47)
/opt/trinity-3.5.12/include/kmimemagic.h:200:22: warning: ‘KMimeMagic’ is
deprecated (declared at /opt/trinity-3.5.12/include/kmimemagic.h:102)
In file included from /opt/qt/include/qdragobject.h:50:0,
                 from /opt/qt/include/tqdragobject.h:32,
                 from /opt/trinity-3.5.12/include/kurldrag.h:24,
                 from kpackage.cpp:53,
                 from kpackage.all_cpp.cpp:2:
/opt/qt/include/qimage.h: In member function ‘bool
QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/opt/qt/include/qimage.h:61:61: warning: suggest parentheses around ‘&&’
within ‘||’
In file included from kpackage.all_cpp.cpp:4:0:
packageDisplay.cpp: In member function ‘void
packageDisplayWidget::openBindingWith(QListViewItem*)’:
packageDisplay.cpp:392:56: error: cannot call constructor ‘KURL::List::List’
directly
packageDisplay.cpp:392:56: error:   for a function-style cast, remove the
redundant ‘::List’
In file included from kpackage.all_cpp.cpp:8:0:
options.cpp: In member function ‘void Options::apply_slot()’:
options.cpp:322:85: warning: suggest parentheses around ‘&&’ within ‘||’
In file included from kpackage.all_cpp.cpp:23:0:
kissInterface.cpp: In constructor ‘KISS::KISS()’:
kissInterface.cpp:84:20: warning: unused variable ‘paramsInst’
kissInterface.cpp:88:22: warning: unused variable ‘paramsUninst’
make[3]: *** [kpackage.all_cpp.o] Errore 1
make[3]: Leaving directory
`/usr/src/KDETrinity/20100918/kdeadmin-20100918/kpackage'


I solved theese by following the compiler advice and successfully compiled
base packages plus kdeadmin. Again I'm not sure this is the right way to
deal with the errors, anyway hope it helps.


Regards,
Leandro

 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it: http://www.email.it/f
 
 Sponsor:
 Paghe e stipendi, consulenza e collocamento, tutto con Emailpaghe! Provalo
gratuitamente fino al 31/12/2010
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=10682&d=20100918