How to solve compiling handbrake errors?

Hello friends,

Am trying to compile and build Handbrake 0.9.9 on my redhat box but getting the below errors.

Same errors when I compile the source from github and also from the official web site.

# uname -a
Linux blah.com 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
./configure

was successful and most part of

gmake 

went through. It accessed handbrake site and downloaded required modules without any problem and finally gmake throws the below errors.

Errors:

libbluray/bluray.c:1062: warning: assignment makes pointer from integer without a cast
gmake[4]: *** [bluray.lo] Error 1
gmake[3]: *** [all-recursive] Error 1
gmake[2]: *** [all-recursive] Error 1
gmake[1]: *** [all] Error 2
gmake: *** [contrib/libbluray/.stamp.build] Error 2

Any help please! TIA