[x264-devel] x264 build error

Josh Trutwin Josh.Trutwin at baesystems.com
Thu Aug 10 23:14:05 CEST 2006


Hi,
 
I'm pretty new to x264 - trying to build it into vlc 0.8.5 so I can try
streaming with it.  I grabbed the latest snapshot and tried to build
with:
 
./configure --enable-pthread --enable-shared
 
Build fails on common/cpu.c though:
 
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT
-DHAVE_SSE2 -DARCH_X86 -DSYS_LINUX -DHAVE_PTHREAD -s
-fomit-frame-pointer   -c
-o common/cpu.o common/cpu.c
common/cpu.c: In function 'x264_cpu_num_processors':
common/cpu.c:172: warning: dereferencing type-punned pointer will
break
strict-aliasing rules
common/cpu.c:172: warning: passing argument 2 of 'sched_getaffinity'
makes
pointer from integer without a cast
common/cpu.c:172: error: too many arguments to function
'sched_getaffinity'
make: *** [common/cpu.o] Error 1
Exit 2
 
gcc is 4.1.0 (also tried 3.4.6)
 
I talked to some helpful folks on #x264 on irc and they surmised it to
be an old kernel problem.
 
uname -r:
 
2.4.21-37.ELsmp
 
(Redhat Linux Enterprise 3)
 
I have no control over this box (gov't owned) so a newer kernel is
pretty much out of the question.
 
I thought I'd post this here - is this something that can be fixed or
is it assumed x264 will only run on newer kernels?
 
Thanks,
 
Josh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20060810/e82dc210/attachment.htm 


More information about the x264-devel mailing list