[MacPorts] #23936: sudo port install py-pcapy fails

MacPorts noreply at macports.org
Thu Mar 4 16:29:47 PST 2010


#23936: sudo port install py-pcapy fails
------------------------------+---------------------------------------------
 Reporter:  aernan@…          |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  ports             |     Version:  1.8.2                                
 Keywords:                    |        Port:  py-pcapy                             
------------------------------+---------------------------------------------
 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.

-- 
Ticket URL: <http://trac.macports.org/ticket/23936>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list