itxx00 / pypcap

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

no pcap.h file in distribution #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python setup.py install

What is the expected output? What do you see instead?

Clean build

 python setup.py install
running install
running build
running build_ext
building 'pcap' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPIC -I/home/williams/include/python2.5 -c pcap.c -o
build/temp.linux-i686-2.5/pcap.o
pcap.c:8:18: error: pcap.h: No such file or directory
In file included from pcap.c:9:
pcap_ex.h:6: error: expected ‘)’ before ‘*’ token
pcap_ex.h:9: error: expected ‘)’ before ‘*’ token
pcap_ex.h:10: error: expected ‘)’ before ‘*’ token
pcap_ex.h:11: error: expected ‘)’ before ‘*’ token
pcap_ex.h:12: error: expected ‘)’ before ‘*’ token
pcap_ex.h:13: error: expected ‘)’ before ‘*’ token
pcap_ex.h:15: warning: ‘struct bpf_program’ declared inside parameter list
pcap_ex.h:15: warning: its scope is only this definition or declaration,
which is probably not what you want
...
pcap.c:2255: warning: suggest explicit braces to avoid ambiguous ‘else’
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?

pypcap-1.1
Python 2.5
CentOS 5

Please provide any additional information below.

Tried "libpcap-0.9.4-12.el5python setup.py install" after "python setup.py
config" didn't work.

libpcap-0.9.4-12.el5 installed, but no /usr/include/pcap.h

Original issue reported on code.google.com by tjand...@gmail.com on 9 Sep 2008 at 3:47

GoogleCodeExporter commented 9 years ago
You need to figure out what Linux development package to install to get a basic 
pcap
header file, or else configure to build against your own libpcap build 
directory. See
http://www.tcpdump.org/ for the latter.

Original comment by dugsong on 9 Sep 2008 at 4:18