Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running make in ubuntu 22.04 #515

Open
corey-rosamond opened this issue Jun 30, 2023 · 2 comments
Open

Issue running make in ubuntu 22.04 #515

corey-rosamond opened this issue Jun 30, 2023 · 2 comments

Comments

@corey-rosamond
Copy link

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
Copy link
Author

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

@tbarillet
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants