php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63634 Failing to install
Submitted: 2012-11-28 10:32 UTC Modified: 2015-03-13 14:58 UTC
Votes:10
Avg. Score:4.3 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:2 (28.6%)
Same OS:4 (57.1%)
From: tkennedy1228 at gmail dot com Assigned: stesie (profile)
Status: Closed Package: v8js (PECL)
PHP Version: 5.4.9 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 25 = ?
Subscribe to this entry?

 
 [2012-11-28 10:32 UTC] tkennedy1228 at gmail dot com
Description:
------------
v8js is failing to install because it cannot find the V8 version.

As you can see below, the critical message is:

"checking for V8 version... NONE"

Actual result:
--------------
sudo pecl install v8js-beta
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
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/v8
building in /var/tmp/pear-build-rootVWL16O/v8js-0.1.3
running: /var/tmp/v8js/configure --with-v8js=/usr/local/v8
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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/modules
checking for PHP installed headers prefix... /usr/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... gawk
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 how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
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 for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) 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
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /var/tmp/pear-build-rootVWL16O/v8js-0.1.3/libtool --mode=compile g++  -I. -I/var/tmp/v8js -DPHP_ATOM_INC -I/var/tmp/pear-build-rootVWL16O/v8js-0.1.3/include -I/var/tmp/pear-build-rootVWL16O/v8js-0.1.3/main -I/var/tmp/v8js -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 -I/usr/local/v8/include  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/v8js/v8js.cc -o v8js.lo
libtool: compile:  g++ -I. -I/var/tmp/v8js -DPHP_ATOM_INC -I/var/tmp/pear-build-rootVWL16O/v8js-0.1.3/include -I/var/tmp/pear-build-rootVWL16O/v8js-0.1.3/main -I/var/tmp/v8js -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 -I/usr/local/v8/include -DHAVE_CONFIG_H -g -O2 -c /var/tmp/v8js/v8js.cc  -fPIC -DPIC -o .libs/v8js.o
/var/tmp/v8js/v8js.cc:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/tmp/v8js/v8js.cc:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/tmp/v8js/v8js.cc:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/tmp/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_ctor(zval**)':
/var/tmp/v8js/v8js.cc:778:4: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/tmp/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_dtor(zval**)':
/var/tmp/v8js/v8js.cc:791:4: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/tmp/v8js/v8js.cc: In function 'int zm_startup_v8js(int, int)':
/var/tmp/v8js/v8js.cc:1143:76: error: 'PHP_V8_VERSION' was not declared in this scope
/var/tmp/v8js/v8js.cc: In function 'void zm_info_v8js(zend_module_entry*)':
/var/tmp/v8js/v8js.cc:1239:63: error: 'PHP_V8_VERSION' was not declared in this scope
make: *** [v8js.lo] Error 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-20 20:13 UTC] stesie at brokenpipe dot de
It's been a while since you've reported this, hence is it still valid?

Meanwhile there is a Jenkins instance, regularly building V8Js extension, maybe see https://jenkins.brokenpipe.de/job/docker-v8js-matrix/

This is, build should work fine under Linux with recent v8 versions.
Recent v8js versions are available from Github: https://github.com/preillyme/v8js/
 [2015-03-13 14:58 UTC] stesie@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: stesie
 [2015-03-13 14:58 UTC] stesie@php.net
Installation of master branch should work with no problems.
I'll follow up with a release shortly.

No feedback here, hence closing now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC