phpv8 / v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
http://pecl.php.net/package/v8js
MIT License
1.84k stars 200 forks source link

Installation issue: make: *** [v8js_class.lo] Error 1 #145

Closed sang4lv closed 9 years ago

sang4lv commented 9 years ago

I am following a post to install v8js, and I got the following output. I have install v8 via Homebrew (v.4.1.0.27), and libv8 gem (libv8-3.16.14.9-x86_64-darwin-14).

    Game-of-Throne:libv8 angelawang$ sudo pecl install v8js-beta
    downloading v8js-0.2.0.tgz ...
    Starting to download v8js-0.2.0.tgz (87,387 bytes)
    ..............done: 87,387 bytes
    28 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] : 
    building in /private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0
    running: /private/tmp/pear/temp/v8js/configure --with-v8js
    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-darwin14.3.0
    checking host system type... i386-apple-darwin14.3.0
    checking target system type... i386-apple-darwin14.3.0
    checking for PHP prefix... /usr/local/Cellar/php54/5.4.37
    checking for PHP includes... -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib
    checking for PHP extension directory... /usr/local/Cellar/php54/5.4.37/lib/php/extensions/no-debug-non-zts-20100525
    checking for PHP installed headers prefix... /usr/local/Cellar/php54/5.4.37/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 V8 files in default path... found in /usr/local
    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 C standard version... c++11
    checking for V8 version... 4.1.0.27
    checking for debuggersupport in v8... no
    checking for libv8_libplatform.a... found in /usr/local
    checking for libv8_libbase.a... found in /usr/local
    checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
    checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
    checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin14.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++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
    checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
    checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin14.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-rootfWb6I7/v8js-0.2.0/libtool --mode=compile g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/v8js/v8js_array_access.cc -o v8js_array_access.lo
    mkdir .libs
     g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/v8js/v8js_array_access.cc  -fno-common -DPIC -o .libs/v8js_array_access.o
    In file included from /private/tmp/pear/temp/v8js/v8js_array_access.cc:18:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:271:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:263:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register ulong hash = 5381;
            ^~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:350:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:357:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:364:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:371:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:377:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key_ex(ht, HASH_KEY_IS_LONG, NULL, 0, idx, mode, pos));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    In file included from /private/tmp/pear/temp/v8js/v8js_array_access.cc:18:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:830:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_operators.h:285:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register const unsigned char *e;
            ^~~~~~~~~
    7 warnings generated.
    /bin/sh /private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/libtool --mode=compile g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/v8js/v8js.cc -o v8js.lo
     g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/v8js/v8js.cc  -fno-common -DPIC -o .libs/v8js.o
    In file included from /private/tmp/pear/temp/v8js/v8js.cc:19:
    In file included from /private/tmp/pear/temp/v8js/php_v8js_macros.h:22:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:271:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:263:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register ulong hash = 5381;
            ^~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:350:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:357:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:364:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:371:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:377:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key_ex(ht, HASH_KEY_IS_LONG, NULL, 0, idx, mode, pos));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    In file included from /private/tmp/pear/temp/v8js/v8js.cc:19:
    In file included from /private/tmp/pear/temp/v8js/php_v8js_macros.h:22:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:830:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_operators.h:285:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register const unsigned char *e;
            ^~~~~~~~~
    /private/tmp/pear/temp/v8js/v8js.cc:87:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.flags", NULL, ZEND_INI_ALL, v8js_OnUpdateV8Flags)
                           ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:20: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                              ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:21: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                               ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:19: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                             ^
    /private/tmp/pear/temp/v8js/v8js.cc:88:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_date", "0", ZEND_INI_ALL, v8js_OnUpdateUseDate)
                           ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:20: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                              ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:21: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                               ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:19: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                             ^
    /private/tmp/pear/temp/v8js/v8js.cc:88:34: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_date", "0", ZEND_INI_ALL, v8js_OnUpdateUseDate)
                                            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:26: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                                    ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:27: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                                     ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:68: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                                                                              ^
    /private/tmp/pear/temp/v8js/v8js.cc:89:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_array_access", "0", ZEND_INI_ALL, v8js_OnUpdateUseArrayAccess)
                           ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:20: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                              ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:21: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                               ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:19: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                             ^
    /private/tmp/pear/temp/v8js/v8js.cc:89:42: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_array_access", "0", ZEND_INI_ALL, v8js_OnUpdateUseArrayAccess)
                                                    ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:26: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                                    ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:27: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                                     ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:68: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                                                                              ^
    12 warnings generated.
    /bin/sh /private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/libtool --mode=compile g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/v8js/v8js_class.cc -o v8js_class.lo
     g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-rootfWb6I7/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/v8js/v8js_class.cc  -fno-common -DPIC -o .libs/v8js_class.o
    In file included from /private/tmp/pear/temp/v8js/v8js_class.cc:19:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:271:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:263:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register ulong hash = 5381;
            ^~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:350:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:357:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:364:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:371:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:377:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key_ex(ht, HASH_KEY_IS_LONG, NULL, 0, idx, mode, pos));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    In file included from /private/tmp/pear/temp/v8js/v8js_class.cc:19:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:830:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_operators.h:285:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register const unsigned char *e;
            ^~~~~~~~~
    /private/tmp/pear/temp/v8js/v8js_class.cc:435:3: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                    "You cannot serialize or unserialize V8Js instances", 0 TSRMLS_CC);
                    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:445:3: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                    "You cannot serialize or unserialize V8Js instances", 0 TSRMLS_CC);
                    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:729:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                            zend_bailout();
                            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:605:39: note: expanded from macro 'zend_bailout'
    #define zend_bailout()          _zend_bailout(__FILE__, __LINE__)
                                                  ^
    <scratch space>:75:1: note: expanded from here
    "/private/tmp/pear/temp/v8js/v8js_class.cc"
    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:742:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                            zend_bailout();
                            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:605:39: note: expanded from macro 'zend_bailout'
    #define zend_bailout()          _zend_bailout(__FILE__, __LINE__)
                                                  ^
    <scratch space>:76:1: note: expanded from here
    "/private/tmp/pear/temp/v8js/v8js_class.cc"
    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:891:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_sleep, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:891:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_sleep, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:894:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_wakeup, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:894:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_wakeup, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:932:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:932:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:935:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_clearpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:935:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_clearpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:949:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getextensions, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:949:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getextensions, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    11 warnings and 5 errors generated.
    make: *** [v8js_class.lo] Error 1
    ERROR: `make' failed
    Game-of-Throne:libv8 angelawang$ sudo pecl install v8js
    Failed to download pecl/v8js within preferred state "stable", latest release is version 0.2.0, stability "beta", use "channel://pecl.php.net/v8js-0.2.0" to install
    install failed
    Game-of-Throne:libv8 angelawang$ sudo pecl install v8js-0.2.0
    downloading v8js-0.2.0.tgz ...
    Starting to download v8js-0.2.0.tgz (87,387 bytes)
    .....................done: 87,387 bytes
    28 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] : 
    building in /private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0
    running: /private/tmp/pear/temp/v8js/configure --with-v8js
    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-darwin14.3.0
    checking host system type... i386-apple-darwin14.3.0
    checking target system type... i386-apple-darwin14.3.0
    checking for PHP prefix... /usr/local/Cellar/php54/5.4.37
    checking for PHP includes... -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib
    checking for PHP extension directory... /usr/local/Cellar/php54/5.4.37/lib/php/extensions/no-debug-non-zts-20100525
    checking for PHP installed headers prefix... /usr/local/Cellar/php54/5.4.37/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 V8 files in default path... found in /usr/local
    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 C standard version... c++11
    checking for V8 version... 4.1.0.27
    checking for debuggersupport in v8... no
    checking for libv8_libplatform.a... found in /usr/local
    checking for libv8_libbase.a... found in /usr/local
    checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
    checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
    checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin14.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++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
    checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
    checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin14.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-root0pUyol/v8js-0.2.0/libtool --mode=compile g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/v8js/v8js_array_access.cc -o v8js_array_access.lo
    mkdir .libs
     g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/v8js/v8js_array_access.cc  -fno-common -DPIC -o .libs/v8js_array_access.o
    In file included from /private/tmp/pear/temp/v8js/v8js_array_access.cc:18:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:271:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:263:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register ulong hash = 5381;
            ^~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:350:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:357:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:364:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:371:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:377:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key_ex(ht, HASH_KEY_IS_LONG, NULL, 0, idx, mode, pos));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    In file included from /private/tmp/pear/temp/v8js/v8js_array_access.cc:18:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:830:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_operators.h:285:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register const unsigned char *e;
            ^~~~~~~~~
    7 warnings generated.
    /bin/sh /private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/libtool --mode=compile g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/v8js/v8js.cc -o v8js.lo
     g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/v8js/v8js.cc  -fno-common -DPIC -o .libs/v8js.o
    In file included from /private/tmp/pear/temp/v8js/v8js.cc:19:
    In file included from /private/tmp/pear/temp/v8js/php_v8js_macros.h:22:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:271:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:263:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register ulong hash = 5381;
            ^~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:350:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:357:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:364:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:371:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:377:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key_ex(ht, HASH_KEY_IS_LONG, NULL, 0, idx, mode, pos));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    In file included from /private/tmp/pear/temp/v8js/v8js.cc:19:
    In file included from /private/tmp/pear/temp/v8js/php_v8js_macros.h:22:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:830:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_operators.h:285:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register const unsigned char *e;
            ^~~~~~~~~
    /private/tmp/pear/temp/v8js/v8js.cc:87:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.flags", NULL, ZEND_INI_ALL, v8js_OnUpdateV8Flags)
                           ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:20: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                              ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:21: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                               ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:19: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                             ^
    /private/tmp/pear/temp/v8js/v8js.cc:88:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_date", "0", ZEND_INI_ALL, v8js_OnUpdateUseDate)
                           ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:20: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                              ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:21: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                               ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:19: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                             ^
    /private/tmp/pear/temp/v8js/v8js.cc:88:34: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_date", "0", ZEND_INI_ALL, v8js_OnUpdateUseDate)
                                            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:26: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                                    ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:27: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                                     ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:68: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                                                                              ^
    /private/tmp/pear/temp/v8js/v8js.cc:89:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_array_access", "0", ZEND_INI_ALL, v8js_OnUpdateUseArrayAccess)
                           ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:20: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                              ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:21: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                               ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:19: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                             ^
    /private/tmp/pear/temp/v8js/v8js.cc:89:42: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            ZEND_INI_ENTRY("v8js.use_array_access", "0", ZEND_INI_ALL, v8js_OnUpdateUseArrayAccess)
                                                    ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:139:26: note: expanded from macro 'ZEND_INI_ENTRY'
            ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
                                    ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:136:27: note: expanded from macro 'ZEND_INI_ENTRY_EX'
            ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
                                     ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_ini.h:118:68: note: expanded from macro 'ZEND_INI_ENTRY3_EX'
            { 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, 0, displayer },
                                                                              ^
    12 warnings generated.
    /bin/sh /private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/libtool --mode=compile g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/v8js/v8js_class.cc -o v8js_class.lo
     g++ -std=c++11 -I. -I/private/tmp/pear/temp/v8js -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/include -I/private/tmp/pear/temp/pear-build-root0pUyol/v8js-0.2.0/main -I/private/tmp/pear/temp/v8js -I/usr/local/Cellar/php54/5.4.37/include/php -I/usr/local/Cellar/php54/5.4.37/include/php/main -I/usr/local/Cellar/php54/5.4.37/include/php/TSRM -I/usr/local/Cellar/php54/5.4.37/include/php/Zend -I/usr/local/Cellar/php54/5.4.37/include/php/ext -I/usr/local/Cellar/php54/5.4.37/include/php/ext/date/lib -I/usr/local/include -I/usr/local -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/v8js/v8js_class.cc  -fno-common -DPIC -o .libs/v8js_class.o
    In file included from /private/tmp/pear/temp/v8js/v8js_class.cc:19:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:271:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:263:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register ulong hash = 5381;
            ^~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:350:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:357:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:364:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:371:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:377:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key_ex(ht, HASH_KEY_IS_LONG, NULL, 0, idx, mode, pos));
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:345:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC'
            ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func);                                  \
            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_hash.h:308:2: note: expanded from macro 'ZEND_HANDLE_NUMERIC_EX'
            register const char *tmp = key;                                                                                 \
            ^
    In file included from /private/tmp/pear/temp/v8js/v8js_class.cc:19:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/main/php.h:34:
    In file included from /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:830:
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_operators.h:285:2: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
            register const unsigned char *e;
            ^~~~~~~~~
    /private/tmp/pear/temp/v8js/v8js_class.cc:435:3: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                    "You cannot serialize or unserialize V8Js instances", 0 TSRMLS_CC);
                    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:445:3: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                    "You cannot serialize or unserialize V8Js instances", 0 TSRMLS_CC);
                    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:729:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                            zend_bailout();
                            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:605:39: note: expanded from macro 'zend_bailout'
    #define zend_bailout()          _zend_bailout(__FILE__, __LINE__)
                                                  ^
    <scratch space>:75:1: note: expanded from here
    "/private/tmp/pear/temp/v8js/v8js_class.cc"
    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:742:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                            zend_bailout();
                            ^
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend.h:605:39: note: expanded from macro 'zend_bailout'
    #define zend_bailout()          _zend_bailout(__FILE__, __LINE__)
                                                  ^
    <scratch space>:76:1: note: expanded from here
    "/private/tmp/pear/temp/v8js/v8js_class.cc"
    ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:891:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_sleep, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:891:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_sleep, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:894:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_wakeup, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:894:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_wakeup, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:932:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:932:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:935:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_clearpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:935:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_clearpendingexception, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:949:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getextensions, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    /private/tmp/pear/temp/v8js/v8js_class.cc:949:1: note: insert an explicit cast to silence this issue
    ZEND_BEGIN_ARG_INFO(arginfo_v8js_getextensions, 0)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:110:74: note: expanded from macro 'ZEND_BEGIN_ARG_INFO'
            ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
                                                                                    ^~
    /usr/local/Cellar/php54/5.4.37/include/php/Zend/zend_API.h:108:20: note: expanded from macro 'ZEND_BEGIN_ARG_INFO_EX'
                    { NULL, 0, NULL, required_num_args, 0, return_reference, pass_rest_by_reference},
                                     ^
    11 warnings and 5 errors generated.
    make: *** [v8js_class.lo] Error 1
    ERROR: `make' failed
stesie commented 9 years ago
    /private/tmp/pear/temp/v8js/v8js_class.cc:949:1: error: constant expression evaluates to -1 which cannot be narrowed to type 'zend_uint' (aka 'unsigned int') [-Wc++11-narrowing]

... these are actually caused by PHP internal macros, which cast -1 to unsigned integer. This is of course problematic, but needs to be fixed by PHP folks somewhen. gcc accepts that, but clang doesn't. However you can pass CXXFLAGS="-Wno-c++11-narrowing" to configure to make clang accept that as well. The unfortunate thing is that you have to install manually (i.e. not use pecl then)

See https://medium.com/@mouneyrac/installing-v8js-on-yosemite-65cedc6b728d how to do that.

stesie commented 9 years ago

Changed config.m4 so it auto-adds -Wno-c++11-narrowing if supported by the compiler.