Installing pcaplib

Diez B. Roggisch deets at nospam.web.de
Thu Jan 3 08:05:20 EST 2008


ashish wrote:

> Hi All,
> 
> I am trying to install "pylibpcap-0.6.1" but i am getting these errors .
> 
> 
> python ./setup.py install
> 
> .
> .
> .
> .
> .
> 
> constants.c:172: (near initialization for `pcapmodule_DLT[52]')
> pcap.c: In function `init_pcap':
> pcap.c:4246: structure has no member named `value'
> pcap.c:4260: warning: passing arg 3 of `PyModule_AddStringConstant'
> discards qualifiers from pointer target type
> error: command 'gcc' failed with exit status 1
> 
> Please tell me how to solve this problem.Do i have to install anything
> else before installing this library.

Seems like a version-conflict. See which structure pcap.c:4246 refers to,
and from what include it stems. If it's a 3rd-party-lib, install the proper
version.

Diez



More information about the Python-list mailing list