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

Bug 419563

Summary: net-libs/wvstreams-4.6.1 with sys-devel/gcc-4.7.0 - utils/wvuid.cc:63:19: error: 'getuid' was not declared in this scope
Product: Gentoo Linux Reporter: Ioannis Galanommatis <galanom>
Component: Current packagesAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: ssuominen
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://bugs.debian.org/667418
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247, 419971    

Description Ioannis Galanommatis 2012-06-04 04:29:19 UTC
Hi!
net-libs/wvstreams-4.6.1-r1 will not compile with gcc 4.7.0
I goggled a bit and found a patch here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667418

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 <paultag@ubuntu.com>
Origin: vendor
Bug-Debian: http://bugs.debian.org/667418
Last-Update: 2012-04-13

--- wvstreams-4.6.1.orig/utils/wvuid.cc
+++ wvstreams-4.6.1/utils/wvuid.cc
@@ -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.