LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2015, 03:34 AM   #1
pandy669@gmail.com
Member
 
Registered: Jan 2015
Posts: 65

Rep: Reputation: Disabled
ffmpeg-php-make: *** [ffmpeg_movie.lo] Error 1 on centos


I am using centos 7 (x86_64)
I have installed ffmpeg and ffmpeg-devel 2.2.1 rpm packages.

when i execute 'make' command in ffmpeg-php i got the following error.
after execution of phpize and ./configure.
Code:
[root@aryan ffmpeg-php-0.6.0]# make
/bin/sh /home/usr1/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/home/usr1/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/home/usr1/ffmpeg-php-0.6.0/include -I/home/usr1/ffmpeg-php-0.6.0/main -I/home/usr1/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 /home/usr1/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo 
libtool: compile:  cc -I. -I/home/usr1/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/home/usr1/ffmpeg-php-0.6.0/include -I/home/usr1/ffmpeg-php-0.6.0/main -I/home/usr1/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 /home/usr1/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /usr/include/sys/stat.h:106:0,
                 from /usr/include/php/main/php_streams.h:28,
                 from /usr/include/php/main/php.h:396,
                 from /home/usr1/ffmpeg-php-0.6.0/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 /usr/include/php/main/php_streams.h:28:0,
                 from /usr/include/php/main/php.h:396,
                 from /home/usr1/ffmpeg-php-0.6.0/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 /usr/include/php/main/php.h:402:0,
                 from /home/usr1/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'
  time_t                         expires;
  ^
/usr/include/php/TSRM/tsrm_virtual_cwd.h:246:86: error: unknown type name 'time_t'
 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC);
                                                                                      ^
/home/usr1/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg':
/home/usr1/ffmpeg-php-0.6.0/ffmpeg-php.c:94:5: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration]
     avcodec_init();
     ^
make: *** [ffmpeg-php.lo] Error 1
and

ffmpeg installed details

Code:
[root@aryan ffmpeg-php-0.6.0]# ffmpeg 
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 17 2014 01:25:46 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --disable-stripping
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
I have searched many sites .But didnt get any currect solution.
t have tried in centos 6.6 also .same pblm is occuring .please give some idea to install ffmpeg-php.
 
Old 10-01-2015, 04:19 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,902

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Hi,

Have a look here

Regards
 
Old 10-05-2015, 08:44 AM   #3
pandy669@gmail.com
Member
 
Registered: Jan 2015
Posts: 65

Original Poster
Rep: Reputation: Disabled
problem still occuring

thanks for your quick reply.
And sorry for my late reply .
i am also new to linux.I have followed by patch file to change the 3 files in ffmpeg-php directory.
Also deleted the time.h file from /usr/include directory.
After changed them the same error is occuring.

I dont know , i was done a currect procedure.please give me a solution.
thanks in advance.

Last edited by pandy669@gmail.com; 10-05-2015 at 09:12 AM.
 
Old 10-05-2015, 12:41 PM   #4
tonj
Member
 
Registered: Sep 2008
Posts: 474

Rep: Reputation: 34
I take you're compiling ffmpeg from source...
Why not install it using yum?
https://wiki.centos.org/TipsAndTrick...mediaOnCentOS7
 
Old 10-05-2015, 01:22 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,902

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Quote:
Originally Posted by pandy669@gmail.com View Post
thanks for your quick reply.
And sorry for my late reply .
i am also new to linux.I have followed by patch file to change the 3 files in ffmpeg-php directory.
Also deleted the time.h file from /usr/include directory.
After changed them the same error is occuring.

I dont know , i was done a currect procedure.please give me a solution.
thanks in advance.
If you did that, you should run "make distclean" or "make clean" to clean sources and run ./configure again.
Or you can extract the sources to a new location, apply the patch and try.
 
Old 10-06-2015, 09:34 AM   #6
pandy669@gmail.com
Member
 
Registered: Jan 2015
Posts: 65

Original Poster
Rep: Reputation: Disabled
cannot install ffmpeg

I was installed ffmpeg from the rpm file .Now I have removed ffmpeg package.
And followed your steps ,that says dont have that package named.what to do.
here is a output

Code:
[usr1@aryan ~]$ yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
Loaded plugins: fastestmirror, langpacks
nux-dextop-release-0-5.el7.nux.noarch.rpm                | 9.7 kB     00:01     
Examining /var/tmp/yum-root-3lhBrJ/nux-dextop-release-0-5.el7.nux.noarch.rpm: nux-dextop-release-0-5.el7.nux.noarch
/var/tmp/yum-root-3lhBrJ/nux-dextop-release-0-5.el7.nux.noarch.rpm: does not update installed package.
Error: Nothing to do

[usr1@aryan ~]$ yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm
Loaded plugins: fastestmirror, langpacks
adobe-release-x86_64-1.0-1.noarch.rpm                    | 4.2 kB     00:00     
Examining /var/tmp/yum-root-3lhBrJ/adobe-release-x86_64-1.0-1.noarch.rpm: adobe-release-x86_64-1.0-1.noarch
/var/tmp/yum-root-3lhBrJ/adobe-release-x86_64-1.0-1.noarch.rpm: does not update installed package.
Error: Nothing to do

[usr1@aryan ~]$ yum install flash-plugin
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: mirror.rise.ph
 * extras: centos.excellmedia.net
 * remi-safe: rpms.remirepo.net
 * rpmforge: mirror.oscc.org.my
 * updates: centos.excellmedia.net
Package flash-plugin-11.2.202.521-release.x86_64 already installed and latest version
Nothing to do
[usr1@aryan ~]$ yum install icedtea-web
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: mirror.rise.ph
 * extras: centos.excellmedia.net
 * remi-safe: rpms.remirepo.net
 * rpmforge: mirror.oscc.org.my
 * updates: centos.excellmedia.net
Package icedtea-web-1.5.2-0.el7.x86_64 already installed and latest version
Nothing to do

[usr1@aryan ~]$ yum install vlc smplayer ffmpeg HandBrake-{gui,cli}
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: mirror.rise.ph
 * extras: centos.excellmedia.net
 * remi-safe: rpms.remirepo.net
 * rpmforge: mirror.oscc.org.my
 * updates: centos.excellmedia.net
No package vlc available.
No package smplayer available.
No package ffmpeg available.
No package HandBrake-gui available.
No package HandBrake-cli available.
Error: Nothing to do

[usr1@aryan ~]$ yum install libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: mirror.rise.ph
 * extras: centos.excellmedia.net
 * remi-safe: rpms.remirepo.net
 * rpmforge: mirror.oscc.org.my
 * updates: centos.excellmedia.net
No package libdvdcss available.
No package gstreamer-plugins-ugly available.
No package gstreamer1-plugins-ugly available.
No package gstreamer-plugins-bad-nonfree available.
Nothing to do
I have already tried to execute the ffmpeg-php setup.Didn't solve the issue.

thanks in advance
 
Old 10-06-2015, 09:56 AM   #7
tonj
Member
 
Registered: Sep 2008
Posts: 474

Rep: Reputation: 34
did you install the epel repo first?
# yum install epel-release
 
Old 10-06-2015, 10:11 AM   #8
pandy669@gmail.com
Member
 
Registered: Jan 2015
Posts: 65

Original Poster
Rep: Reputation: Disabled
absolutely

yes i have already installed.
But i may removed that package
I dont mind on that.
[usr1@aryan /]$ s yum install epel-release
Loaded plugins: fastestmirror, langpacks
adobe-linux-x86_64 | 951 B 00:00
base | 3.6 kB 00:00
dag | 1.9 kB 00:00
epel/x86_64/metalink | 4.4 kB 00:00
extras | 3.4 kB 00:00
google-chrome | 951 B 00:00
remi-safe | 2.9 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
vmware-tools | 951 B 00:00
remi-safe/primary_db | 89 kB 00:01
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: mirror.rise.ph
* extras: centos.excellmedia.net
* remi-safe: rpms.remirepo.net
* rpmforge: mirror.oscc.org.my
* updates: centos.excellmedia.net
Package epel-release-7-5.noarch already installed and latest version
Nothing to do
 
Old 10-06-2015, 10:25 AM   #9
tonj
Member
 
Registered: Sep 2008
Posts: 474

Rep: Reputation: 34
ok do these and post back:
# more /etc/*-release
# cat /etc/issue
what happens if you do yum update? does it work ok?
 
Old 10-06-2015, 10:58 AM   #10
pandy669@gmail.com
Member
 
Registered: Jan 2015
Posts: 65

Original Poster
Rep: Reputation: Disabled
Code:
[usr1@aryan /]$ more /etc/*-release
::::::::::::::
/etc/centos-release
::::::::::::::
CentOS Linux release 7.1.1503 (Core) 
::::::::::::::
/etc/os-release
::::::::::::::
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

::::::::::::::
/etc/redhat-release
::::::::::::::
CentOS Linux release 7.1.1503 (Core) 
::::::::::::::
/etc/system-release
::::::::::::::
CentOS Linux release 7.1.1503 (Core)
And
Code:
[usr1@aryan /]$ cat /etc/issue
\S
Kernel \r on an \m

yum update didn't give any error messege.
Code:
[usr1@aryan /]$ s yum update
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: mirror.rise.ph
 * extras: centos.excellmedia.net
 * remi-safe: rpms.remirepo.net
 * rpmforge: mirror.oscc.org.my
 * updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package centos-logos.noarch 0:70.0.6-2.el7.centos will be updated
---> Package centos-logos.noarch 0:70.0.6-3.el7.centos will be an update
---> Package enca.x86_64 0:1.14-1.el7 will be updated
---> Package enca.x86_64 0:1.16-1.el7 will be an update
---> Package kde-settings.noarch 0:19-23.5.el7 will be updated
---> Package kde-settings.noarch 0:19-23.5.el7.centos will be an update
---> Package kde-settings-ksplash.noarch 0:19-23.5.el7 will be updated
---> Package kde-settings-ksplash.noarch 0:19-23.5.el7.centos will be an update
---> Package kde-settings-plasma.noarch 0:19-23.5.el7 will be updated
---> Package kde-settings-plasma.noarch 0:19-23.5.el7.centos will be an update
---> Package nagios-plugins.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-disk.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-disk.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-http.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-http.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-load.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-load.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-ntp.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-ntp.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-ping.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-ping.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-procs.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-procs.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-ssh.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-ssh.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-swap.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-swap.x86_64 0:2.0.3-3.el7 will be an update
---> Package nagios-plugins-users.x86_64 0:2.0.3-1.el7 will be updated
---> Package nagios-plugins-users.x86_64 0:2.0.3-3.el7 will be an update
---> Package openldap.x86_64 0:2.4.39-6.el7 will be updated
---> Package openldap.x86_64 0:2.4.39-7.el7.centos will be an update
---> Package openldap-clients.x86_64 0:2.4.39-6.el7 will be updated
---> Package openldap-clients.x86_64 0:2.4.39-7.el7.centos will be an update
---> Package openldap-devel.x86_64 0:2.4.39-6.el7 will be updated
---> Package openldap-devel.x86_64 0:2.4.39-7.el7.centos will be an update
---> Package openldap-servers.x86_64 0:2.4.39-6.el7 will be updated
---> Package openldap-servers.x86_64 0:2.4.39-7.el7.centos will be an update
---> Package qt-settings.noarch 0:19-23.5.el7 will be updated
---> Package qt-settings.noarch 0:19-23.5.el7.centos will be an update
---> Package soxr.x86_64 0:0.1.1-3.el7 will be updated
---> Package soxr.x86_64 0:0.1.2-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================
 Package                 Arch      Version                   Repository  Size
==============================================================================
Updating:
 centos-logos            noarch    70.0.6-3.el7.centos       updates     21 M
 enca                    x86_64    1.16-1.el7                epel       106 k
 kde-settings            noarch    19-23.5.el7.centos        updates     33 k
 kde-settings-ksplash    noarch    19-23.5.el7.centos        updates     15 k
 kde-settings-plasma     noarch    19-23.5.el7.centos        updates     15 k
 nagios-plugins          x86_64    2.0.3-3.el7               epel       226 k
 nagios-plugins-disk     x86_64    2.0.3-3.el7               epel        42 k
 nagios-plugins-http     x86_64    2.0.3-3.el7               epel        53 k
 nagios-plugins-load     x86_64    2.0.3-3.el7               epel        36 k
 nagios-plugins-ntp      x86_64    2.0.3-3.el7               epel        59 k
 nagios-plugins-ping     x86_64    2.0.3-3.el7               epel        41 k
 nagios-plugins-procs    x86_64    2.0.3-3.el7               epel        41 k
 nagios-plugins-ssh      x86_64    2.0.3-3.el7               epel        36 k
 nagios-plugins-swap     x86_64    2.0.3-3.el7               epel        35 k
 nagios-plugins-users    x86_64    2.0.3-3.el7               epel        33 k
 openldap                x86_64    2.4.39-7.el7.centos       updates    344 k
 openldap-clients        x86_64    2.4.39-7.el7.centos       updates    184 k
 openldap-devel          x86_64    2.4.39-7.el7.centos       updates    797 k
 openldap-servers        x86_64    2.4.39-7.el7.centos       updates    2.1 M
 qt-settings             noarch    19-23.5.el7.centos        updates     17 k
 soxr                    x86_64    0.1.2-1.el7               epel        77 k

Transaction Summary
==============================================================================
Upgrade  21 Packages

Total size: 26 M
Total download size: 785 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for epel
(1/12): nagios-plugins-http-2.0.3-3.el7.x86_64.rpm       |  53 kB   00:00     
(2/12): enca-1.16-1.el7.x86_64.rpm                       | 106 kB   00:00     
(3/12): nagios-plugins-ping-2.0.3-3.el7.x86_64.rpm       |  41 kB   00:00     
(4/12): nagios-plugins-procs-2.0.3-3.el7.x86_64.rpm      |  41 kB   00:00     
(5/12): nagios-plugins-2.0.3-3.el7.x86_64.rpm            | 226 kB   00:01     
(6/12): nagios-plugins-ssh-2.0.3-3.el7.x86_64.rpm        |  36 kB   00:00     
(7/12): nagios-plugins-load-2.0.3-3.el7.x86_64.rpm       |  36 kB   00:01     
(8/12): nagios-plugins-users-2.0.3-3.el7.x86_64.rpm      |  33 kB   00:00     
(9/12): nagios-plugins-disk-2.0.3-3.el7.x86_64.rpm       |  42 kB   00:01     
(10/12): nagios-plugins-ntp-2.0.3-3.el7.x86_64.rpm       |  59 kB   00:01     
(11/12): nagios-plugins-swap-2.0.3-3.el7.x86_64.rpm      |  35 kB   00:02     
(12/12): soxr-0.1.2-1.el7.x86_64.rpm                     |  77 kB   00:02     
------------------------------------------------------------------------------
Total                                            195 kB/s | 785 kB  00:04     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : nagios-plugins-2.0.3-3.el7.x86_64                         1/42 
  Updating   : openldap-2.4.39-7.el7.centos.x86_64                       2/42 
  Updating   : kde-settings-19-23.5.el7.centos.noarch                    3/42 
  Updating   : centos-logos-70.0.6-3.el7.centos.noarch                   4/42 
  Updating   : kde-settings-ksplash-19-23.5.el7.centos.noarch            5/42 
  Updating   : kde-settings-plasma-19-23.5.el7.centos.noarch             6/42 
  Updating   : openldap-clients-2.4.39-7.el7.centos.x86_64               7/42 
  Updating   : openldap-devel-2.4.39-7.el7.centos.x86_64                 8/42 
  Updating   : openldap-servers-2.4.39-7.el7.centos.x86_64               9/42 
  Updating   : nagios-plugins-swap-2.0.3-3.el7.x86_64                   10/42 
  Updating   : nagios-plugins-users-2.0.3-3.el7.x86_64                  11/42 
  Updating   : nagios-plugins-ping-2.0.3-3.el7.x86_64                   12/42 
  Updating   : nagios-plugins-ssh-2.0.3-3.el7.x86_64                    13/42 
  Updating   : nagios-plugins-load-2.0.3-3.el7.x86_64                   14/42 
  Updating   : nagios-plugins-http-2.0.3-3.el7.x86_64                   15/42 
  Updating   : nagios-plugins-disk-2.0.3-3.el7.x86_64                   16/42 
  Updating   : nagios-plugins-ntp-2.0.3-3.el7.x86_64                    17/42 
  Updating   : nagios-plugins-procs-2.0.3-3.el7.x86_64                  18/42 
  Updating   : qt-settings-19-23.5.el7.centos.noarch                    19/42 
  Updating   : soxr-0.1.2-1.el7.x86_64                                  20/42 
  Updating   : enca-1.16-1.el7.x86_64                                   21/42 
  Cleanup    : kde-settings-plasma-19-23.5.el7.noarch                   22/42 
  Cleanup    : kde-settings-ksplash-19-23.5.el7.noarch                  23/42 
  Cleanup    : openldap-devel-2.4.39-6.el7.x86_64                       24/42 
  Cleanup    : openldap-servers-2.4.39-6.el7.x86_64                     25/42 
  Cleanup    : nagios-plugins-procs-2.0.3-1.el7.x86_64                  26/42 
  Cleanup    : nagios-plugins-ntp-2.0.3-1.el7.x86_64                    27/42 
  Cleanup    : nagios-plugins-disk-2.0.3-1.el7.x86_64                   28/42 
  Cleanup    : nagios-plugins-http-2.0.3-1.el7.x86_64                   29/42 
  Cleanup    : openldap-clients-2.4.39-6.el7.x86_64                     30/42 
  Cleanup    : nagios-plugins-load-2.0.3-1.el7.x86_64                   31/42 
  Cleanup    : nagios-plugins-ssh-2.0.3-1.el7.x86_64                    32/42 
  Cleanup    : nagios-plugins-ping-2.0.3-1.el7.x86_64                   33/42 
  Cleanup    : nagios-plugins-users-2.0.3-1.el7.x86_64                  34/42 
  Cleanup    : nagios-plugins-swap-2.0.3-1.el7.x86_64                   35/42 
  Cleanup    : kde-settings-19-23.5.el7.noarch                          36/42 
  Cleanup    : centos-logos-70.0.6-2.el7.centos.noarch                  37/42 
  Cleanup    : qt-settings-19-23.5.el7.noarch                           38/42 
  Cleanup    : nagios-plugins-2.0.3-1.el7.x86_64                        39/42 
  Cleanup    : openldap-2.4.39-6.el7.x86_64                             40/42 
  Cleanup    : soxr-0.1.1-3.el7.x86_64                                  41/42 
  Cleanup    : enca-1.14-1.el7.x86_64                                   42/42 
  Verifying  : nagios-plugins-swap-2.0.3-3.el7.x86_64                    1/42 
  Verifying  : nagios-plugins-users-2.0.3-3.el7.x86_64                   2/42 
  Verifying  : nagios-plugins-ping-2.0.3-3.el7.x86_64                    3/42 
  Verifying  : nagios-plugins-ssh-2.0.3-3.el7.x86_64                     4/42 
  Verifying  : nagios-plugins-load-2.0.3-3.el7.x86_64                    5/42 
  Verifying  : openldap-2.4.39-7.el7.centos.x86_64                       6/42 
  Verifying  : centos-logos-70.0.6-3.el7.centos.noarch                   7/42 
  Verifying  : openldap-clients-2.4.39-7.el7.centos.x86_64               8/42 
  Verifying  : nagios-plugins-http-2.0.3-3.el7.x86_64                    9/42 
  Verifying  : enca-1.16-1.el7.x86_64                                   10/42 
  Verifying  : openldap-devel-2.4.39-7.el7.centos.x86_64                11/42 
  Verifying  : soxr-0.1.2-1.el7.x86_64                                  12/42 
  Verifying  : kde-settings-ksplash-19-23.5.el7.centos.noarch           13/42 
  Verifying  : nagios-plugins-disk-2.0.3-3.el7.x86_64                   14/42 
  Verifying  : qt-settings-19-23.5.el7.centos.noarch                    15/42 
  Verifying  : nagios-plugins-ntp-2.0.3-3.el7.x86_64                    16/42 
  Verifying  : nagios-plugins-procs-2.0.3-3.el7.x86_64                  17/42 
  Verifying  : kde-settings-plasma-19-23.5.el7.centos.noarch            18/42 
  Verifying  : openldap-servers-2.4.39-7.el7.centos.x86_64              19/42 
  Verifying  : kde-settings-19-23.5.el7.centos.noarch                   20/42 
  Verifying  : nagios-plugins-2.0.3-3.el7.x86_64                        21/42 
  Verifying  : nagios-plugins-load-2.0.3-1.el7.x86_64                   22/42 
  Verifying  : centos-logos-70.0.6-2.el7.centos.noarch                  23/42 
  Verifying  : nagios-plugins-http-2.0.3-1.el7.x86_64                   24/42 
  Verifying  : kde-settings-plasma-19-23.5.el7.noarch                   25/42 
  Verifying  : openldap-servers-2.4.39-6.el7.x86_64                     26/42 
  Verifying  : kde-settings-19-23.5.el7.noarch                          27/42 
  Verifying  : nagios-plugins-disk-2.0.3-1.el7.x86_64                   28/42 
  Verifying  : openldap-clients-2.4.39-6.el7.x86_64                     29/42 
  Verifying  : kde-settings-ksplash-19-23.5.el7.noarch                  30/42 
  Verifying  : enca-1.14-1.el7.x86_64                                   31/42 
  Verifying  : nagios-plugins-procs-2.0.3-1.el7.x86_64                  32/42 
  Verifying  : nagios-plugins-ntp-2.0.3-1.el7.x86_64                    33/42 
  Verifying  : openldap-devel-2.4.39-6.el7.x86_64                       34/42 
  Verifying  : openldap-2.4.39-6.el7.x86_64                             35/42 
  Verifying  : nagios-plugins-2.0.3-1.el7.x86_64                        36/42 
  Verifying  : qt-settings-19-23.5.el7.noarch                           37/42 
  Verifying  : nagios-plugins-swap-2.0.3-1.el7.x86_64                   38/42 
  Verifying  : soxr-0.1.1-3.el7.x86_64                                  39/42 
  Verifying  : nagios-plugins-ping-2.0.3-1.el7.x86_64                   40/42 
  Verifying  : nagios-plugins-ssh-2.0.3-1.el7.x86_64                    41/42 
  Verifying  : nagios-plugins-users-2.0.3-1.el7.x86_64                  42/42 

Updated:
  centos-logos.noarch 0:70.0.6-3.el7.centos                                   
  enca.x86_64 0:1.16-1.el7                                                    
  kde-settings.noarch 0:19-23.5.el7.centos                                    
  kde-settings-ksplash.noarch 0:19-23.5.el7.centos                            
  kde-settings-plasma.noarch 0:19-23.5.el7.centos                             
  nagios-plugins.x86_64 0:2.0.3-3.el7                                         
  nagios-plugins-disk.x86_64 0:2.0.3-3.el7                                    
  nagios-plugins-http.x86_64 0:2.0.3-3.el7                                    
  nagios-plugins-load.x86_64 0:2.0.3-3.el7                                    
  nagios-plugins-ntp.x86_64 0:2.0.3-3.el7                                     
  nagios-plugins-ping.x86_64 0:2.0.3-3.el7                                    
  nagios-plugins-procs.x86_64 0:2.0.3-3.el7                                   
  nagios-plugins-ssh.x86_64 0:2.0.3-3.el7                                     
  nagios-plugins-swap.x86_64 0:2.0.3-3.el7                                    
  nagios-plugins-users.x86_64 0:2.0.3-3.el7                                   
  openldap.x86_64 0:2.4.39-7.el7.centos                                       
  openldap-clients.x86_64 0:2.4.39-7.el7.centos                               
  openldap-devel.x86_64 0:2.4.39-7.el7.centos                                 
  openldap-servers.x86_64 0:2.4.39-7.el7.centos                               
  qt-settings.noarch 0:19-23.5.el7.centos                                     
  soxr.x86_64 0:0.1.2-1.el7                                                   

Complete!
[usr1@aryan /]$
 
Old 10-06-2015, 12:00 PM   #11
tonj
Member
 
Registered: Sep 2008
Posts: 474

Rep: Reputation: 34
ok now that you've done an update just try the
1) adobe repo install again
yum -y install http://linuxdownload.adobe.com/linux...0-1.noarch.rpm
forget nux-desktop, iced tead vlc, handbrake and all that. I managed to get ffmpeg with just epel and adobe repo.
 
Old 10-07-2015, 02:40 AM   #12
pandy669@gmail.com
Member
 
Registered: Jan 2015
Posts: 65

Original Poster
Rep: Reputation: Disabled
Hi,
when i tried to

Code:
[usr1@aryan ntfs]$ s yum -y install http://linuxdownload.adobe.com/linux...0-1.noarch.rpm
Loaded plugins: fastestmirror, langpacks
Cannot open: http://linuxdownload.adobe.com/linux...0-1.noarch.rpm. Skipping.
Error: Nothing to do
I dont know what the error that.

After that I have tried to install by downloading that package.

that says

Code:
[usr1@aryan Downloads]$ s yum install adobe-release-x86_64-1.0-1.noarch.rpm 
Loaded plugins: fastestmirror, langpacks
Examining adobe-release-x86_64-1.0-1.noarch.rpm: adobe-release-x86_64-1.0-1.noarch
adobe-release-x86_64-1.0-1.noarch.rpm: does not update installed package.
Error: Nothing to do
why the first command says cannot open?
And is this already installed perfectly?
 
Old 10-07-2015, 03:13 AM   #13
tonj
Member
 
Registered: Sep 2008
Posts: 474

Rep: Reputation: 34
ok do:
# cd /etc/yum.repos.d
# dir
post the results here.
 
Old 10-07-2015, 03:51 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,902

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Quote:
Originally Posted by tonj View Post
ok do:
# cd /etc/yum.repos.d
# dir
post the results here.
Please mind that OP wants to install the ffmpeg-php extension, not ffmpeg that he had already installed

@OP
After applying the patch, run "make distclean" (or "make clean") inside the ffmpeg-php sources directory and try to recompile it again
 
Old 10-07-2015, 06:57 AM   #15
pandy669@gmail.com
Member
 
Registered: Jan 2015
Posts: 65

Original Poster
Rep: Reputation: Disabled
thanks for your quick replies

this is the output of yum.repos.d
Code:
 [usr1@aryan Downloads]$ cd /etc/yum.repos.d
[usr1@aryan yum.repos.d]$ dir
adobe-linux-x86_64.repo  dag.repo		   nux-dextop.repo
CentOS-Base.repo	 epel.repo		   remi-php70.repo
CentOS-CR.repo		 epel-testing.repo	   remi.repo
CentOS-Debuginfo.repo	 google-chrome.repo	   remi-safe.repo
CentOS-fasttrack.repo	 mirrors-rpmforge	   rpmforge.repo
CentOS-Sources.repo	 mirrors-rpmforge-extras   vmware-tools.repo
CentOS-Vault.repo	 mirrors-rpmforge-testing


I have changed the location of ffmpeg-php source file.
and changed the neccasaary files that have to modify by that patch file.I cant execute the patch file ,thats y manualy i have changed those three files in the source file.
After i have changed the files this is the output of runnig make command.

Code:
[usr1@aryan ffmpeg-php-0.6.0]$ make
/bin/sh /usr/src/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmpeg-php-0.6.0/include -I/usr/src/ffmpeg-php-0.6.0/main -I/usr/src/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 /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo 
libtool: compile:  cc -I. -I/usr/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmpeg-php-0.6.0/include -I/usr/src/ffmpeg-php-0.6.0/main -I/usr/src/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 /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c  -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /usr/include/sys/stat.h:106:0,
                 from /usr/include/php/main/php_streams.h:28,
                 from /usr/include/php/main/php.h:396,
                 from /usr/src/ffmpeg-php-0.6.0/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 /usr/include/php/main/php_streams.h:28:0,
                 from /usr/include/php/main/php.h:396,
                 from /usr/src/ffmpeg-php-0.6.0/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 /usr/include/php/main/php.h:402:0,
                 from /usr/src/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'
  time_t                         expires;
  ^
/usr/include/php/TSRM/tsrm_virtual_cwd.h:246:86: error: unknown type name 'time_t'
 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC);
                                                                                      ^
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg':
/usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94:5: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration]
     avcodec_init();
     ^
make: *** [ffmpeg-php.lo] Error 1
 
  


Reply

Tags
centos, centos7, ffmpeg-php, redhat, servers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install ffmpeg-php on CentOS 6 with DirectAdmin LXer Syndicated Linux News 0 11-19-2014 10:21 PM
[SOLVED] Problem installing ffmpeg-php with PHP 5.3.13 and CentOS 5.8 kirti1977 Linux - Software 2 11-19-2012 11:08 AM
FFMpeg error on Centos installation tim.bache@i-a.co.uk Linux - Server 13 06-13-2012 10:08 AM
Install ffmpeg for PHP ( ffmpeg-php extension ) shlomi.s Linux - Software 2 02-02-2010 01:52 AM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration