Сибирь. Сабынич. Айти

о природе, личной жизни и информационных технологиях

Установка php5-curl на FreeBSD

Дано:

Сервер с FreeBSD 8.0, php 5.3.2.

Проблема:

При попытке установить из портов любое из расширений (описываю на примере установки php5-curl) возникает что-то типа этого:

===> Building for php5-curl-5.3.2_1
/bin/sh /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/libtool –mode=compile cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c -o interface.lo
/bin/sh /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/libtool –mode=compile cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c -o multi.lo
/bin/sh /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/libtool –mode=compile cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c -o streams.lo
cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c -fPIC -DPIC -o .libs/multi.o
cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c -fPIC -DPIC -o .libs/streams.o
cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c -fPIC -DPIC -o .libs/interface.o
In file included from /usr/include/sys/_types.h:33,
from /usr/include/stdlib.h:42,
from /usr/local/include/php/main/../main/php_config.h:2866,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:51,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
In file included from /usr/include/sys/_types.h:33,
from /usr/include/stdlib.h:42,
from /usr/local/include/php/main/../main/php_config.h:2866,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:51,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
/usr/local/include/php/ext/php_config.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__int_least8_t’
/usr/local/include/php/ext/php_config.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__int_least8_t’
In file included from /usr/include/sys/_types.h:33,
from /usr/include/stdlib.h:42,
from /usr/local/include/php/main/../main/php_config.h:2866,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:51,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
/usr/local/include/php/ext/php_config.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__int_least8_t’
In file included from /usr/local/include/php/main/../main/php_config.h:2870,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:51,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/include/sys/types.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int8_t’
In file included from /usr/local/include/php/main/../main/php_config.h:2870,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:51,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/include/sys/types.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int8_t’
In file included from /usr/local/include/php/main/../main/php_config.h:2870,
from /usr/local/include/php/Zend/zend_config.h:1,
from /usr/local/include/php/Zend/zend.h:51,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/include/sys/types.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int8_t’
In file included from /usr/local/include/php/Zend/zend_alloc.h:27,
from /usr/local/include/php/Zend/zend.h:237,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
In file included from /usr/local/include/php/Zend/zend_alloc.h:27,
from /usr/local/include/php/Zend/zend.h:237,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
In file included from /usr/local/include/php/Zend/zend_alloc.h:27,
from /usr/local/include/php/Zend/zend.h:237,
from /usr/local/include/php/main/php.h:34,
from /usr/ports/ftp/php5-curl/work/php
-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
/usr/local/include/php/ext/php_config.h:62: error: expected specifier-qualifier-list before ‘zend_op_array’
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
/usr/local/include/php/ext/php_config.h:62: error: expected specifier-qualifier-list before ‘zend_op_array’
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
/usr/local/include/php/ext/php_config.h:62: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/ext/php_config.h:282: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/ext/php_config.h:282: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/ext/php_config.h:282: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/ext/php_config.h:313: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/ext/php_config.h:313: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/ext/php_config.h:313: error: expected specifier-qualifier-list before ‘zend_op_array’
In file included from /usr/local/include/php/ext/php_config.h:341,
from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/Zend/zend_globals.h:95: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/Zend/zend_globals.h:193: error: expected specifier-qualifier-list before ‘zend_op_array’
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/Zend/zend_compile.h:349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:350: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:364: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
In file included from /usr/local/include/php/ext/php_config.h:341,
from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/Zend/zend_globals.h:95: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/Zend/zend_globals.h:193: error: expected specifier-qualifier-list before ‘zend_op_array’
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/Zend/zend_compile.h:349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:350: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:364: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:454: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:454: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:548: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:557: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:558: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:559: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:562: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:563: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:580: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:582: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:584: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:585: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:586: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:548: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:557: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:558: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:559: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:562: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:563: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:580: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:582: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:584: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:585: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:586: error: expected ‘)’ before ‘*’ token
In file included from /usr/local/include/php/ext/php_config.h:341,
from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/Zend/zend_globals.h:95: error: expected specifier-qualifier-list before ‘zend_op_array’
/usr/local/include/php/Zend/zend_globals.h:193: error: expected specifier-qualifier-list before ‘zend_op_array’
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/Zend/zend_compile.h:349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:350: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:364: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:454: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:548: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:557: error: expe
cted ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:558: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:559: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:562: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:563: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:580: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:582: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:584: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:585: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_compile.h:586: error: expected ‘)’ before ‘*’ token
In file included from /usr/local/include/php/Zend/zend_API.h:30,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/Zend/zend_execute.h:55: error: expected ‘)’ before ‘*’ token
In file included from /usr/local/include/php/Zend/zend_API.h:30,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/Zend/zend_execute.h:55: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_execute.h:61: error: expected ‘)’ before ‘*’ token
In file included from /usr/local/include/php/Zend/zend_API.h:30,
from /usr/local/include/php/main/php.h:38,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/Zend/zend_execute.h:55: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_execute.h:61: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_execute.h:61: error: expected ‘)’ before ‘*’ token
/usr/local/include/php/Zend/zend_execute.h: In function ‘zend_vm_stack_init’:
/usr/local/include/php/Zend/zend_execute.h:171: error: ‘zend_executor_globals’ has no member named ‘argument_stack’


/usr/local/include/php/Zend/zend_execute.h: In function ‘zend_vm_stack_get_arg’:
/usr/local/include/php/Zend/zend_execute.h:323: error: ‘zend_executor_globals’ has no member named ‘current_execute_data’
/usr/local/include/php/Zend/zend_execute.h:300: error: ‘zend_executor_globals’ has no member named ‘argument_stack’
/usr/local/include/php/Zend/zend_execute.h:302: error: ‘zend_executor_globals’ has no member named ‘argument_stack’
/usr/local/include/php/Zend/zend_execute.h:304: error: ‘zend_executor_globals’ has no member named ‘argument_stack’
/usr/local/include/php/Zend/zend_execute.h:305: error: ‘zend_executor_globals’ has no member named ‘argument_stack’
/usr/local/include/php/Zend/zend_execute.h: In function ‘zend_vm_stack_clear_multiple’:
/usr/local/include/php/Zend/zend_execute.h:310: error: ‘zend_executor_globals’ has no member named ‘argument_stack’
/usr/local/include/php/Zend/zend_execute.h: In function ‘zend_vm_stack_get_arg’:
/usr/local/include/php/Zend/zend_execute.h:323: error: ‘zend_executor_globals’ has no member named ‘current_execute_data’
/usr/local/include/php/Zend/zend_execute.h:310: error: ‘zend_executor_globals’ has no member named ‘argument_stack’
/usr/local/include/php/Zend/zend_execute.h: In function ‘zend_vm_stack_get_arg’:
/usr/local/include/php/Zend/zend_execute.h:323: error: ‘zend_executor_globals’ has no member named ‘current_execute_data’
In file included from /usr/local/include/php/TSRM/tsrm_virtual_cwd.h:33,
from /usr/local/include/php/main/php.h:410,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/ext/php_config.h: At top level:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
In file included from /usr/local/include/php/TSRM/tsrm_virtual_cwd.h:33,
from /usr/local/include/php/main/php.h:410,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/ext/php_config.h: At top level:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
In file included from /usr/local/include/php/TSRM/tsrm_virtual_cwd.h:33,
from /usr/local/include/php/main/php.h:410,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/ext/php_config.h: At top level:
/usr/local/include/php/ext/php_config.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before string constant
In file included from /usr/local/include/php/main/php.h:410,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/multi.c:27:
/usr/local/include/php/TSRM/tsrm_virtual_cwd.h:184: warning: ‘struct utimbuf’ declared inside parameter list
In file included from /usr/local/include/php/main/php.h:410,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:27:
/usr/local/include/php/TSRM/tsrm_virtual_cwd.h:184: warning: ‘struct utimbuf’ declared inside parameter list
In file included from /usr/local/include/php/main/php.h:410,
from /usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/streams.c:30:
/usr/local/include/php/TSRM/tsrm_virtual_cwd.h:184: warning: ‘struct utimbuf’ declared inside parameter list
*** Error code 1
*** Error code 1
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c: In function ‘curl_write’:
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:929: error: ‘zend_executor_globals’ has no member named ‘function_table’
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c: In function ‘curl_progress’:
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:1004: error: ‘zend_executor_globals’ has no member named ‘function_table’
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c: In function ‘curl_read’:
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:1078: error: ‘zend_executor_globals’ has no member named ‘function_table’
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c: In function ‘curl_write_header’:
/usr/ports/ftp/php5-curl/work/php-5.3.2/ext/curl/interface.c:1154: error: ‘zend_executor_globals’ has no member named ‘function_table’
*** Error code 1
3 errors
*** Error code 1

 

 

 

Решение:

  1. Удалить файл /usr/local/include/php/ext/php_config.h
  2. Обновить порты
  3. Пересобрать php5
Установка php5-curl на FreeBSD

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Пролистать наверх
Exit mobile version