﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
2212	libmythtv fails to compile on Mac OS X after upgrading to XCode 2.4	awk@…	Nigel	"libmythtv fails to compile with errors :

g++ -c -pipe -mcpu=7450 -mtune=7450 -mpowerpc-gfxopt -faltivec -F/System/Library/Frameworks/{AGL,ApplicationServices,Carbon,Cocoa,OpenGL,QuickTime}.framework/Frameworks -F/System/Library/PrivateFrameworks/{DVD}.framework/Frameworks -F/Developer/FireWireSDK22/Examples/Framework -Wall -W -g -I/usr/local/include/freetype2 -I/usr/local/include -DPIC -fPIC  -DUSING_FREEBOX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\""/usr/local\"" -DLIBDIR=\""/usr/local/lib\"" -D_LARGEFILE_SOURCE -DUSING_H264TOOLS -DUSING_FRONTEND -DUSING_CRC_IP_NETWORK_REC -DUSING_FIREWIRE -DUSING_MAC_GO7007 -DUSING_DBOX2 -DUSING_FREEBOX -DUSING_HDHOMERUN -DUSING_BACKEND -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_NO_DEBUG -I/Development/mythtv/qt-mac-free-3.3.6-snapshot-latest/mkspecs/default -I. -I/usr/local/include -I../.. -I.. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/UsageEnvironment/include -I/Development/mythtv/qt-mac-free-3.3.6-snapshot-latest/include -o interactivetv.o interactivetv.cpp
/usr/include/architecture/ppc/math.h:179: error: 'always_inline' was not declared in this scope
/usr/include/architecture/ppc/math.h:179: error: expected `)' before 'inline'
/usr/include/architecture/ppc/math.h:179: error: expected `)' before 'inline'
/usr/include/architecture/ppc/math.h:179: error: expected initializer before 'inline'

after upgrading to XCode 2.4 - this is because of the underlying redefinition of always_inline in the ffmpeg (and by association mythtv) headers.

The attached patch to mhi.h rearranges the header include order to fix the problem.

"	defect	closed	minor	unknown	mythtv		medium	fixed			0
