[x264-devel] Re: x264 build error

Josh Trutwin Josh.Trutwin at baesystems.com
Fri Aug 11 16:25:13 CEST 2006


>>> walkunafraid at tin.it 8/11/2006 3:46 AM >>>
>> Build fails on common/cpu.c though:
>> 
>> common/cpu.c:172: error: too many arguments to function
'sched_getaffinity'
>
> This is not a kernel problem (happens here with 2.6.12 and gcc 3.3.1

> btw). I've signalled this problem myself a few days ago on #x264dev.
>
> The problem is that glibc 2.3.2 changed for a short while the 
> definition of sched_getaffinity() to a two parameters version, and 
> then reverted the changes in later releases - see the man pages for 
> details. So all systems based on that version of the library won't be

> able to build x264 - last one working is rev. 542. 
> The quick fix is to remove the second parameter from the call to 
> sched_getaffinity() in cpu.c, though a ./configure option would be 
> much better.
 
Thanks!  That did the trick - would be nice to have configure check
this somehow...
 
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20060811/7969f84a/attachment.htm 


More information about the x264-devel mailing list