Bug 203937 - net-wireless/wpa_supplicant gcc 4.3 patch
Bug#: 203937 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: mobile@gentoo.org Reported By: dirtyepic@gentoo.org
Component: GCC Porting
URL: 
Summary: net-wireless/wpa_supplicant gcc 4.3 patch
Keywords:  
Status Whiteboard: 
Opened: 2008-01-01 01:09 0000
Description:   Opened: 2008-01-01 01:09 0000
the attached patch adds some missing includes that cause build failures with
GCC 4.3.  later versions of wpa_supplicant also seem affected.

In file included from .ui/networkconfig.cpp:29:
.ui/../networkconfig.ui.h: In member function 'virtual void
NetworkConfig::addNetwork()':
.ui/../networkconfig.ui.h:127: error: 'atoi' was not declared in this scope

In file included from .ui/userdatarequest.cpp:25:
.ui/../userdatarequest.ui.h: In member function 'int
UserDataRequest::setParams(WpaGui*, const char*)':
.ui/../userdatarequest.ui.h:22: error: 'free' was not declared in this scope
.ui/../userdatarequest.ui.h:29: error: 'free' was not declared in this scope
.ui/../userdatarequest.ui.h:34: error: 'atoi' was not declared in this scope
.ui/../userdatarequest.ui.h:49: error: 'free' was not declared in this scope

------- Comment #1 From Ryan Hill 2008-01-01 01:09:54 0000 -------
Created an attachment (id=139772) [details]
wpa_supplicant-0.5.8-gcc-4.3.patch

------- Comment #2 From Steev Klimaszewski 2008-03-09 02:06:55 0000 -------
Can you test the recently committed 0.5.10?  If this still applies, please let
me know and I will commit it.  

------- Comment #3 From Ryan Hill 2008-03-09 03:01:29 0000 -------
yep, still applies.  i filed a bug upstream so hopefully they'll fix it for the
next release.

http://w1.fi/bugz/show_bug.cgi?id=251

------- Comment #4 From Ryan Hill 2008-03-09 04:31:45 0000 -------
Fixed.

------- Comment #5 From Yaroslav Gorbunov 2008-11-15 14:54:36 0000 -------
Created an attachment (id=171866) [details]
wpa_supplicant-0.5.7.ebuild

I have this problem in wpa_supplicant-0.5.7 and wpa_supplicant-0.5.8.

wpa_supplicant-0.5.10-gcc-4.3.patch is not included in this ebuilds

Adding epatch "${FILESDIR}/${PN}"-0.5.10-gcc-4.3.patch in 0.5.7 and 0.5.8
ebuilds solve problem.

------- Comment #6 From Yaroslav Gorbunov 2008-11-15 14:55:38 0000 -------
Created an attachment (id=171868) [details]
0.5.8.ebuild with gcc-4.3.patch included