[FFmpeg-trac] #3888(ffmpeg:new): make: *** [ffmpeg-php.lo] Error 1
FFmpeg
trac at avcodec.org
Sun Aug 24 10:07:04 CEST 2014
#3888: make: *** [ffmpeg-php.lo] Error 1
-------------------------------------+-------------------------------------
Reporter: shnslmz | Type: defect
Status: new | Priority: important
Component: ffmpeg | Version:
Keywords: ffmpeg-php | unspecified
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Hello,
My VPS: CentOS 6.5 x86_64
PHP V: PHP 5.3.3
FFMPEG: Installed
'''Step step install ffmpeg-php:
# phpize'''
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
...
'''# ./configure'''
..
..
'''# make'''
/usr/include/php/TSRM/tsrm_virtual_cwd.h:212: error: expected specifier-
qualifier-list before ‘time_t’
/usr/include/php/TSRM/tsrm_virtual_cwd.h:240: error: expected declaration
specifiers or ‘...’ before ‘time_t’
/srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c: In function ‘zm_startup_ffmpeg’:
/srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration
of function ‘avcodec_init’
make: *** [ffmpeg-php.lo] Error 1
'''make error details:'''
/bin/sh /srv/build/ffmpeg-php-0.6.0/libtool --mode=compile cc -I.
-I/srv/build/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/srv/build/ffmpeg-
php-0.6.0/include -I/srv/build/ffmpeg-php-0.6.0/main -I/srv/build/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 /srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo
libtool: compile: cc -I. -I/srv/build/ffmpeg-php-0.6.0 -DPHP_ATOM_INC
-I/srv/build/ffmpeg-php-0.6.0/include -I/srv/build/ffmpeg-php-0.6.0/main
-I/srv/build/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 /srv/build/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,
from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:405,
from /srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/bits/stat.h:91: error: field ‘st_atim’ has incomplete type
/usr/include/bits/stat.h:92: error: field ‘st_mtim’ has incomplete type
/usr/include/bits/stat.h:93: error: field ‘st_ctim’ has incomplete type
/usr/include/bits/stat.h:152: error: field ‘st_atim’ has incomplete type
/usr/include/bits/stat.h:153: error: field ‘st_mtim’ has incomplete type
/usr/include/bits/stat.h:154: error: field ‘st_ctim’ has incomplete type
In file included from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:405,
from /srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/sys/stat.h:367: error: array type has incomplete element type
/usr/include/sys/stat.h:374: error: array type has incomplete element type
In file included from /usr/include/php/main/php.h:411,
from /srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/php/TSRM/tsrm_virtual_cwd.h:212: error: expected specifier-
qualifier-list before ‘time_t’
/usr/include/php/TSRM/tsrm_virtual_cwd.h:240: error: expected declaration
specifiers or ‘...’ before ‘time_t’
/srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c: In function ‘zm_startup_ffmpeg’:
/srv/build/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration
of function ‘avcodec_init’
make: *** [ffmpeg-php.lo] Error 1
'''FFMPEG Details:'''
[root at vmi26867 ffmpeg-php-0.6.0]# ffmpeg
ffmpeg version N-65847-g554d819-syslint Copyright (c) 2000-2014 the FFmpeg
developers
built on Aug 23 2014 19:36:38 with gcc 4.4.7 (GCC) 20120313 (Red Hat
4.4.7-4)
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-
nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb
--enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264
--enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-
ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-
version=syslint
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 0.101 / 56. 0.101
libavformat 56. 2.100 / 56. 2.100
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 0.103 / 5. 0.103
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
outfile}...
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3888>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list