Menu

#54 Building against php 5.4 on FreeBSD

open
nobody
None
5
2012-06-07
2012-06-07
ginoit
No

Similar issue as well (with make and gmake)

# cc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]

php5-5.4.3

ffmpeg-0.7.12_2,1

(same result with branch: ffmpeg-php-0.6.1)

/usr/local/include/php/ext/standard/info.h:87: error: expected declaration specifiers before '__attribute__'
In file included from /tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:53:
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/php_ffmpeg.h:70: error: storage class specified for parameter 'ffmpeg_module_entry'
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:58: error: parameter 'ffmpeg_module_entry' is initialized
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:58: error: redefinition of parameter 'ffmpeg_module_entry'
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/php_ffmpeg.h:70: error: previous definition of 'ffmpeg_module_entry' was here
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:77: error: expected declaration specifiers before '__attribute__'
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:77: error: expected declaration specifiers before ';' token
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:82: error: storage class specified for parameter 'register_ffmpeg_movie_class'
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:83: error: storage class specified for parameter 'register_ffmpeg_frame_class'
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:85: error: storage class specified for parameter 'ini_entries'
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:85: error: parameter 'ini_entries' is initialized
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:86: warning: braces around scalar initializer
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:86: warning: (near initialization for 'ini_entries')
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:86: warning: excess elements in scalar initializer
...

/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: excess elements in scalar initializer
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: (near initialization for 'ini_entries')
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: excess elements in scalar initializer
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:88: warning: (near initialization for 'ini_entries')
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:94: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:150: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:204: error: old-style parameter declarations in prototyped function definition
/tmp/pp/ffmpeg-php/trunk/ffmpeg-php/ffmpeg-php.c:204: error: expected '{' at end of input

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.