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

Bug 427066

Summary: media-video/xvideoservicethief-2.4.1-r2 fails to compile with gcc-4.7
Product: Gentoo Linux Reporter: Duncan <1i5t5.duncan>
Component: Current packagesAssignee: Markos Chandras (RETIRED) <hwoarang>
Severity: normal CC: media-video, qt
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247    
Attachments: xvideoservicethief gcc-4.7 getuid patch

Description Duncan 2012-07-18 09:10:47 UTC
Created attachment 318522 [details]
xvideoservicethief gcc-4.7 getuid patch

media-video/xvideoservicethief-2.4.1-r2 fails to compile with gcc-4.7, but the suggested fix works:

src/qtsingleapplication/src/qtlocalpeer.cpp: In constructor 'QtLocalPeer::QtLocalPeer(QObject*, const QString&)':
src/qtsingleapplication/src/qtlocalpeer.cpp:103:54: error: '::getuid' has not been declared
src/qtsingleapplication/src/qtlocalpeer.cpp:103:54: note: suggested alternative:
In file included from src/qtsingleapplication/src/qtlockedfile_unix.cpp:49:0,
                 from src/qtsingleapplication/src/qtlocalpeer.cpp:67:
/usr/include/unistd.h:698:16: note:   'QtLP_Private::getuid'
make: *** [build/o/unix/qtlocalpeer.o] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: media-video/xvideoservicethief-2.4.1-r2 failed (compile phase):

With the attached patch in /etc/portage/patches/media-video/xvideoservicethief, the package builds fine.  (Do note that my bashrc sets up user epatching even if the ebuild doesn't inherit the appropriate eclass, so I don't know if it would work for others just dumped in that dir or not, but it appears to be the right fix, however it's applied.)
Comment 1 Duncan 2012-07-18 09:22:46 UTC
Blocking the gcc-4.7 tracker and adding the PATCH keyword.

emerge --info shouldn't be needed as this is an intended behavior change for gcc-4.7/g++.  See the URL for the tracker.

FWIW, I did try the sourceforge svn trunk (2.5) tarball as well.  The last commit there was ~two months ago, and it suffers from the same problem (plus another, likely related to it being a development snapshot).

Thanks. =:^)

Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-07-18 18:29:12 UTC
+  18 Jul 2012; Markos Chandras <>
+  +files/xvideoservicethief-2.4.1-gcc47.patch,
+  xvideoservicethief-2.4.1-r2.ebuild:
+  Fix building with gcc-4.7. Bug #427066 thanks to Duncan <>