Jump to content

CentOS 7.3 + PHP 7.1.x REMI + ffmpeg-php MAKE ERROR - Help!


Recommended Posts

CentOS 7.3 + PHP 7.1.x REMI + ffmpeg-php MAKE ERROR - Help!

 

I could really use some expert help here...

 

I am using PHP 7.1.2 REMI with CentOS 7.3

 

I have successfully installed ffmpeg, but need to install ffmpeg-php 0.6.2

 

This is what happens when I compile:

 

[root@server ffmpeg-php-0.6.2] ./configure

 

[All Works Fine]

 

[root@server ffmpeg-php-0.6.2] make

 

OUTPUT ERROR:

/bin/sh /usr/local/src/ffmpeg-php-0.6.2/libtool --mode=compile cc  -I. -I/usr/local/src/ffmpeg-php-0.6.2 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.2/include -I/usr/local/src/ffmpeg-php-0.6.2/main -I/usr/local/src/ffmpeg-php-0.6.2 -I/opt/remi/php71/root/usr/include/php -I/opt/remi/php71/root/usr/include/php/main -I/opt/remi/php71/root/usr/include/php/TSRM -I/opt/remi/php71/root/usr/include/php/Zend -I/opt/remi/php71/root/usr/include/php/ext -I/opt/remi/php71/root/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/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c -o ffmpeg-php.lo
libtool: compile:  cc -I. -I/usr/local/src/ffmpeg-php-0.6.2 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.2/include -I/usr/local/src/ffmpeg-php-0.6.2/main -I/usr/local/src/ffmpeg-php-0.6.2 -I/opt/remi/php71/root/usr/include/php -I/opt/remi/php71/root/usr/include/php/main -I/opt/remi/php71/root/usr/include/php/TSRM -I/opt/remi/php71/root/usr/include/php/Zend -I/opt/remi/php71/root/usr/include/php/ext -I/opt/remi/php71/root/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/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /usr/include/sys/stat.h:106:0,
                 from /opt/remi/php71/root/usr/include/php/Zend/zend_stream.h:28,
                 from /opt/remi/php71/root/usr/include/php/Zend/zend.h:41,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:40:
/usr/include/bits/stat.h:91:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/bits/stat.h:92:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/bits/stat.h:93:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
/usr/include/bits/stat.h:152:21: error: field 'st_atim' has incomplete type
     struct timespec st_atim;  /* Time of last access.  */
                     ^
/usr/include/bits/stat.h:153:21: error: field 'st_mtim' has incomplete type
     struct timespec st_mtim;  /* Time of last modification.  */
                     ^
/usr/include/bits/stat.h:154:21: error: field 'st_ctim' has incomplete type
     struct timespec st_ctim;  /* Time of last status change.  */
                     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend_stream.h:28:0,
                 from /opt/remi/php71/root/usr/include/php/Zend/zend.h:41,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:40:
/usr/include/sys/stat.h:366:31: error: array type has incomplete element type
         const struct timespec __times[2],
                               ^
/usr/include/sys/stat.h:373:54: error: array type has incomplete element type
 extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
                                                      ^
In file included from /opt/remi/php71/root/usr/include/php/main/php.h:411:0,
                 from /usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:40:
/opt/remi/php71/root/usr/include/php/Zend/zend_virtual_cwd.h:219:2: error: unknown type name 'time_t'
  time_t                         expires;
  ^
/opt/remi/php71/root/usr/include/php/Zend/zend_virtual_cwd.h:249:86: error: unknown type name 'time_t'
 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t);
                                                                                      ^
/usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c: In function 'zm_startup_ffmpeg':
/usr/local/src/ffmpeg-php-0.6.2/ffmpeg-php.c:94:5: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration]
     avcodec_init();
     ^
make: *** [ffmpeg-php.lo] Error 1

Any idea how to resolve this?

 

Any help would be grateful! :)

 

 

Link to comment
Share on other sites

@

requinix:

Thanks for the quick reply. I too have also tried that version. This is the output of that build error:

 

[root@server ffmpeg-php] phpize

[root@server ffmpeg-php] ./configure

[ALL GOOD]

[root@server ffmpeg-php] make

 

I can't seem to capture the whole error , but this is the output i'm able to copy and paste:

 

 

    ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:791:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getPixelFormat':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:825:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:834:51: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
         RETURN_STRINGL((char *)fmt, strlen(fmt), 1);
                                                   ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:834:9: error: 'RETURN_STRINGL' undeclared (first use in this function)
         RETURN_STRINGL((char *)fmt, strlen(fmt), 1);
         ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getBitRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:857:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_hasAudio':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:870:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_hasVideo':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:883:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoCodec':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:949:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:954:57: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
         RETURN_STRINGL(codec_name, strlen(codec_name), 1);
                                                         ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:954:9: error: 'RETURN_STRINGL' undeclared (first use in this function)
         RETURN_STRINGL(codec_name, strlen(codec_name), 1);
         ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioCodec':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:969:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:974:57: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
         RETURN_STRINGL(codec_name, strlen(codec_name), 1);
                                                         ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:974:9: error: 'RETURN_STRINGL' undeclared (first use in this function)
         RETURN_STRINGL(codec_name, strlen(codec_name), 1);
         ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoStreamId':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:989:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioStreamId':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1011:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioChannels':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1049:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioSampleRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1085:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioBitRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1121:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getVideoBitRate':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1141:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function '_php_read_av_frame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1171:5: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3422) [-Wdeprecated-declarations]
     frame = avcodec_alloc_frame();
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function '_php_get_ff_frame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1294:9: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3422) [-Wdeprecated-declarations]
         ff_frame->av_frame = avcodec_alloc_frame();
         ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getNextKeyFrame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1320:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getFrame':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1336:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getPixelAspectRatio':
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: expected 'struct zend_string *' but argument is of type 'char *'
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: error: too many arguments to function 'zend_hash_find'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
In file included from /opt/remi/php71/root/usr/include/php/Zend/zend.h:36:0,
                 from /opt/remi/php71/root/usr/include/php/main/php.h:35,
                 from /usr/local/src/ffmpeg-php/ffmpeg_movie.c:36:
/opt/remi/php71/root/usr/include/php/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:56:62: warning: comparison between pointer and integer [enabled by default]
                 sizeof("ffmpeg_movie"), (void **)&_tmp_zval) == FAILURE) {\
                                                              ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:61:40: error: expected expression before 'ff_movie_context'
     ZEND_FETCH_RESOURCE2(ff_movie_ctx, ff_movie_context*, _tmp_zval, -1,\
                                        ^
/usr/local/src/ffmpeg-php/ffmpeg_movie.c:1401:5: note: in expansion of macro 'GET_MOVIE_RESOURCE'
     GET_MOVIE_RESOURCE(ffmovie_ctx);
     ^
make: *** [ffmpeg_movie.lo] Error 1
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.