Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419563 - net-libs/wvstreams-4.6.1 with sys-devel/gcc-4.7.0 - utils/ error: 'getuid' was not declared in this scope
Summary: net-libs/wvstreams-4.6.1 with sys-devel/gcc-4.7.0 - utils/ err...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
Keywords: PATCH
Depends on:
Blocks: gcc-4.7 419971
  Show dependency tree
Reported: 2012-06-04 04:29 UTC by Ioannis Galanommatis
Modified: 2012-06-06 20:34 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Ioannis Galanommatis 2012-06-04 04:29:19 UTC
net-libs/wvstreams-4.6.1-r1 will not compile with gcc 4.7.0
I goggled a bit and found a patch here:

and it works for me. They say that it is included in latest sources, but the highest version in portage did not.

Perhaps you would like to include the patch mentioned in that page, quoting it here for your convenience:

Description: Fix FTBFS with gcc-4.7
 Small header include change. This is borderlinde cosmetic, but still needed
 to prevent the FTBFS.
Author: Paul Tagliamonte <>
Origin: vendor
Last-Update: 2012-04-13

--- wvstreams-4.6.1.orig/utils/
+++ wvstreams-4.6.1/utils/
@@ -33,6 +33,7 @@ wvuid_t wvgetuid()
 #else // not WIN32
+#include <unistd.h>
 WvString wv_username_from_uid(wvuid_t uid)
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-06-06 20:34:46 UTC
Fixed by -r2 in Portage.