Bug 200767 - [PATCH] media-video/mjpegtools-1.8.0-r1 fails to compile with uclibc++ / GCC 4.3
Bug#: 200767 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: natanael.copa@gmail.com
Component: Ebuilds
URL:  http://sourceforge.net/tracker/index.php?func=detail&aid=1947059&group_id=5776&atid=305776
Summary: [PATCH] media-video/mjpegtools-1.8.0-r1 fails to compile with uclibc++ / GCC 4.3
Keywords:  
Status Whiteboard: 
Opened: 2007-11-29 20:04 0000
Description:   Opened: 2007-11-29 20:04 0000
g++-uc -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -Os -pipe -mno-sse2
-fno-strict-aliasing -pthread -MT motionest.lo -MD -MP -MF .deps/motionest.Tpo
-c motionest.cc  -fPIC -DPIC -o .libs/motionest.o
macroblock.cc: In member function `void
MacroBlock::SelectCodingModeOnVariance()':
macroblock.cc:52: error: `INT_MAX' was not declared in this scope

------- Comment #1 From Natanael Copa 2007-11-29 20:05:47 0000 -------
Created an attachment (id=137345) [details]
mjpegtools-1.8.0-limits.h.patch

fixes the issue

------- Comment #2 From Ryan Hill 2008-03-09 04:20:43 0000 -------
Created an attachment (id=145622) [details]
mjpegtools-1.9.0_rc3-gcc-4.3.patch

We need this for GCC 4.3 too.  This is the same patch against 1.9.0_rc3 plus a
couple additional missing headers and fix for this error:

SkipList.hh:60: error: declaration of 'typedef class Allocator<SkipList<KEY,
VALUE, KEYFN, PRED>::Node, SkipList<KEY, VALUE, KEYFN, PRED>::HEADERCHUNK>
SkipList<KEY, VALUE, KEYFN, PRED>::Allocator'
Allocator.hh:18: error: changes meaning of 'Allocator' from 'class
Allocator<SkipList<KEY, VALUE, KEYFN, PRED>::Node, SkipList<KEY, VALUE, KEYFN,
PRED>::HEADERCHUNK>'

------- Comment #3 From Jakub Moc (RETIRED) 2008-03-28 10:25:48 0000 -------
*** Bug 215156 has been marked as a duplicate of this bug. ***

------- Comment #4 From SpanKY 2008-04-20 08:02:06 0000 -------
added patch to 1.9.0_rc3