Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 321357

Summary: [patch] =kde-misc/filelight-1.9_rc3 fails to build with gcc-4.5
Product: Gentoo Linux Reporter: Gef <gef.kornflakes>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: flameeyes
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 296658    
Attachments: patch to fix the issue

Description Gef 2010-05-24 19:36:52 UTC
Fails with:

[  9%] Built target filelightpart_automoc
[ 13%] Building CXX object src/app/CMakeFiles/filelight.dir/mainWindow.o
Scanning dependencies of target radialmap
[ 18%] Building CXX object src/part/radialMap/CMakeFiles/radialmap.dir/radialmap_automoc.o
[ 22%] Building CXX object src/part/radialMap/CMakeFiles/radialmap.dir/widget.o
/var/tmp/portage/kde-misc/filelight-1.9_rc3/work/filelight-1.9rc3/src/part/radialMap/widget.cpp: In member function ‘KUrl RadialMap::Widget::url(const File*) const’:
/var/tmp/portage/kde-misc/filelight-1.9_rc3/work/filelight-1.9rc3/src/part/radialMap/widget.cpp:67:67: erreur: cannot call constructor ‘KUrl::KUrl’ directly
/var/tmp/portage/kde-misc/filelight-1.9_rc3/work/filelight-1.9rc3/src/part/radialMap/widget.cpp:67:67: erreur:   for a function-style cast, remove the redundant ‘::KUrl’
/var/tmp/portage/kde-misc/filelight-1.9_rc3/work/filelight-1.9rc3/src/app/mainWindow.cpp: In member function ‘bool Filelight::MainWindow::slotScanPath(const QString&)’:
/var/tmp/portage/kde-misc/filelight-1.9_rc3/work/filelight-1.9rc3/src/app/mainWindow.cpp:225:39: erreur: cannot call constructor ‘KUrl::KUrl’ directly
/var/tmp/portage/kde-misc/filelight-1.9_rc3/work/filelight-1.9rc3/src/app/mainWindow.cpp:225:39: erreur:   for a function-style cast, remove the redundant ‘::KUrl’

Reproducible: Always

Steps to Reproduce:
1. gcc-config x86_64-pc-linux-gnu-4.5.0 && env-update
2. emerge filelight
3. emerge fails with typical gcc-4.5 & C++ error 




Patch in next reply.
Comment 1 Gef 2010-05-24 19:37:57 UTC
Created attachment 232779 [details, diff]
patch to fix the issue
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-06-05 13:57:01 UTC
+  05 Jun 2010; Samuli Suominen <ssuominen@gentoo.org>
+  filelight-1.9_rc3.ebuild, +files/filelight-1.9_rc3-gcc45.patch:
+  Fix building with GCC 4.5+ wrt #321357 by Gef Lebster.
+
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-06-07 13:11:54 UTC
*** Bug 323067 has been marked as a duplicate of this bug. ***