Opened 15 years ago

Closed 14 years ago

#23936 closed defect (fixed)

py-pcapy fails to build on Snow Leopard

Reported by: aernan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: py-pcapy

Description (last modified by mf2k (Frank Schima))

unixnet-dhcp-29:py earnan$ sudo port install py-pcapy
--->  Computing dependencies for py-pcapy
--->  Building py-pcapy
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pcapy/work/pcapy-0.10.4" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: /opt/local/include/pcap/pcap.h:257: error: 'bpf_u_int32' has not been declared
/opt/local/include/pcap/pcap.h:257: error: 'bpf_u_int32' has not been declared
/opt/local/include/pcap/pcap.h:284: error: 'pcap_handler' has not been declared
/opt/local/include/pcap/pcap.h:284: error: 'u_char' has not been declared
/opt/local/include/pcap/pcap.h:285: error: 'pcap_handler' has not been declared
/opt/local/include/pcap/pcap.h:285: error: 'u_char' has not been declared
/opt/local/include/pcap/pcap.h:286: error: expected initializer before '*' token
/opt/local/include/pcap/pcap.h:288: error: expected ',' or '...' before '*' token
/opt/local/include/pcap/pcap.h:288: error: ISO C++ forbids declaration of 'u_char' with no type
/opt/local/include/pcap/pcap.h:296: error: expected ',' or '...' before '*' token
/opt/local/include/pcap/pcap.h:296: error: ISO C++ forbids declaration of 'u_char' with no type
/opt/local/include/pcap/pcap.h:302: error: 'bpf_u_int32' has not been declared
/opt/local/include/pcap/pcap.h:304: error: 'bpf_u_int32' has not been declared
/opt/local/include/pcap/pcap.h:307: error: expected ',' or '...' before '*' token
/opt/local/include/pcap/pcap.h:307: error: ISO C++ forbids declaration of 'u_char' with no type
/opt/local/include/pcap/pcap.h:331: error: variable or field 'pcap_dump' declared void
/opt/local/include/pcap/pcap.h:331: error: 'u_char' was not declared in this scope
/opt/local/include/pcap/pcap.h:331: error: expected primary-expression before ',' token
/opt/local/include/pcap/pcap.h:331: error: expected primary-expression before 'const'
/opt/local/include/pcap/pcap.h:331: error: expected primary-expression before 'const'
/opt/local/include/pcap/pcap.h:339: error: 'u_int' does not name a type
pcapdumper.cc:48: warning: deprecated conversion from string constant to 'char*'
pcapdumper.cc:48: warning: deprecated conversion from string constant to 'char*'
pcapdumper.cc:74: warning: deprecated conversion from string constant to 'char*'
pcapdumper.cc: In function 'PyObject* p_dump(pcapdumper*, PyObject*)':
pcapdumper.cc:95: error: 'u_char' was not declared in this scope
pcapdumper.cc:95: error: 'data' was not declared in this scope
pcapdumper.cc:110: error: expected primary-expression before ')' token
pcapdumper.cc:110: error: 'pcap_dump' was not declared in this scope
error: command '/usr/bin/gcc-4.2' failed with exit status 1

Error: Status 1 encountered during processing.

Attachments (1)

py-pcapy-0.10.5-on-10.6.txt (21.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
debug log

Download all attachments as: .zip

Change History (6)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)

Are you on Snow Leopard? I don't think python 2.4 works there anyway. I'd recommend using py26-pcapy instead but the port does not exist. I'd suggest filing a port request for py26-pcapy. If you do, I'll try to get that added soon.

comment:2 Changed 15 years ago by jpo@…

Hi,

I'm also interested in having py26-pcapy (and having pcapy updated to version 0.10.5).

jpo

comment:3 in reply to:  2 Changed 15 years ago by jpo@…

Replying to jpo@…:

Hi,

I'm also interested in having py26-pcapy (and having pcapy updated to version 0.10.5).

jpo

New ticket with the update request: #23949

jpo

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: sudo port install py-pcapy failspy-pcapy fails to build on Snow Leopard

I can confirm py-pcapy fails to install on Snow Leopard. Full debug log attached. The newly-created py25-pcapy and py26-pcapy do install on Snow Leopard however.

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: py-pcapy-0.10.5-on-10.6.txt added

debug log

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

0.10.5 builds fine for me on 10.6.

Note: See TracTickets for help on using tickets.