#52 Will not compile against PHP 5.4

open
nobody
None
5
2014-11-28
2012-05-03
No

Latest svn revision will not compile against php 5.4

/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie___construct':
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: 'list_entry' undeclared (first use in this function)
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: (Each undeclared identifier is reported only once
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: for each function it appears in.)
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:318: error: 'le' undeclared (first use in this function)
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:353: error: expected ';' before 'new_le'
/root/ffmpeg/ffmpeg-php-0.7.0/ffmpeg_movie.c:363: error: 'new_le' undeclared (first use in this function)

Discussion

  • Kirill

    Kirill - 2012-07-18

    Same problem

    /usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c: In function 'zim_ffmpeg_movie___construct':
    /usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: 'list_entry' undeclared (first use in this function)
    /usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: (Each undeclared identifier is reported only once
    /usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: for each function it appears in.)
    /usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:311: error: 'le' undeclared (first use in this function)
    /usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:346: error: expected ';' before 'new_le'
    /usr/work/src/php-5.4.4/ext/ffmpeg/ffmpeg_movie.c:356: error: 'new_le' undeclared (first use in this function)

     
  • CentTom

    CentTom - 2012-07-27

    Hi Guys,

    i have the solucion ... i hope it helps

    Changes in ffmpeg_movie.c:

    row 311: list_entry *le; TO zend_rsrc_list_entry *le;
    row 346: list_entry new_le; TO zend_rsrc_list_entry new_le;
    row 360: hashkey_length+1, (void *)&new_le, sizeof(list_entry), TO hashkey_length+1, (void *)&new_le,sizeof(zend_rsrc_list_entry),

    Thats all... change it and make it

    Thomas

     
  • Chintan

    Chintan - 2014-08-28

    Hi I did the same thing and also resolve above error

    but then it is giving new error

    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_convert_frame':
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:202: warning: implicit declaration of function 'img_convert'
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_crop_frame':
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:260: warning: implicit declaration of function 'img_copy'
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c: In function '_php_resample_frame':
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: 'ImgReSampleContext' undeclared (first use in this function)
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: (Each undeclared identifier is reported only once
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: for each function it appears in.)
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:282: error: 'img_resample_ctx' undeclared (first use in this function)
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:308: warning: implicit declaration of function 'img_resample_full_init'
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:321: warning: implicit declaration of function 'img_resample'
    /opt/ffmpeg-php-0.5.3.1/ffmpeg_frame.c:326: warning: implicit declaration of function 'img_resample_close'

    FYI: I am using php 5.1.6 and using this ffmpeg-php-0.5.3.1 so any thing wrong with my virsion of PHP?
    I tried with many sources but it is configuring in only ffmpeg-php-0.5.3.1 in other virsion it gives header error.....
    thanks

     

Log in to post a comment.