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

Måns Rullgård mans
Mon Mar 8 15:46:30 CET 2010


Martin Storsj? <martin at martin.st> writes:

> 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? 
> :-)

How does sys/signal.h end up being included?  None of our headers go
anywhere near it.  Does moving the "" includes down after the <> ones
help?

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



More information about the ffmpeg-devel mailing list