BackupGGCode / pypcap

simplified object-oriented Python extension module for libpcap
Other
0 stars 1 forks source link

pypcap depends from pcap-int.h which is internal pcap stuff and shouldn't be included (breaking build on some systems) #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
>>> Emerging (1 of 1) dev-python/pypcap-1.1.1::gentoo
 * pypcap-1.1.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                        
[ ok ]
>>> Unpacking source...
>>> Unpacking pypcap-1.1.1.tar.gz to 
/var/tmp/portage/dev-python/pypcap-1.1.1/work
>>> Source unpacked in /var/tmp/portage/dev-python/pypcap-1.1.1/work
>>> Preparing source in 
/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1 ...
>>> Source prepared.
>>> Configuring source in 
/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1 ...
>>> Source configured.
>>> Compiling source in 
/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1 ...
 * python2_7: running distutils-r1_run_phase python_compile
/usr/bin/python2.7 setup.py build
^[[AFound pcap headers in /usr/include/pcap/pcap.h
Found libraries in /usr/lib/libpcap.so
found pcap_setnonblock
found pcap_compile_nopcap function
found pcap_file function
running build
running build_ext
building 'pcap' extension
creating 
/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1-python2_7/temp.linux-
x86_64-2.7
x86_64-pc-linux-gnu-gcc -O2 -march=corei7-avx -pipe -fno-strict-aliasing -fPIC 
-DHAVE_PCAP_INT_H=1 -DHAVE_PCAP_SETNONBLOCK=1 -DHAVE_PCAP_COMPILE_NOPCAP=1 
-DHAVE_PCAP_FILE=1 -I/usr/include/pcap -I/usr/include/python2.7 -c pcap.c -o 
/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1-python2_7/temp.linux-
x86_64-2.7/pcap.o
pcap.c: In function ‘__pyx_pf_4pcap_3bpf_2filter’:
pcap.c:1395:3: warning: passing argument 2 of ‘PyObject_AsCharBuffer’ from 
incompatible pointer type [enabled by default]
In file included from /usr/include/python2.7/Python.h:133:0,
                 from pcap.c:16:
/usr/include/python2.7/abstract.h:476:22: note: expected ‘const char **’ 
but argument is of type ‘char **’
pcap.c:1395:3: warning: passing argument 3 of ‘PyObject_AsCharBuffer’ from 
incompatible pointer type [enabled by default]
In file included from /usr/include/python2.7/Python.h:133:0,
                 from pcap.c:16:
/usr/include/python2.7/abstract.h:476:22: note: expected ‘Py_ssize_t *’ but 
argument is of type ‘int *’
pcap.c: In function ‘__pyx_pf_4pcap_4pcap_16dispatch’:
pcap.c:3135:3: warning: passing argument 3 of ‘pcap_dispatch’ from 
incompatible pointer type [enabled by default]
In file included from pcap.c:343:0:
/usr/include/pcap/pcap.h:373:5: note: expected ‘pcap_handler’ but argument 
is of type ‘void (*)(void *, struct pcap_pkthdr *, char *)’
pcap.c: In function ‘__pyx_pf_4pcap_4pcap_18loop’:
pcap.c:3364:5: warning: passing argument 3 of ‘pcap_ex_next’ from 
incompatible pointer type [enabled by default]
In file included from pcap.c:344:0:
pcap_ex.h:13:7: note: expected ‘u_char **’ but argument is of type ‘char 
**’
pcap.c: In function ‘__pyx_pf_4pcap_4pcap_28__next__’:
pcap.c:3976:5: warning: passing argument 3 of ‘pcap_ex_next’ from 
incompatible pointer type [enabled by default]
In file included from pcap.c:344:0:
pcap_ex.h:13:7: note: expected ‘u_char **’ but argument is of type ‘char 
**’
x86_64-pc-linux-gnu-gcc -O2 -march=corei7-avx -pipe -fno-strict-aliasing -fPIC 
-DHAVE_PCAP_INT_H=1 -DHAVE_PCAP_SETNONBLOCK=1 -DHAVE_PCAP_COMPILE_NOPCAP=1 
-DHAVE_PCAP_FILE=1 -I/usr/include/pcap -I/usr/include/python2.7 -c pcap_ex.c -o 
/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1-python2_7/temp.linux-
x86_64-2.7/pcap_ex.o
pcap_ex.c:18:23: fatal error: pcap-int.h: No such file or directory
compilation terminated.
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

Original issue reported on code.google.com by xvi...@gmail.com on 25 Nov 2014 at 3:55