pkgsrc-WIP-discuss archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pypcap-1.1 compilation problems
On Feb 14, 2010, at 12:32 PM, Fredrik Pettai wrote:
> Hi,
>
> Does anybody with knowledge of libpcap in NetBSD know how to solve the
> compilation errors with wip/pypcap ?
> At first, I thought it was a problem with the NetBSD included pcap
> headers/library, but then I run it with pkgsrc bundled libpcap version
> I still get the same errors (and 3 out of 5 tests fail).
Hi again,
Some more info regarding this. This was with python26 on NetBSD
5.0_STABLE. Later I also tried python25 on NetBSD 4.0.1_PATCH which
gave me the same results as below the "/////...".
Strangly, with python24 on NetBSD 4.0.1_PATCH, all tests work fine.
(So this might be a python related problem and maybe not libpcap, as I
suspected from the beginning.)
-bash-3.2$ make test
/usr/pkg/bin/python2.4 test.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.001s
OK
//////////////////////////////////////////////////////////////////////////////
-bash-4.0$ make test
/usr/pkg/bin/python2.6 test.py
EEE..
======================================================================
ERROR: test_pcap_dispatch (__main__.PcapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 37, in test_pcap_dispatch
p.dispatch(-1, __bad_handler)
File "pcap.pyx", line 288, in pcap.pcap.dispatch
callback -- function with (timestamp, pkt, *args) prototype
TypeError: exceptions must be strings, classes, or instances, not type
======================================================================
ERROR: test_pcap_errors (__main__.PcapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 19, in test_pcap_errors
print p.stats()
File "pcap.pyx", line 325, in pcap.pcap.stats
raise KeyboardInterrupt
TypeError: exceptions must be strings, classes, or instances, not type
======================================================================
ERROR: test_pcap_iter (__main__.PcapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 9, in test_pcap_iter
l = [ (x[0], len(x[1])) for x in pcap.pcap('test.pcap') ]
File "pcap.pyx", line 346, in pcap.pcap.__next__
cdef pcap_pkthdr *hdr
TypeError: exceptions must be strings, classes, or instances, not type
----------------------------------------------------------------------
Ran 5 tests in 0.002s
FAILED (errors=3)
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/wip/pypcap/work/pypcap-1.1
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss
Home |
Main Index |
Thread Index |
Old Index