Opened 4 years ago

Closed 3 years ago

#62860 closed defect (fixed)

trafshow: Fix compilation with libpcap 1.10.0

Reported by: DanielO (Daniel O'Connor) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: haspatch Cc:
Port: trafshow

Description

pcap 1.10.0 adds a pcap_init() function which collides with a function in trafshow.c

Attachments (1)

trafshow-bigsur.diff (2.0 KB) - added by DanielO (Daniel O'Connor) 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by DanielO (Daniel O'Connor)

Attachment: trafshow-bigsur.diff added

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur removed
Owner: set to ryandesign
Status: newaccepted
Summary: trafshow: Fix compilation on Big Surtrafshow: Fix compilation with libpcap 1.10.0
Version: 2.6.4

Thanks.

For posterity, the error message without this patch was:

error: static declaration of 'pcap_init' follows non-static declaration

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Type: updatedefect

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

Resolution: fixed
Status: acceptedclosed

In 1215e1780369bf6c68ef24cbe31ee7ce9b02b48a/macports-ports (master):

trafshow: Fix build; modernize checksums

Fix build with libpcap 1.10 and later by renaming local pcap_init
function so that it does not conflict with libpcap's pcap_init function.

Closes: #62860

Fix implicit declaration of functions in configure script.

Modernize checksums.

Note: See TracTickets for help on using tickets.