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

libstdc++ missing #1

Closed
bra-fsn opened this issue May 10, 2014 · 0 comments
Closed

libstdc++ missing #1

bra-fsn opened this issue May 10, 2014 · 0 comments

Comments

@bra-fsn
Copy link

bra-fsn commented May 10, 2014

Built pcapy 0.10.8 with pypy 2.2.1 successfully, but it can't be imported. The error is:

# pypy
Python 2.7.3 (87aa9de10f9ca71da9ab4a3d53e0ba176b67d086, May 09 2014, 08:19:15)
[PyPy 2.2.1] on freebsd10
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy 2.0.1 released''
>>>> from pcapy import open_live
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: unable to load extension module '/usr/local/lib/pypy-2.2/site-packages/pcapy.pypy-22.so': /usr/local/lib/pypy-2.2/site-packages/pcapy.pypy-22.so: Undefined symbol "__gxx_personality_v0"

I could fix this by adding libstdc++ to libraries in setup.py:

--- setup.py.orig       2014-05-10 10:34:10.991476679 +0200
+++ setup.py    2014-05-10 10:34:56.891831654 +0200
@@ -19,7 +19,7 @@
     library_dirs.append(r'c:\devel\oss\wpdpack\Lib')
     libraries = ['wpcap', 'packet', 'ws2_32']
 else:
-    libraries = ['pcap']
+    libraries = ['pcap', 'stdc++']
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

1 participant