D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/php-oggvorbis-0.2-41.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.euJuED + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf oggvorbis-0.2 + /usr/bin/bzip2 -dc /home/pterjan/rpmbuild/SOURCES/oggvorbis-0.2.tar.bz2 + /usr/bin/tar -xof - /usr/bin/tar: A lone zero block at 60 + STATUS=0 + '[' 0 -ne 0 ']' + cd oggvorbis-0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/oggvorbis-0.2-label_at_end_of_compound_statement.diff + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ubjMaQ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd oggvorbis-0.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + /usr/src/php-devel/buildext oggvorbis oggvorbis.c '-logg -lvorbis -lvorbisenc -lvorbisfile' '-DWITH_OGGVORBIS -DCOMPILE_DL_OGGVORBIS' '-I/usr/include/vorbis -I/usr/include/ogg' oggvorbis.c: In function 'php_oggvorbis_init_writestream': oggvorbis.c:120:38: error: 'php_stream {aka struct _php_stream}' has no member named 'context' php_stream_context *context = stream->context; ^~ oggvorbis.c:130:3: error: too many arguments to function 'php_stream_context_get_option' php_stream_context_get_option(context, "ogg", "rate", &tmpzval) == SUCCESS && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:105:0, from /usr/include/php/main/php.h:405, from oggvorbis.c:23: /usr/include/php/main/streams/php_stream_context.h:62:14: note: declared here PHPAPI zval *php_stream_context_get_option(php_stream_context *context, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ oggvorbis.c:131:3: warning: implicit declaration of function 'Z_TYPE_PP'; did you mean 'Z_TYPE_P'? [-Wimplicit-function-declaration] Z_TYPE_PP(tmpzval) == IS_LONG && ^~~~~~~~~ Z_TYPE_P oggvorbis.c:132:3: warning: implicit declaration of function 'Z_LVAL_PP'; did you mean 'Z_LVAL_P'? [-Wimplicit-function-declaration] Z_LVAL_PP(tmpzval) >= OGGVORBIS_RATE_MINIMUM && ^~~~~~~~~ Z_LVAL_P oggvorbis.c:138:3: error: too many arguments to function 'php_stream_context_get_option' php_stream_context_get_option(context, "ogg", "bitrate", &tmpzval) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:105:0, from /usr/include/php/main/php.h:405, from oggvorbis.c:23: /usr/include/php/main/streams/php_stream_context.h:62:14: note: declared here PHPAPI zval *php_stream_context_get_option(php_stream_context *context, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ oggvorbis.c:144:8: warning: implicit declaration of function 'Z_DVAL_PP'; did you mean 'Z_DVAL_P'? [-Wimplicit-function-declaration] Z_DVAL_PP(tmpzval) >= OGGVORBIS_VBR_MINIMUM && ^~~~~~~~~ Z_DVAL_P oggvorbis.c:152:3: error: too many arguments to function 'php_stream_context_get_option' php_stream_context_get_option(context, "ogg", "channels", &tmpzval) == SUCCESS && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:105:0, from /usr/include/php/main/php.h:405, from oggvorbis.c:23: /usr/include/php/main/streams/php_stream_context.h:62:14: note: declared here PHPAPI zval *php_stream_context_get_option(php_stream_context *context, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ oggvorbis.c:175:3: error: too many arguments to function 'php_stream_context_get_option' php_stream_context_get_option(context, "ogg", "comments", &tmpzval) == SUCCESS && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:105:0, from /usr/include/php/main/php.h:405, from oggvorbis.c:23: /usr/include/php/main/streams/php_stream_context.h:62:14: note: declared here PHPAPI zval *php_stream_context_get_option(php_stream_context *context, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ oggvorbis.c:183:74: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3 (key_type = zend_hash_get_current_key(HASH_OF(*tmpzval), &key, &idx, 0)) != HASH_KEY_NON_EXISTANT; ^ oggvorbis.c:183:16: error: 'zend_hash_get_current_key' undeclared (first use in this function); did you mean 'zend_hash_get_current_key_ex'? (key_type = zend_hash_get_current_key(HASH_OF(*tmpzval), &key, &idx, 0)) != HASH_KEY_NON_EXISTANT; ^~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_key_ex oggvorbis.c:183:16: note: each undeclared identifier is reported only once for each function it appears in oggvorbis.c:183:80: error: 'HASH_KEY_NON_EXISTANT' undeclared (first use in this function); did you mean 'HASH_KEY_NON_EXISTENT'? (key_type = zend_hash_get_current_key(HASH_OF(*tmpzval), &key, &idx, 0)) != HASH_KEY_NON_EXISTANT; ^~~~~~~~~~~~~~~~~~~~~ HASH_KEY_NON_EXISTENT oggvorbis.c:187:71: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1 if (zend_hash_get_current_data(HASH_OF(*tmpzval), (void **)&cmtval) == SUCCESS) { ^ oggvorbis.c:187:9: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'? if (zend_hash_get_current_data(HASH_OF(*tmpzval), (void **)&cmtval) == SUCCESS) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ zend_hash_get_current_data_ex oggvorbis.c:190:55: warning: implicit declaration of function 'Z_STRVAL_PP'; did you mean 'Z_STRVAL_P'? [-Wimplicit-function-declaration] vorbis_comment_add_tag(&(data->vcomment), key, Z_STRVAL_PP(cmtval)); ^~~~~~~~~~~ Z_STRVAL_P oggvorbis.c:190:55: warning: passing argument 3 of 'vorbis_comment_add_tag' makes pointer from integer without a cast [-Wint-conversion] In file included from oggvorbis.c:31:0: /usr/include/vorbis/codec.h:170:17: note: expected 'const char *' but argument is of type 'int' extern void vorbis_comment_add_tag(vorbis_comment *vc, ^~~~~~~~~~~~~~~~~~~~~~ oggvorbis.c:178:19: warning: unused variable 'idx' [-Wunused-variable] ulong key_type, idx; ^~~ oggvorbis.c:215:3: error: too many arguments to function 'php_stream_context_get_option' php_stream_context_get_option(context, "ogg", "serialno", &tmpzval) == SUCCESS && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:105:0, from /usr/include/php/main/php.h:405, from oggvorbis.c:23: /usr/include/php/main/streams/php_stream_context.h:62:14: note: declared here PHPAPI zval *php_stream_context_get_option(php_stream_context *context, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:405:0, from oggvorbis.c:23: /usr/include/php/main/php_streams.h:311:72: warning: pointer targets in passing argument 2 of '_php_stream_write' differ in signedness [-Wpointer-sign] #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count)) ^ oggvorbis.c:230:3: note: in expansion of macro 'php_stream_write' php_stream_write(data->innerstream, data->page.header, data->page.header_len); ^~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:309:15: note: expected 'const char *' but argument is of type 'unsigned char *' PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count); ^~~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:311:72: warning: pointer targets in passing argument 2 of '_php_stream_write' differ in signedness [-Wpointer-sign] #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count)) ^ oggvorbis.c:231:3: note: in expansion of macro 'php_stream_write' php_stream_write(data->innerstream, data->page.body, data->page.body_len); ^~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:309:15: note: expected 'const char *' but argument is of type 'unsigned char *' PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count); ^~~~~~~~~~~~~~~~~ oggvorbis.c: In function 'php_oggvorbis_write': /usr/include/php/main/php_streams.h:311:72: warning: pointer targets in passing argument 2 of '_php_stream_write' differ in signedness [-Wpointer-sign] #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count)) ^ oggvorbis.c:313:5: note: in expansion of macro 'php_stream_write' php_stream_write(data->innerstream, data->page.header, data->page.header_len); ^~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:309:15: note: expected 'const char *' but argument is of type 'unsigned char *' PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count); ^~~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:311:72: warning: pointer targets in passing argument 2 of '_php_stream_write' differ in signedness [-Wpointer-sign] #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count)) ^ oggvorbis.c:314:5: note: in expansion of macro 'php_stream_write' php_stream_write(data->innerstream, data->page.body, data->page.body_len); ^~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:309:15: note: expected 'const char *' but argument is of type 'unsigned char *' PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count); ^~~~~~~~~~~~~~~~~ oggvorbis.c: In function 'php_oggvorbis_init_readstream': oggvorbis.c:468:2: warning: implicit declaration of function 'ALLOC_INIT_ZVAL' [-Wimplicit-function-declaration] ALLOC_INIT_ZVAL(songdata); ^~~~~~~~~~~~~~~ oggvorbis.c:477:63: error: macro "add_assoc_string" passed 4 arguments, but takes just 3 add_assoc_string(songdata, "vendor", data->vcomment.vendor, 1); ^ oggvorbis.c:477:2: error: 'add_assoc_string' undeclared (first use in this function); did you mean 'add_assoc_string_ex'? add_assoc_string(songdata, "vendor", data->vcomment.vendor, 1); ^~~~~~~~~~~~~~~~ add_assoc_string_ex oggvorbis.c:483:4: error: too many arguments to function 'add_next_index_string' add_next_index_string(commentlist, *(comments++), 1); ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from oggvorbis.c:23: /usr/include/php/Zend/zend_API.h:437:14: note: declared here ZEND_API int add_next_index_string(zval *arg, const char *str); ^~~~~~~~~~~~~~~~~~~~~ oggvorbis.c:487:22: error: incompatible type for argument 1 of 'add_next_index_zval' add_next_index_zval(stream->wrapperdata, songdata); ^~~~~~ In file included from /usr/include/php/main/php.h:39:0, from oggvorbis.c:23: /usr/include/php/Zend/zend_API.h:439:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval {aka struct _zval_struct}' ZEND_API int add_next_index_zval(zval *arg, zval *value); ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:405:0, from oggvorbis.c:23: oggvorbis.c: In function 'php_oggvorbis_close': /usr/include/php/main/php_streams.h:311:72: warning: pointer targets in passing argument 2 of '_php_stream_write' differ in signedness [-Wpointer-sign] #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count)) ^ oggvorbis.c:622:7: note: in expansion of macro 'php_stream_write' php_stream_write(data->innerstream, data->page.header, data->page.header_len); ^~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:309:15: note: expected 'const char *' but argument is of type 'unsigned char *' PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count); ^~~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:311:72: warning: pointer targets in passing argument 2 of '_php_stream_write' differ in signedness [-Wpointer-sign] #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count)) ^ oggvorbis.c:623:7: note: in expansion of macro 'php_stream_write' php_stream_write(data->innerstream, data->page.body, data->page.body_len); ^~~~~~~~~~~~~~~~ /usr/include/php/main/php_streams.h:309:15: note: expected 'const char *' but argument is of type 'unsigned char *' PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count); ^~~~~~~~~~~~~~~~~ oggvorbis.c:638:6: error: used struct type value where scalar is required if (stream->wrapperdata) { ^~~~~~ oggvorbis.c:640:23: error: incompatible types when assigning to type 'zval {aka struct _zval_struct}' from type 'void *' stream->wrapperdata = NULL; ^ oggvorbis.c: In function 'php_stream_oggvorbis_open': oggvorbis.c:709:22: error: incompatible types when assigning to type 'zval {aka struct _zval_struct}' from type 'void *' stream->wrapperdata = NULL; ^ oggvorbis.c:716:3: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration] MAKE_STD_ZVAL(stream->wrapperdata); ^~~~~~~~~~~~~ In file included from /usr/include/php/main/php.h:39:0, from oggvorbis.c:23: /usr/include/php/Zend/zend_API.h:380:39: error: incompatible type for argument 1 of '_array_init' #define array_init(arg) _array_init((arg), 0 ZEND_FILE_LINE_CC) ^ oggvorbis.c:717:3: note: in expansion of macro 'array_init' array_init(stream->wrapperdata); ^~~~~~~~~~ /usr/include/php/Zend/zend_API.h:385:14: note: expected 'zval * {aka struct _zval_struct *}' but argument is of type 'zval {aka struct _zval_struct}' ZEND_API int _array_init(zval *arg, uint32_t size ZEND_FILE_LINE_DC); ^~~~~~~~~~~ oggvorbis.c:727:24: error: incompatible types when assigning to type 'zval {aka struct _zval_struct}' from type 'void *' stream->wrapperdata = NULL; ^ oggvorbis.c:743:3: error: too many arguments to function 'php_stream_context_get_option' php_stream_context_get_option(context, "ogg", "pcm_mode", &tmpzval) == SUCCESS && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_streams.h:105:0, from /usr/include/php/main/php.h:405, from oggvorbis.c:23: /usr/include/php/main/streams/php_stream_context.h:62:14: note: declared here PHPAPI zval *php_stream_context_get_option(php_stream_context *context, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ oggvorbis.c: At top level: oggvorbis.c:769:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] php_stream_oggvorbis_open, ^~~~~~~~~~~~~~~~~~~~~~~~~ oggvorbis.c:769:2: note: (near initialization for 'oggvorbis_stream_wops.stream_opener') error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ubjMaQ (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ubjMaQ (%build) I: [iurt_root_command] ERROR: chroot