[x264-devel] Re: x264 build error

Riccardo Stievano walkunafraid at tin.it
Fri Aug 11 10:46:45 CEST 2006


> 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.

--algernon


-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list