ClosestStorm / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Compile Erro #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. scons mysql=1
2.
3.

What is the expected output? What do you see instead?
src/v8cgi.cc: In function `int js_library(char*)':
src/v8cgi.cc:166: error: ISO C++ forbids casting between
pointer-to-function and pointer-to-object

What version of the product are you using? On what operating system?
0.2.0, RHEL3

Please provide any additional information below.

 Apologies if this is operator error, have tried using v8 trunk checkout.

Original issue reported on code.google.com by jonespo...@yahoo.com on 26 Jan 2009 at 5:00

GoogleCodeExporter commented 9 years ago
am using gcc 3.4.6

Original comment by jonespo...@yahoo.com on 26 Jan 2009 at 5:04

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.zara on 27 Jan 2009 at 7:32

GoogleCodeExporter commented 9 years ago
This was caused by object-ptr to function-ptr cast when using dlsym(). I 
applied a
workaround which should fix it.

Original comment by ondrej.zara on 27 Jan 2009 at 7:33

GoogleCodeExporter commented 9 years ago
It now compiles, however i get the following error when tryng to use the MySQL
functions..

ReferenceError: MySQL is not defined 

I built with mysql=1.

When i run strace with v8cgi i do not see andt sql lib load  attempts.

tks

Original comment by jonespo...@yahoo.com on 28 Jan 2009 at 4:20

GoogleCodeExporter commented 9 years ago
Yes, auto-loaded libraries are specified in config file. If you want to load a
library which is not auto-loaded at runtime, use the "library()" command.

So, try executing a "library('libmysql.so')" ...

Original comment by ondrej.zara on 28 Jan 2009 at 8:34