[FFmpeg-devel] Compilation broken on PPC/OS X 10.4

Måns Rullgård mans
Mon Mar 8 15:35:41 CET 2010


Kostya <kostya.shishkov at gmail.com> writes:

> On Mon, Mar 08, 2010 at 03:57:24PM +0200, Martin Storsj? wrote:
>> Hi,
>> 
>> Since rev 22267, compilation of libavcodec/ppc/check_altivec.c is broken 
>> on OS X, if compiling with a 10.4 SDK. (This doesn't happen if compiling 
>> with the 10.5 SDK.) The error is:
>> 
>> /Developer/SDKs/MacOSX10.4u.sdk/usr/include/signal.h:71: error: 'NSIG' 
>> undeclared here (not in a function)
>> 
>> There's a dependency between sys/signal.h (implicitly included through 
>> dsputil_altivec.h) and signal.h (included through sys/sysctl.h); NSIG is 
>> defined in sys/signal.h, only if it's going to be used by signal.h. If the 
>> _POSIX_C_SOURCE defined is changed inbetween, NSIG is required without 
>> being defined.
>> 
>> The attached patch is one way of solving this, although perhaps not the 
>> cleanest.
>> 
>> Other suggestions on how to fix it, or the usual "broken platform" flames? 
>> :-)
>
> I complained about that yesterday on IRC, David said it compiles fine on
> 10.5/PPC though, so it may be definitely a case of broken platform. 

Is 10.4 at all relevant nowadays?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list