try make:
/bin/sh /root/ffmpeg-php-0.6.0/libtool --mode=compile cc -I. -I/root/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/ffmpeg-php-0.6.0/include -I/root/ffmpeg-php-0.6.0/main -I/root/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/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo
libtool: compile: cc -I. -I/root/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/root/ffmpeg-php-0.6.0/include -I/root/ffmpeg-php-0.6.0/main -I/root/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/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/ffmpeg-php-0.6.0/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /usr/include/sys/stat.h:107:0,
from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:396,
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/bits/stat.h:91:21: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:92:21: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:93:21: error: field 'st_ctim' has incomplete type
/usr/include/bits/stat.h:152:21: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:153:21: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:154:21: error: field 'st_ctim' has incomplete type
In file included from /usr/include/php/main/php_streams.h:28:0,
from /usr/include/php/main/php.h:396,
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/sys/stat.h:367:33: error: array type has incomplete element type
/usr/include/sys/stat.h:374:56: error: array type has incomplete element type
In file included from /usr/include/php/main/php.h:402:0,
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/php/TSRM/tsrm_virtual_cwd.h:218:2: error: unknown type name 'time_t'
/usr/include/php/TSRM/tsrm_virtual_cwd.h:246:86: error: unknown type name 'time_t'
/root/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg':
/root/ffmpeg-php-0.6.0/ffmpeg-php.c:94:5: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration]
make: *** [ffmpeg-php.lo] Error 1
I am having the exact same issue. My PHP was recently upgraded from my repository to php-5.4.10-1 . The ffmpeg-php (0.6.0) that was installed prior to the upgrade no longer loads. I downloaded ffmpeg-php from SVN and tried to compile. I ran phpize followed by './configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-php-config=/usr/bin/php-config --with-libdir=/usr/lib64 --with-ffmpeg --enable-shared --with-pic'. Finaly I ran make, and got the following error:
cc -I. -I/home/sruckh/ffmpeg-php/trunk/ffmpeg-php -DPHP_ATOM_INC -I/home/sruckh/ffmpeg-php/trunk/ffmpeg-php/include -I/home/sruckh/ffmpeg-php/trunk/ffmpeg-php/main -I/home/sruckh/ffmpeg-php/trunk/ffmpeg-php -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/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /home/sruckh/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /usr/include/sys/stat.h:105,
from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:396,
from /home/sruckh/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:40:
/usr/include/bits/stat.h:88: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:89: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:90: error: field 'st_ctim' has incomplete type
In file included from /usr/include/php/main/php.h:402,
from /home/sruckh/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:40:
/usr/include/php/TSRM/tsrm_virtual_cwd.h:218: error: expected specifier-qualifier-list before 'time_t'
/usr/include/php/TSRM/tsrm_virtual_cwd.h:246: error: expected declaration specifiers or '...' before 'time_t'
make: *** [ffmpeg-php.lo] Error 1
This is being attempted on CentOS release 5.8 (Final) (x64). The version of ffmpeg that is installed is from git dated December 18, 2012.
The original post was submitted in September. Is this project still active?
Any help would be appreciated.
Thank You,
GemnEye
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Same problem...
Last edit: Anonymous 2016-05-27
I had this same issue when making against ffmpeg-1.2.1 from the atomic repo.
Solution:
Remove ffmpeg and ffmpeg-devel and reinstall from DAG Repo which provides ffmpeg0.6.5
I also had to remove a couple of file conflicts:
yum remove libopencore-amrnb0 liba52_0 libopencore-amrwb0 librtmp0
Last edit: drupaul 2013-07-31