I didn't see anything useful at the link. The issue is you have a .so that's getting loaded via dlopen(). That .so needs to call functions in the v8 library that is statically linked into the main program.
Static linking does not, at all, guarantee all of the functions of the static library are present in the main program binary to be called by some undeterminable .so loaded via dlopen(). It's even problematic for the main program to provide a function, foo(), and call that from a .so. I mentioned v8cgi because I know Ondras fairly well and he ran into these same issues and had to ask on mailing lists for help with the solution. It should be easy, but it isn't. On Sep 28, 2012, at 6:21 AM, Stephan Beal <[email protected]> wrote: > On Fri, Sep 28, 2012 at 2:36 PM, Michael Schwartz <[email protected]> wrote: > The problem is you have v8 as a static library. It needs to be a shared one > and the shared library (testplugin) needs to be linked against libv8.so and > every other library it calls. > > See this for an example build script: > https://github.com/mschwartz/SilkJS-redis/blob/master/build.js > > And here's an article which covers some of the details in a project-agnostic > manner: > > http://wanderinghorse.net/computing/papers/#classloading_cpp > > > -- > ----- stephan beal > http://wanderinghorse.net/home/stephan/ > http://gplus.to/sgbeal > > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
