[MacPorts] #58549: fragroute @1.2: error: conflicting types for 'pcap_open' (was: fragroute @1.2: fails to build)

MacPorts noreply at macports.org
Mon Jun 3 01:58:27 UTC 2019


#58549: fragroute @1.2: error: conflicting types for 'pcap_open'
------------------------+--------------------
  Reporter:  floodsec   |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  fragroute  |
------------------------+--------------------

Comment (by ryandesign):

 The actual error in the log is:

 {{{
 :info:build In file included from pcaputil.c:27:
 :info:build ./pcaputil.h:12:9: error: conflicting types for 'pcap_open'
 :info:build pcap_t *pcap_open(char *device);
 :info:build         ^
 :info:build /opt/local/include/pcap/pcap.h:835:18: note: previous
 declaration is here
 :info:build PCAP_API pcap_t *pcap_open(const char *source, int snaplen,
 int flags,
 :info:build                  ^
 :info:build pcaputil.c:32:1: error: conflicting types for 'pcap_open'
 :info:build pcap_open(char *device)
 :info:build ^
 :info:build /opt/local/include/pcap/pcap.h:835:18: note: previous
 declaration is here
 :info:build PCAP_API pcap_t *pcap_open(const char *source, int snaplen,
 int flags,
 :info:build                  ^
 :info:build pcaputil.c:38:17: warning: 'pcap_lookupdev' is deprecated: use
 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
 :info:build                 if ((device = pcap_lookupdev(ebuf)) == NULL)
 :info:build                               ^
 :info:build /opt/local/include/pcap/pcap.h:327:1: note: 'pcap_lookupdev'
 has been explicitly marked deprecated here
 :info:build PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and
 use the first device");
 :info:build ^
 :info:build /opt/local/include/pcap/funcattrs.h:225:53: note: expanded
 from macro 'PCAP_DEPRECATED'
 :info:build   #define PCAP_DEPRECATED(func, msg)
 __attribute__((deprecated(msg)))
 :info:build                                                        ^
 :info:build 1 warning and 2 errors generated.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/58549#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list