Нужна помощь в сборке модуля fileinfo для php5

390
18 июня 2017, 18:14

Добрый день. Пытаюсь собрать модуль для php fileinfo. При сборке идет ошибка. Помогите плиз в чем может быть проблема.Сборку делаю под старую ОС Suse Linux Enterprise Server 11 SP1 и в opensuse build service.

[97s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:neodiz/SUSE_SLE-11_SP1_standard/2823bb446cf699d84b52e9bb4f415cb1-php5-fileinfo' /usr/src/packages/SOURCES/php5-fileinfo.spec
[   97s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.14568
[   97s] + umask 022
[   97s] + cd /usr/src/packages/BUILD
[   97s] + cd /usr/src/packages/BUILD
[   97s] + rm -rf php5-fileinfo-1.0.4
[   97s] + /bin/mkdir -p php5-fileinfo-1.0.4
[   97s] + cd php5-fileinfo-1.0.4
[   97s] + tar -xf -
[   97s] + /usr/bin/gzip -dc /usr/src/packages/SOURCES/Fileinfo-1.0.4.tgz
[   97s] tar: A lone zero block at 47
[   97s] + STATUS=0
[   97s] + '[' 0 -ne 0 ']'
[   97s] ++ /usr/bin/id -u
[   97s] + '[' 399 = 0 ']'
[   97s] ++ /usr/bin/id -u
[   97s] + '[' 399 = 0 ']'
[   97s] + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
[   97s] + cd Fileinfo-1.0.4
[   97s] + exit 0
[   97s] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.14568
[   97s] + umask 022
[   97s] + cd /usr/src/packages/BUILD
[   97s] + /bin/rm -rf /var/tmp/php5-fileinfo-1.0.4-8.1-root-abuild
[   97s] ++ dirname /var/tmp/php5-fileinfo-1.0.4-8.1-root-abuild
[   97s] + /bin/mkdir -p /var/tmp
[   97s] + /bin/mkdir /var/tmp/php5-fileinfo-1.0.4-8.1-root-abuild
[   97s] + cd php5-fileinfo-1.0.4
[   97s] + cd Fileinfo-1.0.4
[   97s] + phpize
[   97s] Configuring for:
[   97s] PHP Api Version:         20121113
[   97s] Zend Module Api No:      20121212
[   97s] Zend Extension Api No:   220121212
[   98s] + CFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
[   98s] + export CFLAGS
[   98s] + CXXFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
[   98s] + export CXXFLAGS
[   98s] + FFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
[   98s] + export FFLAGS
[   98s] + ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --target=x86_64-suse-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib64 --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-php-config=/usr/bin/php-config
[   98s] checking for grep that handles long lines and -e... /usr/bin/grep
[   98s] checking for egrep... /usr/bin/grep -E
[   98s] checking for a sed that does not truncate output... /usr/bin/sed
[   98s] checking for x86_64-suse-linux-gnu-cc... no
[   98s] checking for x86_64-suse-linux-gnu-gcc... no
[   98s] checking for cc... cc
[   98s] checking for C compiler default output file name... a.out
[   99s] checking whether the C compiler works... yes
[   99s] checking whether we are cross compiling... no
[   99s] checking for suffix of executables... 
[   99s] checking for suffix of object files... o
[   99s] checking whether we are using the GNU C compiler... yes
[   99s] checking whether cc accepts -g... yes
[   99s] checking for cc option to accept ISO C89... none needed
[   99s] checking how to run the C preprocessor... cc -E
[   99s] checking for icc... no
[   99s] checking for suncc... no
[   99s] checking whether cc understands -c and -o together... yes
[   99s] checking for system library directory... lib
[   99s] checking if compiler supports -R... no
[   99s] checking if compiler supports -Wl,-rpath,... yes
[   99s] checking build system type... x86_64-suse-linux-gnu
[   99s] checking host system type... x86_64-suse-linux-gnu
[   99s] checking target system type... x86_64-suse-linux-gnu
[   99s] checking for PHP prefix... /usr
[   99s] checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
[   99s] checking for PHP extension directory... /usr/lib64/php5/extensions
[   99s] checking for PHP installed headers prefix... /usr/include/php5
[   99s] checking if debug is enabled... no
[   99s] checking if zts is enabled... no
[   99s] checking for re2c... no
[   99s] configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
[   99s] checking for gawk... gawk
[   99s] checking for fileinfo support... yes, shared
[   99s] checking for magic files in default path... found in /usr
[   99s] checking for dl... no
[   99s] checking for __dl... no
[   99s] checking for dl in -ldlopen... no
[   99s] checking for __dl in -ldlopen... no
[   99s] checking for gzgets... no
[   99s] checking for __gzgets... no
[   99s] checking for gzgets in -lz... yes
[  100s] checking for round... no
[  100s] checking for __round... no
[  100s] checking for round in -lm... yes
[  100s] checking for magic_open in -lmagic... yes
[  100s] checking for a sed that does not truncate output... (cached) /usr/bin/sed
[  100s] checking for fgrep... /usr/bin/grep -F
[  100s] checking for ld used by cc... /usr/x86_64-suse-linux/bin/ld
[  100s] checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
[  100s] checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
[  100s] checking the name lister (/usr/bin/nm -B) interface... BSD nm
[  100s] checking whether ln -s works... yes
[  100s] checking the maximum length of command line arguments... 1572864
[  100s] checking whether the shell understands some XSI constructs... yes
[  100s] checking whether the shell understands "+="... yes
[  100s] checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
[  100s] checking for x86_64-suse-linux-gnu-objdump... no
[  100s] checking for objdump... objdump
[  100s] checking how to recognize dependent libraries... pass_all
[  100s] checking for x86_64-suse-linux-gnu-ar... no
[  100s] checking for ar... ar
[  100s] checking for x86_64-suse-linux-gnu-strip... no
[  100s] checking for strip... strip
[  100s] checking for x86_64-suse-linux-gnu-ranlib... no
[  100s] checking for ranlib... ranlib
[  100s] checking command to parse /usr/bin/nm -B output from cc object... ok
[  100s] checking for ANSI C header files... yes
[  100s] checking for sys/types.h... yes
[  100s] checking for sys/stat.h... yes
[  100s] checking for stdlib.h... yes
[  100s] checking for string.h... yes
[  100s] checking for memory.h... yes
[  100s] checking for strings.h... yes
[  100s] checking for inttypes.h... yes
[  100s] checking for stdint.h... yes
[  101s] checking for unistd.h... yes
[  101s] checking for dlfcn.h... yes
[  101s] checking for objdir... .libs
[  101s] checking if cc supports -fno-rtti -fno-exceptions... no
[  101s] checking for cc option to produce PIC... -fPIC -DPIC
[  101s] checking if cc PIC flag -fPIC -DPIC works... yes
[  101s] checking if cc static flag -static works... yes
[  101s] checking if cc supports -c -o file.o... yes
[  101s] checking if cc supports -c -o file.o... (cached) yes
[  101s] checking whether the cc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
[  101s] checking whether -lc should be explicitly linked in... no
[  101s] checking dynamic linker characteristics... GNU/Linux ld.so
[  101s] checking how to hardcode library paths into programs... immediate
[  101s] checking whether stripping libraries is possible... yes
[  101s] checking if libtool supports shared libraries... yes
[  101s] checking whether to build shared libraries... yes
[  101s] checking whether to build static libraries... no
[  101s] configure: creating ./config.status
[  102s] config.status: creating config.h
[  102s] config.status: executing libtool commands
[  102s] + /usr/bin/make -j4
[  102s] /bin/sh /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/libtool --mode=compile cc  -I. -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4 -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/include -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/main -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables   -c /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c -o fileinfo.lo 
[  102s] libtool: compile:  cc -I. -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4 -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/include -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/main -I/usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -c /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c  -fPIC -DPIC -o .libs/fileinfo.o
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:123: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'finfo_class_functions'
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:171: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fileinfo_functions'
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c: In function 'zm_startup_finfo':
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:187: error: 'finfo_class_functions' undeclared (first use in this function)
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:187: error: (Each undeclared identifier is reported only once
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:187: error: for each function it appears in.)
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c: At top level:
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:221: error: 'fileinfo_functions' undeclared here (not in a function)
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c: In function 'zif_finfo_open':
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:269: error: 'struct _php_core_globals' has no member named 'safe_mode'
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:269: warning: implicit declaration of function 'php_checkuid'
[  102s] /usr/src/packages/BUILD/php5-fileinfo-1.0.4/Fileinfo-1.0.4/fileinfo.c:269: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
[  102s] make: *** [fileinfo.lo] Error 1
[  102s] error: Bad exit status from /var/tmp/rpm-tmp.14568 (%build)
[  102s] 
[  102s] 
[  102s] RPM build errors:
[  102s]     Bad exit status from /var/tmp/rpm-tmp.14568 (%build)
[  102s] 
[  102s] cloud101 failed "build php5-fileinfo.spec" at Fri Jun 16 14:03:11 UTC 2017.
[  102s] 
[  102s] ### VM INTERACTION START ###
[  106s] [   82.430595] reboot: Power down
[  115s] ### VM INTERACTION END ###
[  115s] 
[  115s] cloud101 failed "build php5-fileinfo.spec" at Fri Jun 16 14:03:24 UTC 2017.
READ ALSO
Запуск телеграмм бота по крону

Запуск телеграмм бота по крону

Здраствуйте, мой бот срабатывает когда на него стучится webhook телеграмма и запускается следующим кодом

378
ratchet failed: Error in connection establishment

ratchet failed: Error in connection establishment

Добрый день! Сделал сайт на PHP с использованием websocket, а именно ratchet (server: php, client: js), локально все работает хорошо, но как переношу на хостинг...

292