Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427066 - media-video/xvideoservicethief-2.4.1-r2 fails to compile with gcc-4.7
Summary: media-video/xvideoservicethief-2.4.1-r2 fails to compile with gcc-4.7
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
Keywords: PATCH
Depends on:
Blocks: gcc-4.7
  Show dependency tree
Reported: 2012-07-18 09:10 UTC by Duncan
Modified: 2012-07-18 18:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

xvideoservicethief gcc-4.7 getuid patch (getuid.patch,531 bytes, text/plain)
2012-07-18 09:10 UTC, Duncan

Note You need to log in before you can comment on or make changes to this bug.
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 <>