cant install ffpmeg- php on centos 5.7
i have already installed ffmpeg on my centos 5.7, but whenever i try to install ffmpeg-php i fail to do it . everytime i get to the make section i get these errors :

    
    /bin/sh /usr/src/ffmphp/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c -o ffmpeg_frame.lo
     cc -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c  -fPIC -DPIC -o .libs/ffmpeg_frame.o
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:50:1: warning: "/*" within comment
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_entry'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_methods'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:145: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:160: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'register_ffmpeg_frame_class':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:173: warning: implicit declaration of function 'TSRMLS_FETCH'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: warning: implicit declaration of function 'zend_register_list_destructors_ex'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: '_php_free_ffmpeg_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: (Each undeclared identifier is reported only once
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: for each function it appears in.)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:176: error: 'NULL' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: warning: implicit declaration of function 'INIT_CLASS_ENTRY'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: error: 'ffmpeg_frame_class_entry' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:179: error: 'ffmpeg_frame_class_methods' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:182: error: 'ffmpeg_frame_class_entry_ptr' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: warning: implicit declaration of function 'zend_register_internal_class'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: error: expected ')' before 'TSRMLS_CC'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:190: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'GET_FRAME_RESOURCE'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'getThis'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: warning: implicit declaration of function 'RETURN_DOUBLE'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: error: 'AV_TIME_BASE' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:464: warning: implicit declaration of function 'RETURN_LONG'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame' undeclared (first use in this function)
    make: *** [ffmpeg_frame.lo] Error 1


i read that if i get the 

> `make: *** [ffmpeg_frame.lo] Error 1`

error , i replace all ***PIX_FMT_RGBA32*** with ***PIX_FMT_RGB32*** inside ***ffmpeg_frame.c***. but when i search the file , there is no ***PIX_FMT_RGBA32*** . there are all PIX_FMT_RGB32 ! . 
so i have no idea what is wrong with it . 
can anyone please help me get this going ? 
Thanks in advance 
cant install ffpmeg- php on centos 5.7
===

i have already installed ffmpeg on my centos 5.7, but whenever i try to install ffmpeg-php i fail to do it . everytime i get to the make section i get these errors :

    
    /bin/sh /usr/src/ffmphp/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c -o ffmpeg_frame.lo
     cc -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c  -fPIC -DPIC -o .libs/ffmpeg_frame.o
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:50:1: warning: "/*" within comment
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_entry'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_methods'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:145: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:160: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'register_ffmpeg_frame_class':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:173: warning: implicit declaration of function 'TSRMLS_FETCH'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: warning: implicit declaration of function 'zend_register_list_destructors_ex'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: '_php_free_ffmpeg_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: (Each undeclared identifier is reported only once
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: for each function it appears in.)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:176: error: 'NULL' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: warning: implicit declaration of function 'INIT_CLASS_ENTRY'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: error: 'ffmpeg_frame_class_entry' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:179: error: 'ffmpeg_frame_class_methods' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:182: error: 'ffmpeg_frame_class_entry_ptr' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: warning: implicit declaration of function 'zend_register_internal_class'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: error: expected ')' before 'TSRMLS_CC'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:190: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'GET_FRAME_RESOURCE'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'getThis'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: warning: implicit declaration of function 'RETURN_DOUBLE'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: error: 'AV_TIME_BASE' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:464: warning: implicit declaration of function 'RETURN_LONG'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame' undeclared (first use in this function)
    make: *** [ffmpeg_frame.lo] Error 1


i read that if i get the 

> `make: *** [ffmpeg_frame.lo] Error 1`

error , i replace all ***PIX_FMT_RGBA32*** with ***PIX_FMT_RGB32*** inside ***ffmpeg_frame.c***. but when i search the file , there is no ***PIX_FMT_RGBA32*** . there are all PIX_FMT_RGB32 ! . 
so i have no idea what is wrong with it . 
can anyone please help me get this going ? 
Thanks in advance 