D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/php-htscanner-1.0.1-10.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.aDFZkv + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf htscanner-1.0.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/htscanner-1.0.1.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd htscanner-1.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + '[' '../package*.xml' '!=' / ']' + mv ../package.xml . + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.9VroRV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd htscanner-1.0.1 + '[' 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' + phpize Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 Forcing run-time library search path definition in configure to prevent libtool from adding rpath for standard directories (configure was generated with libtool without support for autodetection) + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libdir=lib64 --with-htscanner=shared,/usr configure: WARNING: unrecognized options: --with-htscanner checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib64 checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -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 checking for PHP extension directory... /usr/lib64/php/extensions checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 1.0.2 (ok) checking for gawk... gawk checking whether to enable htscanner support... yes, shared checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h configure: WARNING: unrecognized options: --with-htscanner + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 /bin/sh /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/libtool --mode=compile cc -I. -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/include -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/main -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1 -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 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c -o htscanner.lo mkdir .libs cc -I. -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1 -DPHP_ATOM_INC -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/include -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/main -I/home/pterjan/rpmbuild/BUILD/htscanner-1.0.1 -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 -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c -fPIC -DPIC -o .libs/htscanner.o /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c: In function 'value_hnd': /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:151:27: warning: passing argument 1 of 'zend_alter_ini_entry' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_alter_ini_entry(name, name_len + 1, value, value_len, mode, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:151:33: warning: passing argument 2 of 'zend_alter_ini_entry' makes pointer from integer without a cast [-Wint-conversion] if (zend_alter_ini_entry(name, name_len + 1, value, value_len, mode, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~~~~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'size_t {aka long unsigned int}' ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:151:47: warning: passing argument 3 of 'zend_alter_ini_entry' makes integer from pointer without a cast [-Wint-conversion] if (zend_alter_ini_entry(name, name_len + 1, value, value_len, mode, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: expected 'int' but argument is of type 'char *' ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:151:6: error: too many arguments to function 'zend_alter_ini_entry' if (zend_alter_ini_entry(name, name_len + 1, value, value_len, mode, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: declared here ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:161:79: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update(ini_entries, name, name_len + 1, value, value_len + 1, NULL); ^ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:161:3: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update(ini_entries, name, name_len + 1, value, value_len + 1, NULL); ^~~~~~~~~~~~~~~~ _zend_hash_update /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:161:3: note: each undeclared identifier is reported only once for each function it appears in In file included from /usr/include/php/main/php.h:405:0, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c: In function 'parse_config_file': /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:189:60: error: 'ENFORCE_SAFE_MODE' undeclared (first use in this function) stream = php_stream_open_wrapper(file, "rb", IGNORE_URL | ENFORCE_SAFE_MODE, NULL); ^ /usr/include/php/main/php_streams.h:568:107: note: in definition of macro 'php_stream_open_wrapper' #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC) ^~~~~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c: At top level: /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:267:68: error: 'OnUpdateInt' undeclared here (not in a function); did you mean 'OnUpdateLong'? STD_PHP_INI_ENTRY("htscanner.default_ttl", "300", PHP_INI_SYSTEM, OnUpdateInt, default_ttl, zend_htscanner_globals, htscanner_globals) ^ /usr/include/php/Zend/zend_ini.h:100:10: note: in definition of macro 'ZEND_INI_ENTRY3_EX' { name, on_modify, arg1, arg2, arg3, default_value, displayer, modifiable, sizeof(name)-1, sizeof(default_value)-1 }, ^~~~~~~~~ /usr/include/php/Zend/zend_ini.h:109:2: note: in expansion of macro 'ZEND_INI_ENTRY2_EX' ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL) ^~~~~~~~~~~~~~~~~~ /usr/include/php/Zend/zend_ini.h:132:2: note: in expansion of macro 'ZEND_INI_ENTRY2' ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr) ^~~~~~~~~~~~~~~ /usr/include/php/main/php_ini.h:68:28: note: in expansion of macro 'STD_ZEND_INI_ENTRY' #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY ^~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:267:2: note: in expansion of macro 'STD_PHP_INI_ENTRY' STD_PHP_INI_ENTRY("htscanner.default_ttl", "300", PHP_INI_SYSTEM, OnUpdateInt, default_ttl, zend_htscanner_globals, htscanner_globals) ^~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c: In function 'htscanner_main': /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:350:40: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(ini_entries_cache, cwd, cwd_len, (void**)&entry_fetched) == SUCCESS) { ^~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:161:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:350:6: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(ini_entries_cache, cwd, cwd_len, (void**)&entry_fetched) == SUCCESS) { ^~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:161:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:360:80: warning: passing argument 2 of 'zend_hash_get_current_data_ex' from incompatible pointer type [-Wincompatible-pointer-types] while (SUCCESS == zend_hash_get_current_data_ex(entry_fetched->ini_entries, (void**)&value, &pos)) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:198:30: note: expected 'HashPosition * {aka unsigned int *}' but argument is of type 'void **' ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:360:22: error: too many arguments to function 'zend_hash_get_current_data_ex' while (SUCCESS == zend_hash_get_current_data_ex(entry_fetched->ini_entries, (void**)&value, &pos)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:198:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:361:62: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_get_current_key_ex(entry_fetched->ini_entries, &name, &len, &num, 0, &pos); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:195:30: note: expected 'zend_string ** {aka struct _zend_string **}' but argument is of type 'char **' ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:361:69: warning: passing argument 3 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_get_current_key_ex(entry_fetched->ini_entries, &name, &len, &num, 0, &pos); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:195:30: note: expected 'zend_ulong * {aka long unsigned int *}' but argument is of type 'uint * {aka unsigned int *}' ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:361:75: warning: passing argument 4 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types] zend_hash_get_current_key_ex(entry_fetched->ini_entries, &name, &len, &num, 0, &pos); ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:195:30: note: expected 'HashPosition * {aka unsigned int *}' but argument is of type 'ulong * {aka long unsigned int *}' ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:361:5: error: too many arguments to function 'zend_hash_get_current_key_ex' zend_hash_get_current_key_ex(entry_fetched->ini_entries, &name, &len, &num, 0, &pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_hash.h:195:30: note: declared here ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:366:30: warning: passing argument 1 of 'zend_alter_ini_entry' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_alter_ini_entry(name, len, value, strlen(value), PHP_INI_PERDIR, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:366:36: warning: passing argument 2 of 'zend_alter_ini_entry' makes pointer from integer without a cast [-Wint-conversion] if (zend_alter_ini_entry(name, len, value, strlen(value), PHP_INI_PERDIR, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'uint {aka unsigned int}' ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:366:41: warning: passing argument 3 of 'zend_alter_ini_entry' makes integer from pointer without a cast [-Wint-conversion] if (zend_alter_ini_entry(name, len, value, strlen(value), PHP_INI_PERDIR, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: expected 'int' but argument is of type 'char *' ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:366:9: error: too many arguments to function 'zend_alter_ini_entry' if (zend_alter_ini_entry(name, len, value, strlen(value), PHP_INI_PERDIR, PHP_INI_STAGE_HTACCESS) == FAILURE) { ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/php/main/php_ini.h:24:0, from /usr/include/php/main/fopen_wrappers.h:26, from /usr/include/php/main/php.h:407, from /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:26: /usr/include/php/Zend/zend_ini.h:77:14: note: declared here ZEND_API int zend_alter_ini_entry(zend_string *name, zend_string *new_value, int modify_type, int stage); ^~~~~~~~~~~~~~~~~~~~ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:409:96: error: macro "zend_hash_update" passed 6 arguments, but takes just 3 zend_hash_update(ini_entries_cache, cwd, cwd_len, &entry, sizeof(htscanner_cache_entry), NULL); ^ /home/pterjan/rpmbuild/BUILD/htscanner-1.0.1/htscanner.c:409:3: error: 'zend_hash_update' undeclared (first use in this function); did you mean '_zend_hash_update'? zend_hash_update(ini_entries_cache, cwd, cwd_len, &entry, sizeof(htscanner_cache_entry), NULL); ^~~~~~~~~~~~~~~~ _zend_hash_update make: *** [Makefile:197: htscanner.lo] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9VroRV (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9VroRV (%build) I: [iurt_root_command] ERROR: chroot