[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Installing pcaplib

ashish

1/3/2008 12:59:00 PM

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.

Thanks in Advance
Ashish


1 Answer

Diez B. Roggisch

1/3/2008 1:05:00 PM

0

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