afghanistanyn / pypcap

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

Installing on Win7 64-bit gives 'undefined reference to `__imp_Py_InitModule4' #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the latest svn code. In setup.py replace:
'for sd in ('include/pcap', 'include', ''):'
with
'for sd in ('include', 'include/pcap', ''):'
so that it finds the right pcap.h in wpdpack
2. Follow the installation guide in Issue 28
3. mingw32-make gives an error ld.exe: cannot find -lwpcap
4. Move 'Packet.lib' and 'wpcap.lib' from wpdpack\Lib\x64 to wpdpack\Lib
5. Running mingw32-make again, gives the error 'undefined reference to 
__imp_Py_InitModule4'

What is the expected output? What do you see instead?
Running 'make' and 'make install' should create a pcap.pyd file in the 
Python26\Lib\site-packages directory, but I 'make' gives an error.

What version of the product are you using? On what operating system?
I am using the latest code from svn on Windows 7 64-bit

Please provide any additional information below.

Original issue reported on code.google.com by s.sanad...@gmail.com on 12 Jan 2011 at 4:59

GoogleCodeExporter commented 9 years ago
I forgot to add that I have tried this on Python 2.6 and also on Python 2.5

Original comment by s.sanad...@gmail.com on 12 Jan 2011 at 5:00