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

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! smile

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

Sorry, but I can't help
This project is simply dead.

No modern version of ffmpeg is supported
No modern version of php is supported

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 24 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.8 x86_64 + EPEL + remi + remi-php70

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

Thanks for the response.