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

Fails to build against v8 since 3.24.10 #83

Closed
stesie opened this issue Jan 3, 2014 · 2 comments
Closed

Fails to build against v8 since 3.24.10 #83

stesie opened this issue Jan 3, 2014 · 2 comments

Comments

@stesie
Copy link
Member

stesie commented Jan 3, 2014

V8Js fails to build against the V8 version released today

/var/lib/jenkins/workspace/v8js/v8js.cc:61:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/lib/jenkins/workspace/v8js/v8js.cc: In function 'void zim_V8Object___construct(int, zval*, zval**, zval*, int)':
/var/lib/jenkins/workspace/v8js/v8js.cc:516:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/lib/jenkins/workspace/v8js/v8js.cc: In function 'void zim_V8Function___construct(int, zval*, zval**, zval*, int)':
/var/lib/jenkins/workspace/v8js/v8js.cc:526:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/lib/jenkins/workspace/v8js/v8js.cc: In function 'void zim_V8Js___construct(int, zval*, zval**, zval*, int)':
/var/lib/jenkins/workspace/v8js/v8js.cc:821:66: error: no matching function for call to 'v8::FunctionTemplate::New()'
/var/lib/jenkins/workspace/v8js/v8js.cc:821:66: note: candidate is:
In file included from /var/lib/jenkins/workspace/v8js/v8-latest//include/v8-debug.h:31:0,
                 from /var/lib/jenkins/workspace/v8js/v8js.cc:22:
/var/lib/jenkins/workspace/v8js/v8-latest//include/v8.h:3341:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
/var/lib/jenkins/workspace/v8js/v8-latest//include/v8.h:3341:34: note:   candidate expects 5 arguments, 0 provided
/var/lib/jenkins/workspace/v8js/v8js.cc:848:72: error: no matching function for call to 'v8::FunctionTemplate::New()'
/var/lib/jenkins/workspace/v8js/v8js.cc:848:72: note: candidate is:
In file included from /var/lib/jenkins/workspace/v8js/v8-latest//include/v8-debug.h:31:0,
                 from /var/lib/jenkins/workspace/v8js/v8js.cc:22:
/var/lib/jenkins/workspace/v8js/v8-latest//include/v8.h:3341:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)
/var/lib/jenkins/workspace/v8js/v8-latest//include/v8.h:3341:34: note:   candidate expects 5 arguments, 0 provided
/var/lib/jenkins/workspace/v8js/v8js.cc: In function 'void zim_V8Js_executeString(int, zval*, zval**, zval*, int)':
/var/lib/jenkins/workspace/v8js/v8js.cc:1041:2: error: invalid conversion from 'long int' to 'v8::Isolate*' [-fpermissive]
In file included from /var/lib/jenkins/workspace/v8js/v8-latest//include/v8-debug.h:31:0,
                 from /var/lib/jenkins/workspace/v8js/v8js.cc:22:
/var/lib/jenkins/workspace/v8js/v8-latest//include/v8.h:1977:25: error:   initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)' [-fpermissive]
/var/lib/jenkins/workspace/v8js/v8js.cc:1041:2: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
In file included from /var/lib/jenkins/workspace/v8js/v8-latest//include/v8-debug.h:31:0,
                 from /var/lib/jenkins/workspace/v8js/v8js.cc:22:
/var/lib/jenkins/workspace/v8js/v8-latest//include/v8.h:1977:25: error:   initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)' [-fpermissive]
/var/lib/jenkins/workspace/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_ctor(zval**)':
/var/lib/jenkins/workspace/v8js/v8js.cc:1238:4: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/lib/jenkins/workspace/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_dtor(zval**)':
/var/lib/jenkins/workspace/v8js/v8js.cc:1251:4: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/var/lib/jenkins/workspace/v8js/v8js.cc: At global scope:
/var/lib/jenkins/workspace/v8js/v8js.cc:1398:1: warning: narrowing conversion of '-1' from 'int' to 'zend_uint {aka unsigned int}' inside { } [-Wnarrowing]
/var/lib/jenkins/workspace/v8js/v8js.cc:1412:1: warning: narrowing conversion of '-1' from 'int' to 'zend_uint {aka unsigned int}' inside { } [-Wnarrowing]
/var/lib/jenkins/workspace/v8js/v8js.cc:1415:1: warning: narrowing conversion of '-1' from 'int' to 'zend_uint {aka unsigned int}' inside { } [-Wnarrowing]
make: *** [v8js.lo] Error 1

for details, see Jenkins log: http://jenkins.brokenpipe.de/job/v8js-with-v8-3.24.10/

@yllierop
Copy link
Contributor

yllierop commented Jan 3, 2014

@stesie — thanks for the report.

@ccubed2k4
Copy link

I am also getting the similar problem. Below are the make process and gcc version.
What other options can I pass to configure for resolving this issue, or is it possible to modify the program to resolve this, if so, how?

[root@localhost v8js]# make
/bin/sh /usr/local/v8js/libtool --mode=compile g++ -std=c++0x -I. -I/usr/local/v8js -DPHP_ATOM_INC -I/usr/local/v8js/include -I/usr/local/v8js/main -I/usr/local/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 -DHAVE_CONFIG_H -g -O2 -c /usr/local/v8js/v8js.cc -o v8js.lo
libtool: compile: g++ -std=c++0x -I. -I/usr/local/v8js -DPHP_ATOM_INC -I/usr/local/v8js/include -I/usr/local/v8js/main -I/usr/local/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 -DHAVE_CONFIG_H -g -O2 -c /usr/local/v8js/v8js.cc -fPIC -DPIC -o .libs/v8js.o
/usr/local/v8js/v8js.cc:61:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Object___construct(int, zval_, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:516:54: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Function___construct(int, zval*, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:526:54: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Js___construct(int, zval_, zval__, zval_, int)':
/usr/local/v8js/v8js.cc:770:134: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:821:66: error: no matching function for call to 'v8::FunctionTemplate::New()'
/usr/include/v8.h:3331:34: note: candidate is: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate_, void ()(const v8::FunctionCallbackInfov8::Value&), v8::Handlev8::Value, v8::Handlev8::Signature, int)
/usr/local/v8js/v8js.cc:848:72: error: no matching function for call to 'v8::FunctionTemplate::New()'
/usr/include/v8.h:3331:34: note: candidate is: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate
, void ()(const v8::FunctionCallbackInfov8::Value&), v8::Handlev8::Value, v8::Handlev8::Signature, int)
/usr/local/v8js/v8js.cc: In function 'void php_v8js_timer_thread()':
/usr/local/v8js/v8js.cc:1001:3: error: 'sleep_for' is not a member of 'std::this_thread'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Js_executeString(int, zval
, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:1013:145: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1041:2: error: invalid conversion from 'long int' to 'v8::Isolate_'
/usr/local/v8js/v8js.cc:1041:2: error: initializing argument 1 of 'static v8::Localv8::Integer v8::Integer::New(v8::Isolate_, int32_t)'
/usr/local/v8js/v8js.cc:1041:2: error: invalid conversion from 'v8::Isolate_' to 'int32_t'
/usr/local/v8js/v8js.cc:1041:2: error: initializing argument 2 of 'static v8::Localv8::Integer v8::Integer::New(v8::Isolate_, int32_t)'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Js_startDebugAgent(int, zval*, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:1154:97: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Js_getPendingException(int, zval_, zval__, zval_, int)':
/usr/local/v8js/v8js.cc:1198:6: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Js_setModuleLoader(int, zval_, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:1217:69: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_ctor(zval**)':
/usr/local/v8js/v8js.cc:1238:4: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void php_v8js_persistent_zval_dtor(zval__)':
/usr/local/v8js/v8js.cc:1251:4: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Js_registerExtension(int, zval_, zval__, zval_, int)':
/usr/local/v8js/v8js.cc:1316:135: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8Js_getExtensions(int, zval_, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:1344:6: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void php_v8js_create_script_exception(zval_, v8::TryCatch_)':
/usr/local/v8js/v8js.cc:1508:3: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1512:3: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1515:3: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1522:4: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1526:2: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8JsScriptException_getJsFileName(int, zval_, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:1564:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1564:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8JsScriptException_getJsLineNumber(int, zval_, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:1569:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1569:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8JsScriptException_getJsSourceLine(int, zval_, zval**, zval_, int)':
/usr/local/v8js/v8js.cc:1574:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1574:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'void zim_V8JsScriptException_getJsTrace(int, zval_, zval*, zval, int)':
/usr/local/v8js/v8js.cc:1579:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1579:1: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: In function 'int zm_startup_v8js(int, int)':
/usr/local/v8js/v8js.cc:1675:113: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1676:114: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1677:114: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc:1678:111: warning: deprecated conversion from string constant to 'char_'
/usr/local/v8js/v8js.cc: At global scope:
/usr/local/v8js/v8js.cc:1820:1: warning: deprecated conversion from string constant to 'char_'
make: *_* [v8js.lo] Error 1

[root@localhost v8js]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.5.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC)

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

3 participants