Страница 1 из 1

FreeBSD Ошибка при установке /usr/ports/lang/php5-extensions

СообщениеДобавлено: 14 янв 2012, 02:06
Pacifik
FreeBSD-8.2-ISPmanager
Сделал
# portsnap fetch extract
# cd /usr/ports/lang/php5
# make rmconfig
# make install clean

# cd /usr/ports/lang/php5-extensions
# make rmconfig
# make config install clean
Дальше вот такая тема
Код: Выделить всё
checking if zts is enabled... yes
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for BZip2 support... yes, shared
checking for BZ2_bzerror in -lbz2... yes
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... (cached) 262144
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... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.2 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
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC...
checking if c++ static flag  works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.2 ld.so
(cached) (cached) checking how to hardcode library paths into programs... unsupported
configure: creating ./config.status
config.status: creating config.h
===>  Building for php5-bz2-5.3.9
/bin/sh /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/libtool --mode=compile cc  -I. -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -DPHP_ATOM_INC -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/include -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/main -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -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  -DHAVE_CONFIG_H  -pipe -fno-strict-aliasing -O0   -c /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/bz2.c -o bz2.lo
mkdir .libs
 cc -I. -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -DPHP_ATOM_INC -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/include -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/main -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -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 -DHAVE_CONFIG_H -pipe -fno-strict-aliasing -O0 -c /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/bz2.c  -fPIC -DPIC -o .libs/bz2.o
/bin/sh /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/libtool --mode=compile cc  -I. -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -DPHP_ATOM_INC -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/include -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/main -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -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  -DHAVE_CONFIG_H  -pipe -fno-strict-aliasing -O0   -c /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/bz2_filter.c -o bz2_filter.lo
 cc -I. -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -DPHP_ATOM_INC -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/include -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/main -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -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 -DHAVE_CONFIG_H -pipe -fno-strict-aliasing -O0 -c /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/bz2_filter.c  -fPIC -DPIC -o .libs/bz2_filter.o
/bin/sh /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/include -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/main -I/usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2 -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  -DHAVE_CONFIG_H  -pipe -fno-strict-aliasing -O0   -o ./bz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/modules  bz2.lo bz2_filter.lo -lbz2
cc -shared  .libs/bz2.o .libs/bz2_filter.o  -lbz2  -Wl,-soname -Wl,bz2.so -o ./.libs/bz2.so
creating ./bz2.la
(cd ./.libs && rm -f bz2.la && ln -s ../bz2.la bz2.la)
/bin/sh /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/libtool --mode=install cp ./bz2.la /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/modules
cp ./.libs/bz2.so /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/modules/bz2.so
cp ./.libs/bz2.lai /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/modules/bz2.la
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/ports/archivers/php5-bz2/work/php-5.3.9/ext/bz2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
===>  Installing for php5-bz2-5.3.9
===>   php5-bz2-5.3.9 depends on file: /usr/local/include/php/main/php.h - found
===>   Generating temporary packing list
===>  Checking if archivers/php5-bz2 already installed
===>   Registering installation for php5-bz2-5.3.9
****************************************************************************

The following line has been added to your /usr/local/etc/php/extensions.ini
configuration file to automatically load the installed extension:

extension=bz2.so

****************************************************************************
===>   Returning to build of php5-extensions-1.6
===>   php5-extensions-1.6 depends on file: /usr/local/lib/php/20090626-debug/ctype.so - not found
===>    Verifying install for /usr/local/lib/php/20090626-debug/ctype.so in /usr/ports/textproc/php5-ctype
===>   Returning to build of php5-extensions-1.6
===>   php5-extensions-1.6 depends on file: /usr/local/lib/php/20090626-debug/dom.so - not found
===>    Verifying install for /usr/local/lib/php/20090626-debug/dom.so in /usr/ports/textproc/php5-dom
===>   Returning to build of php5-extensions-1.6
===>   php5-extensions-1.6 depends on file: /usr/local/lib/php/20090626-debug/filter.so - not found
===>    Verifying install for /usr/local/lib/php/20090626-debug/filter.so in /usr/ports/security/php5-filter
===>  Building for php5-filter-5.3.9
/bin/sh /usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/libtool --mode=compile cc  -I. -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter -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  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c -o logical_filters.lo
 cc -I. -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter -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 -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c  -fPIC -DPIC -o .libs/logical_filters.o
In file included from /usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:25:
/usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:25:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before 'pcre'
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c: In function 'php_filter_validate_regexp':
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:411: error: 'pcre' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:411: error: (Each undeclared identifier is reported only once
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:411: error: for each function it appears in.)
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:411: error: 're' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:412: error: 'pcre_extra' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c: In function 'php_filter_validate_email':
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:527: error: 'pcre' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:527: error: 're' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.9/ext/filter/logical_filters.c:528: error: 'pcre_extra' undeclared (first use in this function)
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/security/php5-filter.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
pacifiker#


Как бороться, я не знаю, помогите. Спасибо!

Re: FreeBSD Ошибка при установке /usr/ports/lang/php5-extens

СообщениеДобавлено: 14 янв 2012, 13:12
Андрей
Pacifik писал(а):Как бороться, я не знаю, помогите. Спасибо!

1. пределиться что нужно ставить из extentions. т.к. там много из того, того, что можно поставить, но это не будет использоваться.
2. Орет на это:
Код: Выделить всё
Stop in /usr/ports/security/php5-filter.
*** Error code 1

Следовательно вопрос - надо ли вам пхп-фильтр? Нет - снимите галочку в конфиге или собирайте без него. нужен - только разбираться, к примеру поставить его руками.
3. Уверены, что надо ставить php5, а не php52? в пакете php5 ставится 5.3, а в 52 - 5.2. Следовательно, если в системе стоит 5.2, а вы ставите extentions для 5.3, то, я думаю, что вы понимаете к чему это ведет? Смотрите pkg_info | grep php что у вас установлено.

Re: FreeBSD Ошибка при установке /usr/ports/lang/php5-extens

СообщениеДобавлено: 14 янв 2012, 18:40
Pacifik
В системе стоит 5.3. Спасибо!

Re: FreeBSD Ошибка при установке /usr/ports/lang/php5-extens

СообщениеДобавлено: 23 окт 2013, 14:30
mr_A3ap41k
Возможно ошибка в пакете php5-filter. Пробовал обновлять порты?

FreeBSD Ошибка при установке /usr/ports/lang/php5 extensions

СообщениеДобавлено: 14 окт 2015, 01:44
BarbraMa
Hi All,

похоже в начале июля что-то сломали в /usr/ports/Mk/ bsd.ports.mk, возможно
после изменений CLEAN-DEPENDS:

# cd /usr/ports/category/name
# make install
# make clean - не удаляет work directory в зависимостях

пока можно использовать:

# make clean-depends