Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420799 - games-sports/xmoto-0.5.9: compile error with gcc-4.7
Summary: games-sports/xmoto-0.5.9: compile error with gcc-4.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-12 09:13 UTC by Philipp Middendorf
Modified: 2014-08-04 11:11 UTC (History)
0 users

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


Attachments
Adds the necessary unistd.h header (xmoto-0.5.9-gcc47.patch,367 bytes, patch)
2012-06-12 09:14 UTC, Philipp Middendorf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Middendorf 2012-06-12 09:13:47 UTC
xmoto-0.5.9 doesn't compile with gcc-4.7:

helpers/System.cpp: In static member function 'static std::string System::getMemoryInfo()':
helpers/System.cpp:108:18: error: 'getpid' was not declared in this scope

This is because "getpid" is defined in unistd.h, which was included by the C(++) standard library headers until gcc-4.7 changed that.

Reproducible: Always

Steps to Reproduce:
1. Install and switch to gcc-4.7
2. Compile xmoto (doesn't matter which use flags)
Comment 1 Philipp Middendorf 2012-06-12 09:14:14 UTC
Created attachment 315081 [details, diff]
Adds the necessary unistd.h header
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2012-06-12 18:15:45 UTC
in portage.  thanks for the bug report and patch.