Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530084 - dev-python/pypcap-1.1.1 with net-libs/libpcap-1.6.2-r1 - pcap_ex.c:18:23: fatal error: pcap-int.h: No such file or directory
Summary: dev-python/pypcap-1.1.1 with net-libs/libpcap-1.6.2-r1 - pcap_ex.c:18:23: fat...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-21 23:30 UTC by Anton Kochkov
Modified: 2015-01-16 14:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2014-11-21 23:30:14 UTC
>>> 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
 * ERROR: dev-python/pypcap-1.1.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3500:  Called distutils-r1_src_compile
 *   environment, line 1031:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  289:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3370:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2361:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2304:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2302:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2352:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line  704:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line 1022:  Called python_compile
 *   environment, line 2791:  Called distutils-r1_python_compile
 *   environment, line  902:  Called esetup.py 'build'
 *   environment, line 1473:  Called die
 * The specific snippet of code:
 *       "${@}" || die
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pypcap-1.1.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pypcap-1.1.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pypcap-1.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pypcap-1.1.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1'
 * S: '/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1'

>>> Failed to emerge dev-python/pypcap-1.1.1, Log file:

>>>  '/var/tmp/portage/dev-python/pypcap-1.1.1/temp/build.log'

 * Messages for package dev-python/pypcap-1.1.1:

 * ERROR: dev-python/pypcap-1.1.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3500:  Called distutils-r1_src_compile
 *   environment, line 1031:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  289:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3370:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2361:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2304:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2302:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2352:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line  704:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line 1022:  Called python_compile
 *   environment, line 2791:  Called distutils-r1_python_compile
 *   environment, line  902:  Called esetup.py 'build'
 *   environment, line 1473:  Called die
 * The specific snippet of code:
 *       "${@}" || die
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pypcap-1.1.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pypcap-1.1.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pypcap-1.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pypcap-1.1.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1'
 * S: '/var/tmp/portage/dev-python/pypcap-1.1.1/work/pypcap-1.1.1'
Comment 1 Anton Kochkov 2014-11-21 23:31:04 UTC
Could be an error in program - https://bugs.launchpad.net/ubuntu/+source/libpcap/+bug/397595
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-22 10:44:28 UTC
Please post your `emerge --info' output in a comment.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-22 10:45:44 UTC
When I try that, src_configure() says:

No pcap-int.h found
Comment 4 Anton Kochkov 2014-11-25 15:56:11 UTC
emerge --info doesn't matter here obviously.
I've filled the upstream bug https://code.google.com/p/pypcap/issues/detail?id=45
Comment 5 Anton Kochkov 2015-01-16 14:58:50 UTC
Here is this output of emerge --info https://535728.bugs.gentoo.org/attachment.cgi?id=393270