<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm pretty new to x264 - trying to build it into vlc 0.8.5 so I can try streaming with it.&nbsp; I grabbed the latest snapshot and tried to build with:</DIV>
<DIV>&nbsp;</DIV>
<DIV>./configure --enable-pthread --enable-shared</DIV>
<DIV>&nbsp;</DIV>
<DIV>Build fails on common/cpu.c though:</DIV>
<DIV>&nbsp;</DIV>
<DIV>gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT<BR>-DHAVE_SSE2 -DARCH_X86 -DSYS_LINUX -DHAVE_PTHREAD -s -fomit-frame-pointer&nbsp;&nbsp; -c<BR>-o common/cpu.o common/cpu.c<BR>common/cpu.c: In function 'x264_cpu_num_processors':<BR>common/cpu.c:172: warning: dereferencing type-punned pointer will break<BR>strict-aliasing rules<BR>common/cpu.c:172: warning: passing argument 2 of 'sched_getaffinity' makes<BR>pointer from integer without a cast<BR>common/cpu.c:172: error: too many arguments to function 'sched_getaffinity'<BR>make: *** [common/cpu.o] Error 1<BR>Exit 2</DIV>
<DIV>&nbsp;</DIV>
<DIV>gcc is 4.1.0 (also tried 3.4.6)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I talked to some helpful folks on #x264 on irc and they surmised it to be an old kernel problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>uname -r:</DIV>
<DIV>&nbsp;</DIV>
<DIV>2.4.21-37.ELsmp</DIV>
<DIV>&nbsp;</DIV>
<DIV>(Redhat Linux Enterprise 3)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have no control over this box (gov't owned) so a newer kernel is pretty much out of the question.</DIV>
<DIV>&nbsp;</DIV>
<DIV>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?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Josh<BR></DIV></BODY></HTML>