[Bug 271337] net/trafshow - Build fails on 14-CURRENT

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 May 2023 05:39:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271337

            Bug ID: 271337
           Summary: net/trafshow - Build fails on 14-CURRENT
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: cy@FreeBSD.org
                CC: portmaster@bsdforge.com
                CC: portmaster@bsdforge.com
             Flags: maintainer-feedback?(portmaster@bsdforge.com)

Build fails on 14-CURRENT with the following errors;

trafshow.c:63:12: error: static declaration of 'pcap_init' follows non-static
declaration
static int pcap_init(PCAP_HANDLER **ph_list, pcap_if_t *dp);
           ^
/usr/include/pcap/pcap.h:386:14: note: previous declaration is here
PCAP_API int    pcap_init(unsigned int, char *);
                ^
trafshow.c:177:22: error: incompatible pointer to integer conversion passing
'PCAP_HANDLER **' (aka 'struct pcap_handler **') to parameter of type 'unsigned
int' [-Wint-conversion]
        if ((op = pcap_init(&ph_list, dev_list)) < 1) {
                            ^~~~~~~~
/usr/include/pcap/pcap.h:386:36: note: passing argument to parameter here
PCAP_API int    pcap_init(unsigned int, char *);
                                      ^
trafshow.c:177:32: warning: incompatible pointer types passing 'pcap_if_t *'
(aka 'struct pcap_if *') to parameter of type 'char *'
[-Wincompatible-pointer-types]
        if ((op = pcap_init(&ph_list, dev_list)) < 1) {
                                      ^~~~~~~~
/usr/include/pcap/pcap.h:386:44: note: passing argument to parameter here
PCAP_API int    pcap_init(unsigned int, char *);
                                              ^
trafshow.c:100:12: warning: variable 'show_thr' set but not used
[-Wunused-but-set-variable]
        pthread_t show_thr, sig_thr, pcap_thr;
                  ^
trafshow.c:91:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
main(argc, argv)
^
trafshow.c:268:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
catch_signals(arg)
^
trafshow.c:268:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
trafshow.c:286:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_matchdev(dp, name)
^
trafshow.c:286:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
trafshow.c:303:1: error: static declaration of 'pcap_init' follows non-static
declaration
pcap_init(ph_list, dp)
^
/usr/include/pcap/pcap.h:386:14: note: previous declaration is here
PCAP_API int    pcap_init(unsigned int, char *);
                ^
trafshow.c:303:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_init(ph_list, dp)
^
trafshow.c:420:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcaph_create(top, nh)
^
trafshow.c:457:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcaph_close(ph)
^
trafshow.c:483:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_setexpr(ph, expr)
^
trafshow.c:518:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_feed(arg)
^
trafshow.c:518:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
trafshow.c:549:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_feed2(arg)
^
trafshow.c:553:6: warning: variable 'npkt' set but not used
[-Wunused-but-set-variable]
        int npkt = -1, ndev, op;
            ^
trafshow.c:549:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_feed2(arg)
^
trafshow.c:605:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
parse_feed(a, h, p)
^
trafshow.c:605:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
trafshow.c:627:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_save(ph, ns)
^
trafshow.c:663:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_show(arg)
^
trafshow.c:709:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_purge(arg)
^
trafshow.c:730:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_clear(arg)
^
trafshow.c:743:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_get_selected(ph)
^
trafshow.c:756:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
pcap_set_selected(ph, idx)
^
trafshow.c:773:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
traf_show(arg)
^
trafshow.c:773:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
26 warnings and 3 errors generated.
*** [trafshow.o] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/net/trafshow/work/trafshow-5.2.3
--- screen.o ---
In file included from screen.c:24:
/usr/include/sys/termios.h:3:2: warning: "this file includes <sys/termios.h>
which is deprecated, use <termios.h> instead" [-W#warnings]
#warning "this file includes <sys/termios.h> which is deprecated, use
<termios.h> instead"
 ^
screen.c:49:1: warning: a function definition without a prototype is deprecated
in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
screen_open(resize)
^
screen.c:163:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
screen_dock_cursor(y, x)
^
3 warnings generated.
--- getkey.o ---
getkey.c:54:1: warning: a function definition without a prototype is deprecated
in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getkey_init(ph)
^
getkey.c:69:1: warning: a function definition without a prototype is deprecated
in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
read_key(sd, data, len)
^
getkey.c:69:1: warning: a function definition without a prototype is deprecated
in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
getkey.c:83:1: warning: a function definition without a prototype is deprecated
in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
get_selector(ph_list)
^
getkey.c:102:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
parse_key(key, ph_list)
^
getkey.c:102:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
getkey.c:416:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
scan_key(buf, len)
^
getkey.c:416:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
getkey.c:495:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
init_edit_string(prompter, charset, size)
^
getkey.c:495:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
getkey.c:536:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
edit_string(ch)
^
getkey.c:536:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
12 warnings generated.
--- colormask.o ---
colormask.c:540:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
colormask(nh)
^
1 warning generated.
1 error

make[1]: stopped in /wrkdirs/usr/ports/net/trafshow/work/trafshow-5.2.3
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/net/trafshow
=>> Cleaning up wrkdir
===>  Cleaning for trafshow-5.2.3_3,1
build of net/trafshow | trafshow-5.2.3_3,1 ended at Tue May  9 22:11:17 PDT
2023
build time: 00:00:44
!!! build failure encountered !!!

-- 
You are receiving this mail because:
You are the assignee for the bug.