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

Runtime failure of PyV8 v0.8 with v8 trunk@r3837 #36

Closed
GoogleCodeExporter opened this issue May 22, 2015 · 4 comments
Closed

Runtime failure of PyV8 v0.8 with v8 trunk@r3837 #36

GoogleCodeExporter opened this issue May 22, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I am trying to use PyV8 on Linux and Mac OS X. The build is ok but the 
following error occurs (on both platforms) while importing PyV8 in python.

$ python
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyV8
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "PyV8.py", line 8, in <module>
    import _PyV8
ImportError: dlopen(./_PyV8.so, 2): Symbol not found: 
__ZN2v819RegisteredExtension16first_extension_E
  Referenced from: ...pyv8-read-only/build/lib.macosx-10.6-universal-2.6/_PyV8.so
  Expected in: flat namespace
 in ...pyv8-read-only/build/lib.macosx-10.6-universal-2.6/_PyV8.so

Both platforms show similar error messages:
Ubuntu 9.10 32 bits
Mac OS X 10.6.2 (with 64 bits Python) 

Original issue reported on code.google.com by edwincheese on 12 Feb 2010 at 9:51

@GoogleCodeExporter
Copy link
Author

Did you compile and link v8 and pyv8 with x64 mode? It seems the symbol of 
RegisteredExtension::first_extension doesn't exists in the libv8.a?

http://code.google.com/p/pyv8/wiki/HowToBuild

On the other hand, could you try build the PyV8 from SVN trunk, because I 
remember the developing version has fixed some Mac OS X issues.

Thanks

Original comment by flier...@gmail.com on 12 Feb 2010 at 1:47

  • Added labels: OpSys-OSX

@GoogleCodeExporter
Copy link
Author

Thank you. I have compiled both v8 and pyv8 in 64 bits (and set the apple 
specific -arch x86_64 gcc 
flag). I read the symbols in the libv8.dylib using nm and it has the missing 
symbol. I have tried the pyv8 
trunk too, but the build fails in related to AST.

In addition, I have tried it on a PC running ubuntu and the same error 
occurred.   

Original comment by edwincheese on 13 Feb 2010 at 1:06

@GoogleCodeExporter
Copy link
Author

I'm sorry, I can't reproduce your issue at this time, because I'm on vacation 
in two 
weeks, so I haven't x64 environment :S

Could you try to link v8 as static library?

Original comment by flier...@gmail.com on 13 Feb 2010 at 1:15

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

It seems be a link issue, pyv8 suggest to static link with v8 library.

Original comment by flier...@gmail.com on 9 Apr 2010 at 9:59

  • Changed state: WontFix

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

No branches or pull requests

1 participant