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

Bug 228941

Summary: net-analyzer/ifstatus-1.1.0 fails to compile (patch)
Product: Gentoo Linux Reporter: Olivier Huber <oli.huber>
Component: Current packagesAssignee: Netmon Herd <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: patch proposal

Description Olivier Huber 2008-06-22 18:35:25 UTC
In file included from Config.cc:25:
Main.h:74: attention : ‘typedef’ was ignored in this declaration
Config.cc: In member function ‘void Config::LoadHomePath()’:
Config.cc:119: erreur: ‘getenv’ was not declared in this scope
Config.cc: In member function ‘void Config::LoadDefaultConfig()’:
Config.cc:132: erreur: ‘getenv’ was not declared in this scope

Sorry for the localization crap.

It's pretty straightforward to solve this : #include <stdlib.h> in a header.
Comment 1 Olivier Huber 2008-06-22 18:38:17 UTC
Created attachment 158031 [details, diff]
patch proposal

I choose this header (Main.h) because another file which include this header uses getenv
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-28 20:21:18 UTC
+  28 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+  +files/ifstatus-1.1.0-gcc43.patch, ifstatus-1.1.0.ebuild:
+  Fix for gcc-4.3, bug #228941. Thanks Olivier Huber <oli.huber@gmail.com>
+