exported / pypcap

Automatically exported from code.google.com/p/pypcap
Other
0 stars 0 forks source link

run-time error #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
>>> import pcap
Traceback (most recent call last):
    File "<stdin>", line 1 in ?
ImportError: /usr/lib64/python2.4/site-packages/pcap.so: undefined symbol:
pcap_dispatch

I'm using pypcap 1.1 and made the changes from issues 14 and 22 so it would
build on a 64-bit setup.

Original issue reported on code.google.com by spiffypi...@gmail.com on 20 Oct 2009 at 6:22

GoogleCodeExporter commented 9 years ago
what pcap version, what platform?

Original comment by dugsong on 15 Dec 2009 at 3:23

GoogleCodeExporter commented 9 years ago
I encountered this same issue. When I perform a setup.py "config" and "install" 
it
appears that pcap.so is not linked against -lpcap. However running "config", 
"build",
and then "install" fixed the issue for me.

Original comment by garron.m...@gmail.com on 25 Feb 2010 at 6:13

GoogleCodeExporter commented 9 years ago
The following change to setup.py fixes the issue for me:

--- setup.py.orig       2010-03-16 11:20:42.000000000 -0700
+++ setup.py    2010-03-16 11:20:56.000000000 -0700
@@ -78 +78 @@
-if len(sys.argv) > 1 and sys.argv[1] == 'build':
+if len(sys.argv) > 1 and sys.argv[1] in ('build', 'install'):

Original comment by garron.m...@gmail.com on 16 Mar 2010 at 6:25

GoogleCodeExporter commented 9 years ago
I encountered this same issue . I have  modified the setup.py , but this issue 
still exists. 

Original comment by liuzhen1984@gmail.com on 26 Oct 2010 at 5:49

GoogleCodeExporter commented 9 years ago
garron.m...@gmail.com <--- I followed your steps and this resolved the same 
issue for me. I was stuck on it for over an hour, thanks!

Original comment by theycall...@gmail.com on 13 Sep 2012 at 7:31

GoogleCodeExporter commented 9 years ago
i got the following error, did all but unable to resolve it

Original comment by 11msccst...@seecs.edu.pk on 22 Nov 2012 at 2:40

GoogleCodeExporter commented 9 years ago
>>> import pcap
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python2.7/site-packages/pcap.so: undefined symbol: 
pcap_compile_nopcap

Original comment by 11msccst...@seecs.edu.pk on 22 Nov 2012 at 2:40