@dezinger

Проблемы при установке PHP расширения v8js для FreeBSD и MAC OS X

Пробую ставить на Freebsd 9.1 x32, PHP 5.4.15 (cli).
Ставлю v8 из портов, локейшн по умолчанию.
root@papi:/root # pkg_info v8-3.18.5 -L
Information for v8-3.18.5:

Files:
/usr/local/bin/d8
/usr/local/include/v8.h
/usr/local/include/v8-debug.h
/usr/local/include/v8-preparser.h
/usr/local/include/v8-profiler.h
/usr/local/include/v8-testing.h
/usr/local/include/v8stdint.h
/usr/local/lib/libv8.so
/usr/local/lib/libv8.so.1


Ставлю расширение
root@papi:/root # pecl install v8js-0.1.3


Получаю fail
downloading v8js-0.1.3.tar ...
Starting to download v8js-0.1.3.tar (Unknown size)
..................done: 80,896 bytes
8 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
Please provide the installation prefix of libv8 [autodetect] : /usr/local
building in /tmp/pear/pear-build-root9uQTVr/v8js-0.1.3
running: /tmp/pear/v8js/configure --with-v8js=/usr/local
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... lib
checking if compiler supports -R... yes
checking build system type... i386-unknown-freebsd9.1
checking host system type... i386-unknown-freebsd9.1
checking target system type... i386-unknown-freebsd9.1
checking for PHP prefix... /usr/local
checking for PHP includes... -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
checking for PHP extension directory... /usr/local/lib/php/20100525
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
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 V8 Javascript Engine... yes, shared
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for V8 version... NONE
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 how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 196608
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... freebsd9.1 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 for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd9.1 ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/pear-build-root9uQTVr/v8js-0.1.3/libtool --mode=compile g++  -I. -I/tmp/pear/v8js -DPHP_ATOM_INC -I/tmp/pear/pear-build-root9uQTVr/v8js-0.1.3/include -I/tmp/pear/pear-build-root9uQTVr/v8js-0.1.3/main -I/tmp/pear/v8js -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  -g -O2   -c /tmp/pear/v8js/v8js.cc -o v8js.lo
mkdir .libs
 g++ -I. -I/tmp/pear/v8js -DPHP_ATOM_INC -I/tmp/pear/pear-build-root9uQTVr/v8js-0.1.3/include -I/tmp/pear/pear-build-root9uQTVr/v8js-0.1.3/main -I/tmp/pear/v8js -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 -g -O2 -c /tmp/pear/v8js/v8js.cc  -fPIC -DPIC -o .libs/v8js.o
/tmp/pear/v8js/v8js.cc:100: warning: deprecated conversion from string constant to 'char*'
/tmp/pear/v8js/v8js.cc:100: warning: deprecated conversion from string constant to 'char*'
/tmp/pear/v8js/v8js.cc:100: warning: deprecated conversion from string constant to 'char*'
/tmp/pear/v8js/v8js.cc: In function 'void php_v8js_v8_free_storage(void*, zend_object_handle)':
/tmp/pear/v8js/v8js.cc:386: warning: 'Dispose' is deprecated (declared at /usr/local/include/v8.h:449)
/tmp/pear/v8js/v8js.cc: In function 'void php_v8js_create_v8(zval*, v8::Handle<v8::Value>, int)':
/tmp/pear/v8js/v8js.cc:417: warning: 'New' is deprecated (declared at /usr/local/include/v8.h:441)
/tmp/pear/v8js/v8js.cc: In function 'void php_v8js_free_storage(void*)':
/tmp/pear/v8js/v8js.cc:436: warning: 'Dispose' is deprecated (declared at /usr/local/include/v8.h:4996)
/tmp/pear/v8js/v8js.cc:440: warning: 'Dispose' is deprecated (declared at /usr/local/include/v8.h:4996)
/tmp/pear/v8js/v8js.cc: In function 'void zim_V8Js___construct(int, zval*, zval**, zval*, int)':
/tmp/pear/v8js/v8js.cc:604: warning: 'New' is deprecated (declared at /usr/local/include/v8.h:4932)
/tmp/pear/v8js/v8js.cc:649: warning: 'New' is deprecated (declared at /usr/local/include/v8.h:4932)
/tmp/pear/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_ctor(zval**)':
/tmp/pear/v8js/v8js.cc:778: warning: deprecated conversion from string constant to 'char*'
/tmp/pear/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_dtor(zval**)':
/tmp/pear/v8js/v8js.cc:791: warning: deprecated conversion from string constant to 'char*'
/tmp/pear/v8js/v8js.cc: In function 'int zm_startup_v8js(int, int)':
/tmp/pear/v8js/v8js.cc:1143: error: 'PHP_V8_VERSION' was not declared in this scope
/tmp/pear/v8js/v8js.cc: In function 'void zm_info_v8js(zend_module_entry*)':
/tmp/pear/v8js/v8js.cc:1239: error: 'PHP_V8_VERSION' was not declared in this scope
*** [v8js.lo] Error code 1

Stop in /tmp/pear/pear-build-root9uQTVr/v8js-0.1.3.
ERROR: `make' failed



Пробую ставить на Mac Os X 10.8.3, PHP 5.3.6 (cli).
Через macports ставлю v8
minimac:~ dezinger$ port contents v8
Port v8 contains:
  /opt/local/bin/v8
  /opt/local/include/v8-debug.h
  /opt/local/include/v8-preparser.h
  /opt/local/include/v8-profiler.h
  /opt/local/include/v8-testing.h
  /opt/local/include/v8.h
  /opt/local/include/v8stdint.h
  /opt/local/lib/libv8.dylib
  /opt/local/share/doc/v8/AUTHORS
  /opt/local/share/doc/v8/ChangeLog
  /opt/local/share/doc/v8/LICENSE
  /opt/local/share/doc/v8/LICENSE.strongtalk
  /opt/local/share/doc/v8/LICENSE.v8
  /opt/local/share/doc/v8/LICENSE.valgrind


Ставлю расширени и тот же FAIL
minimac:~ dezinger$ sudo pecl install channel://pecl.php.net/v8js-0.1.3
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading v8js-0.1.3.tgz ...
Starting to download v8js-0.1.3.tgz (17,968 bytes)
......done: 17,968 bytes
8 source files, building
WARNING: php_bin /Applications/MAMP/bin/php/php5.3.6/bin/php appears to have a suffix /php5.3.6/bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
Please provide the installation prefix of libv8 [autodetect] : /opt/local 
building in /private/tmp/pear/temp/pear-build-rootPogLSS/v8js-0.1.3
running: /private/tmp/pear/temp/v8js/configure --with-v8js=/opt/local
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... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin12.3.0
checking host system type... i386-apple-darwin12.3.0
checking target system type... i386-apple-darwin12.3.0
checking for PHP prefix... /Applications/MAMP/bin/php/php5.3.6
checking for PHP includes... -I/Applications/MAMP/bin/php/php5.3.6/include/php -I/Applications/MAMP/bin/php/php5.3.6/include/php/main -I/Applications/MAMP/bin/php/php5.3.6/include/php/TSRM -I/Applications/MAMP/bin/php/php5.3.6/include/php/Zend -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext/date/lib
checking for PHP extension directory... /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /Applications/MAMP/bin/php/php5.3.6/include/php
checking if debug is enabled... no
checking if zts is enabled... no
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... no
checking for awk... awk
checking if awk is broken... no
checking for V8 Javascript Engine... yes, shared
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for V8 version... NONE
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
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 how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common 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) supports shared libraries... yes
checking dynamic linker characteristics... darwin12.3.0 dyld
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 for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin12.3.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-rootPogLSS/v8js-0.1.3/libtool --mode=compile g++  -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootPogLSS/v8js-0.1.3/include -I/private/tmp/pear/temp/pear-build-rootPogLSS/v8js-0.1.3/main -I/private/tmp/pear/temp/v8js -I/Applications/MAMP/bin/php/php5.3.6/include/php -I/Applications/MAMP/bin/php/php5.3.6/include/php/main -I/Applications/MAMP/bin/php/php5.3.6/include/php/TSRM -I/Applications/MAMP/bin/php/php5.3.6/include/php/Zend -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext/date/lib -I/opt/local/include  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/v8js/v8js.cc -o v8js.lo
mkdir .libs
 g++ -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootPogLSS/v8js-0.1.3/include -I/private/tmp/pear/temp/pear-build-rootPogLSS/v8js-0.1.3/main -I/private/tmp/pear/temp/v8js -I/Applications/MAMP/bin/php/php5.3.6/include/php -I/Applications/MAMP/bin/php/php5.3.6/include/php/main -I/Applications/MAMP/bin/php/php5.3.6/include/php/TSRM -I/Applications/MAMP/bin/php/php5.3.6/include/php/Zend -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext/date/lib -I/opt/local/include -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/v8js/v8js.cc  -fno-common -DPIC -o .libs/v8js.o
/private/tmp/pear/temp/v8js/v8js.cc:100: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:100: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:100: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void php_v8js_v8_free_storage(void*, zend_object_handle)’:
/private/tmp/pear/temp/v8js/v8js.cc:386: warning: ‘Dispose’ is deprecated (declared at /opt/local/include/v8.h:404)
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void php_v8js_create_v8(zval*, v8::Handle<v8::Value>, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:417: warning: ‘New’ is deprecated (declared at /opt/local/include/v8.h:396)
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void php_v8js_free_storage(void*)’:
/private/tmp/pear/temp/v8js/v8js.cc:436: warning: ‘Dispose’ is deprecated (declared at /opt/local/include/v8.h:4502)
/private/tmp/pear/temp/v8js/v8js.cc:440: warning: ‘Dispose’ is deprecated (declared at /opt/local/include/v8.h:4502)
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8Js___construct(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:573: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:604: warning: ‘New’ is deprecated (declared at /opt/local/include/v8.h:4438)
/private/tmp/pear/temp/v8js/v8js.cc:649: warning: ‘New’ is deprecated (declared at /opt/local/include/v8.h:4438)
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8Js_executeString(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:675: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8Js_getPendingException(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:756: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void php_v8js_persistent_zval_ctor(zval**)’:
/private/tmp/pear/temp/v8js/v8js.cc:778: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void php_v8js_persistent_zval_dtor(zval**)’:
/private/tmp/pear/temp/v8js/v8js.cc:791: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8Js_registerExtension(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:856: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8Js_getExtensions(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:884: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void php_v8js_create_exception(zval*, v8::TryCatch*)’:
/private/tmp/pear/temp/v8js/v8js.cc:1012: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1016: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1019: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1026: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1030: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8JsException_getJsFileName(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:1068: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1068: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8JsException_getJsLineNumber(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:1073: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1073: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8JsException_getJsSourceLine(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:1078: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1078: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zim_V8JsException_getJsTrace(int, zval*, zval**, zval*, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:1083: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1083: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘int zm_startup_v8js(int, int)’:
/private/tmp/pear/temp/v8js/v8js.cc:1143: error: ‘PHP_V8_VERSION’ was not declared in this scope
/private/tmp/pear/temp/v8js/v8js.cc:1153: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1154: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1155: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc:1156: warning: deprecated conversion from string constant to ‘char*’
/private/tmp/pear/temp/v8js/v8js.cc: In function ‘void zm_info_v8js(zend_module_entry*)’:
/private/tmp/pear/temp/v8js/v8js.cc:1239: error: ‘PHP_V8_VERSION’ was not declared in this scope
/private/tmp/pear/temp/v8js/v8js.cc: At global scope:
/private/tmp/pear/temp/v8js/v8js.cc:1284: warning: deprecated conversion from string constant to ‘char*’
make: *** [v8js.lo] Error 1
ERROR: `make' failed


Расширение упорно не хочет получать версию v8
checking for V8 version... NONE
...
/private/tmp/pear/temp/v8js/v8js.cc:1239: error: ‘PHP_V8_VERSION’ was not declared in this scope


Кто удачно ставил на FreeBSD и какие версии?
  • Вопрос задан
  • 6320 просмотров
Решения вопроса 1
@dezinger Автор вопроса
Удалось поставить на FreeBSD используя следующий хак:

— Ставим v8 пакетом это версия 3.14.5

root@papi:/root # pkg_add -r v8


— Скачиваем pecl расширение v8js-0.1.3. Если уже пробывали ставить значит архив должен быть в /tmp/pear/download/
— Распаковываем архив и в файле config.m4 делаем хак:

if test "$ac_cv_v8_version" != "NONE"; then
    ac_IFS=$IFS
    IFS=.
    set $ac_cv_v8_version
    IFS=$ac_IFS
    V8_API_VERSION=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3`
    AC_DEFINE_UNQUOTED([PHP_V8_API_VERSION], $V8_API_VERSION, [ ])
    AC_DEFINE_UNQUOTED([PHP_V8_VERSION], "$ac_cv_v8_version", [ ])
  fi


ДОБАВЛЯЕМ ТОЛЬКО ЭТУ СТРОЧКУ НИЖЕ

AC_DEFINE_UNQUOTED([PHP_V8_VERSION], "3.14.5", [ ])



  PHP_NEW_EXTENSION(v8js, v8js.cc v8js_convert.cc v8js_methods.cc v8js_variables.cc, $ext_shared)

  PHP_ADD_MAKEFILE_FRAGMENT
fi


— Cохраняем и получаем контрольную сумму этого файла

root@papi:/tmp/v8js/v8js-0.1.3/v8js-0.1.3 # md5 config.m4
MD5 (config.m4) = 479c37a9c135838f4bce007ebf135834


— Исправляем на новую контрольную сумму в файле package.xml

— Запаковываем архив

root@papi:/tmp/v8js/v8js-0.1.3 # tar -cf v8js-0.1.3.tar *


— Собираем расширение из нового архива с хаком

root@papi:/tmp/v8js # pecl install v8js-0.1.3.tar


— Итого

Build process completed successfully
Installing '/usr/local/lib/php/20100525/v8js.so'
install ok: channel://pecl.php.net/v8js-0.1.3
configuration option "php_ini" is not set to php.ini location
You should add "extension=v8js.so" to php.ini
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
@kos_fist
Попробуй через
make search name 'v8js'
cd 'то что получено выше'
make test && make && make install
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы