Bug 209036 - app-text/recode-3.6-r2: failed to compile with width of 'ignore' exceeds it's type using GCC-4.3.0
Bug#: 209036 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: shell-tools@gentoo.org Reported By: EckosGentoo@gmail.com
Component: GCC Porting
URL: 
Summary: app-text/recode-3.6-r2: failed to compile with width of 'ignore' exceeds it's type using GCC-4.3.0
Keywords:  
Status Whiteboard: 
Opened: 2008-02-05 21:17 0000
Description:   Opened: 2008-02-05 21:17 0000
I've tried compiling recode for use with PHP5.2.5-r1 using
GCC-4.3.0_alpha20080201. And it said width of 'ignore' exceeds it's type. I
have however tried compiling with GCC-4.2.2 and it compiles fine.

Reproducible: Always

Steps to Reproduce:
1. install gcc-4.3.0_alpha20080201 from the toolchain overlay
2. enable ~x86
3. compile

------- Comment #1 From Ryan Hill 2008-02-06 00:07:31 0000 -------
until gcc-4.3 is portage (officially supported) we'd like bug reports to
include patches please. ;)

------- Comment #2 From Neil Cathey 2008-02-06 05:27:55 0000 -------
Created an attachment (id=142772) [details]
Patch to get recode-3.6 to compile with gcc-4.3

I made my own patch from a suggestion on the fedora-devel-list.  I haven't
actually tested it to make sure it works, but it compiles.  See:

https://www.redhat.com/archives/fedora-devel-list/2008-January/msg01411.html

------- Comment #3 From Ryan Hill 2008-03-05 21:56:40 0000 -------
this isn't fixed.

------- Comment #4 From Jakub Moc (RETIRED) 2008-03-28 20:29:56 0000 -------
*** Bug 215245 has been marked as a duplicate of this bug. ***

------- Comment #5 From Alexey Charkov 2008-04-02 19:17:57 0000 -------
Created an attachment (id=148123) [details]
Another patch to compile with gcc 4.3

It seems that 2 is just too much for a bool type. Replacing it with 1 compiles
fine (and should presumably yield the same result).
Sadly, I have completely no experience with C programming and this is the first
patch I have ever attempted.

------- Comment #6 From Peter Volkov 2008-04-03 18:46:23 0000 -------
Created an attachment (id=148477) [details]
recode-3.6-gcc-4.3.patch

Patch from:
https://www.redhat.com/archives/fedora-devel-list/2008-January/msg01413.html

I don't have gcc-4.3 at hand to check it ...

------- Comment #7 From SpanKY 2008-04-20 08:32:34 0000 -------
fixed in cvs, cheers

http://sources.gentoo.org/app-text/recode/recode-3.6-r2.ebuild?r1=1.21&r2=1.22
http://sources.gentoo.org/app-text/recode/files/recode-3.6-gcc43.patch?rev=1.1