v8js icon indicating copy to clipboard operation
v8js copied to clipboard

Issue running make in ubuntu 22.04

Open corey-rosamond opened this issue 2 years ago • 2 comments

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy

php -v PHP 8.1.20 (cli) (built: Jun 8 2023 15:26:07) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.20, Copyright (c) Zend Technologies with Zend OPcache v8.1.20, Copyright (c), by Zend Technologies

Directions followed are https://github.com/phpv8/v8js/blob/php8/README.Linux.md

used tools/dev/v8gen.py -vv x64.release -- is_component_build=true use_custom_libcxx=false v8_enable_pointer_compression=false for generating v8

./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++" used to configure v8js before make

When make is called I get the following error /tmp/v8js/v8js_v8.cc:64:46: error: no matching function for call to ‘v8::V8::InitializeExternalStartupData(const char [29], const char [30])’ 64 | v8::V8::InitializeExternalStartupData( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 65 | PHP_V8_NATIVES_BLOB_PATH, | ~~~~~~~~~~~~~~~~~~~~~~~~~ 66 | PHP_V8_SNAPSHOT_BLOB_PATH | ~~~~~~~~~~~~~~~~~~~~~~~~~ 67 | ); | ~ In file included from /opt/v8/include/v8.h:34, from /tmp/v8js/php_v8js_macros.h:59, from /tmp/v8js/v8js_v8.cc:19: /opt/v8/include/v8-initialization.h:170:15: note: candidate: ‘static void v8::V8::InitializeExternalStartupData(const char*)’

Any help would be great

corey-rosamond avatar Jun 30 '23 03:06 corey-rosamond

Also issues during phpize ubuntu@ip-172-31-14-180:/tmp/v8js$ phpize Configuring for: PHP Api Version: 20210902 Zend Module Api No: 20210902 Zend Extension Api No: 420210902 configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead build/php.m4:2111: PHP_CONFIG_NICE is expanded from... configure.ac:22: the top level configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:165: You should run autoupdate. build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from... configure.ac:165: the top level

corey-rosamond avatar Jul 04 '23 07:07 corey-rosamond

Why this lib is so hard to install ? Why we need to do dozen of manipulation/build just for install this extension ? Why libv8-dev and pecl install v8js is not enough !

ghost avatar Sep 14 '23 09:09 ghost