Bug 216008 - [PATCH] media-video/mpeg4ip-1.5.0.1-r4 fails to compile with gcc-4.3
Bug#: 216008 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: tester@gentoo.org Reported By: vaeth@mathematik.uni-wuerzburg.de
Component: GCC Porting
URL: 
Summary: [PATCH] media-video/mpeg4ip-1.5.0.1-r4 fails to compile with gcc-4.3
Keywords:  
Status Whiteboard: 
Opened: 2008-04-03 09:17 0000
Description:   Opened: 2008-04-03 09:17 0000
media-video/mpeg4ip-1.5.0.1-r4 fails to compile with gcc-4.3

------- Comment #1 From Martin Väth 2008-04-03 09:26:52 0000 -------
Created an attachment (id=148190) [details]
Fix includes, stream usage, and array bounds for gcc-4.3

Three types of errors were necessary to fix to compile with gcc-4.3:

1. For #include <iostream.h> (and similar things) the ".h" was removed.
2. "cout" and similar things were used without "std::"
3. gcc spits an "out of array bounds" warning which by -Werror was converted to
an error. Since I don't know how to avoid this warning, -Werror was removed
from a Makefile.ac

My fix for 2. was simply to add "using namespace std;" which is certainly not
the cleanest the solution, but works well and - hey, it's a patch!
Because of 3. it is necessary to apply the patch before "autoreconf".

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2008-05-07 21:12:48 0000 -------
Thanks for the patch, fixed.