=>> Building net/tcpview build started at Fri Apr 5 05:30:24 BST 2024 port directory: /usr/ports/net/tcpview package name: tcpview-1.0_8 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: cy@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 889 Feb 8 11:33 /usr/ports/net/tcpview/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: 268db869e8 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 11 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/11/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- cy@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/tcpview/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/tcpview/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/tcpview/work/.cache HOME=/wrkdirs/usr/ports/net/tcpview/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/tcpview/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/tcpview/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- MOTIFLIB="-L/usr/local/lib -lXm" XDG_DATA_HOME=/wrkdirs/usr/ports/net/tcpview/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/tcpview/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/tcpview/work/.cache HOME=/wrkdirs/usr/ports/net/tcpview/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/tcpview/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/tcpview/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/tcpview" EXAMPLESDIR="share/examples/tcpview" DATADIR="share/tcpview" WWWDIR="www/tcpview" ETCDIR="etc/tcpview" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/tcpview DOCSDIR=/usr/local/share/doc/tcpview EXAMPLESDIR=/usr/local/share/examples/tcpview WWWDIR=/usr/local/www/tcpview ETCDIR=/usr/local/etc/tcpview --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> tcpview-1.0_8 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of tcpview-1.0_8 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by tcpview-1.0_8 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by tcpview-1.0_8 for building => SHA256 Checksum OK for tcpview-1.0.tar.Z. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by tcpview-1.0_8 for building ===> Extracting for tcpview-1.0_8 => SHA256 Checksum OK for tcpview-1.0.tar.Z. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for tcpview-1.0_8 ===> Applying FreeBSD patches for tcpview-1.0_8 from /usr/ports/net/tcpview/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on executable: bison - not found ===> Installing existing package /packages/All/bison-3.8.2_1,1.pkg [pkg-builder.dan.net.uk] Installing bison-3.8.2_1,1... [pkg-builder.dan.net.uk] `-- Installing gettext-runtime-0.22.3_1... [pkg-builder.dan.net.uk] | `-- Installing indexinfo-0.3.1... [pkg-builder.dan.net.uk] | `-- Extracting indexinfo-0.3.1: . done [pkg-builder.dan.net.uk] `-- Extracting gettext-runtime-0.22.3_1: .......... done [pkg-builder.dan.net.uk] `-- Installing libtextstyle-0.22.3... [pkg-builder.dan.net.uk] `-- Extracting libtextstyle-0.22.3: .......... done [pkg-builder.dan.net.uk] `-- Installing m4-1.4.19_1,1... [pkg-builder.dan.net.uk] | `-- Installing libsigsegv-2.14... [pkg-builder.dan.net.uk] | `-- Extracting libsigsegv-2.14: ..... done [pkg-builder.dan.net.uk] `-- Extracting m4-1.4.19_1,1: .......... done [pkg-builder.dan.net.uk] `-- Installing readline-8.2.10... [pkg-builder.dan.net.uk] `-- Extracting readline-8.2.10: .......... done [pkg-builder.dan.net.uk] Extracting bison-3.8.2_1,1: .......... done ===== Message from libsigsegv-2.14: -- Note that the stackoverflow handling functions of this library need procfs mounted on /proc. ===> tcpview-1.0_8 depends on executable: bison - found ===> Returning to build of tcpview-1.0_8 ===> tcpview-1.0_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - not found ===> Installing existing package /packages/All/libXpm-3.5.17_1.pkg [pkg-builder.dan.net.uk] Installing libXpm-3.5.17_1... [pkg-builder.dan.net.uk] `-- Installing libX11-1.8.7_1,1... [pkg-builder.dan.net.uk] | `-- Installing libxcb-1.16.1... [pkg-builder.dan.net.uk] | | `-- Installing libXau-1.0.9_1... [pkg-builder.dan.net.uk] | | `-- Extracting libXau-1.0.9_1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXdmcp-1.1.5... [pkg-builder.dan.net.uk] | | `-- Installing xorgproto-2023.2... [pkg-builder.dan.net.uk] | | `-- Extracting xorgproto-2023.2: .......... done [pkg-builder.dan.net.uk] | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg-builder.dan.net.uk] | `-- Extracting libxcb-1.16.1: .......... done [pkg-builder.dan.net.uk] `-- Extracting libX11-1.8.7_1,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libXext-1.3.6,1... [pkg-builder.dan.net.uk] `-- Extracting libXext-1.3.6,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libXt-1.3.0,1... [pkg-builder.dan.net.uk] | `-- Installing libICE-1.1.0_2,1... [pkg-builder.dan.net.uk] | `-- Extracting libICE-1.1.0_2,1: .......... done [pkg-builder.dan.net.uk] | `-- Installing libSM-1.2.3_1,1... [pkg-builder.dan.net.uk] | `-- Extracting libSM-1.2.3_1,1: ........ done [pkg-builder.dan.net.uk] `-- Extracting libXt-1.3.0,1: .......... done [pkg-builder.dan.net.uk] Extracting libXpm-3.5.17_1: .......... done ===> tcpview-1.0_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> Returning to build of tcpview-1.0_8 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on shared library: libXm.so.4 - not found ===> Installing existing package /packages/All/open-motif-2.3.8_8.pkg [pkg-builder.dan.net.uk] Installing open-motif-2.3.8_8... [pkg-builder.dan.net.uk] `-- Installing fontconfig-2.15.0_2,1... [pkg-builder.dan.net.uk] | `-- Installing expat-2.6.1... [pkg-builder.dan.net.uk] | `-- Extracting expat-2.6.1: .......... done [pkg-builder.dan.net.uk] | `-- Installing freetype2-2.13.2... [pkg-builder.dan.net.uk] | `-- Extracting freetype2-2.13.2: .......... done [pkg-builder.dan.net.uk] `-- Extracting fontconfig-2.15.0_2,1: .......... done [pkg-builder.dan.net.uk] `-- Installing jpeg-turbo-3.0.2... [pkg-builder.dan.net.uk] `-- Extracting jpeg-turbo-3.0.2: .......... done [pkg-builder.dan.net.uk] `-- Installing libXaw-1.0.14_1,2... [pkg-builder.dan.net.uk] | `-- Installing libXmu-1.1.4,1... [pkg-builder.dan.net.uk] | `-- Extracting libXmu-1.1.4,1: .......... done [pkg-builder.dan.net.uk] `-- Extracting libXaw-1.0.14_1,2: .......... done [pkg-builder.dan.net.uk] `-- Installing libXft-2.3.7_1... [pkg-builder.dan.net.uk] | `-- Installing libXrender-0.9.10_2... [pkg-builder.dan.net.uk] | `-- Extracting libXrender-0.9.10_2: ....... done [pkg-builder.dan.net.uk] `-- Extracting libXft-2.3.7_1: .......... done [pkg-builder.dan.net.uk] `-- Installing png-1.6.43... [pkg-builder.dan.net.uk] `-- Extracting png-1.6.43: .......... done [pkg-builder.dan.net.uk] `-- Installing xbitmaps-1.1.2... [pkg-builder.dan.net.uk] `-- Extracting xbitmaps-1.1.2: .......... done [pkg-builder.dan.net.uk] Extracting open-motif-2.3.8_8: .......... done ==> Running trigger: fontconfig.ucl Running fc-cache to build fontconfig cache... ===== Message from freetype2-2.13.2: -- The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. If LONG_PCF_NAMES port's option was enabled, the PCF family names may include the foundry and information whether they contain wide characters. For example, "Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at run time with using pcf:no-long-family-names property, if needed. Example: FREETYPE_PROPERTIES=pcf:no-long-family-names=1 How to recreate fontconfig cache with using such environment variable, if needed: # env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed). ===> tcpview-1.0_8 depends on shared library: libXm.so.4 - found (/usr/local/lib/libXm.so.4) ===> Returning to build of tcpview-1.0_8 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for tcpview-1.0_8 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for tcpview-1.0_8 + mkdir 386-bsd-tcpdump + chmod ug+w 386-bsd-tcpdump + ln -s ../snmp.h ../filter.h ../motif.h ../tcpview.h ../ospf.h ../extract.h ../gencode.h ../ntp.h ../etherent.h ../nametoaddr.h ../etherproto.h ../savefile.h ../bootp.h ../ip_icmp.h ../addrtoname.h ../appletalk.h ../interface.h ../search.c ../gwtm2secs.c ../tcpslice.c ../tcplex.l ../tcpgram.y ../sniffer_file.c ../bpf_image.c ../bpf_filter.c ../bpf_dump.c ../optimize.c ../gencode.c ../inet.c ../etherent.c ../util.c ../savefile.c ../print-sunrpc.c ../print-fddi.c ../print-ospf.c ../print-egp.c ../print-null.c ../print-ntp.c ../print-snmp.c ../print-rip.c ../print-ppp.c ../print-sl.c ../nametoaddr.c ../print-icmp.c ../print-nfs.c ../print-bootp.c ../print-tftp.c ../print-domain.c ../print-atalk.c ../print-udp.c ../print-tcp.c ../print-arp.c ../print-ip.c ../print-ether.c ../hd.c ../addrtoname.c ../tcpdump.c 386-bsd-tcpdump + ln -s ../md-386.c 386-bsd-tcpdump/md.c + ln -s ../md-386.h 386-bsd-tcpdump/md.h + ln -s ../os-bsd.c 386-bsd-tcpdump/os.c + ln -s ../os-bsd.h 386-bsd-tcpdump/os.h + ln -s ../pcap-bpf.c 386-bsd-tcpdump/pcap.c + ln -s ../VERSION 386-bsd-tcpdump/VERSION + ln -s ../TCPVIEW_VERSION 386-bsd-tcpdump/TCPVIEW_VERSION + ln -s ../net 386-bsd-tcpdump/net + sed -e /^all:/d -e 's/^#386-bsd-tcpdump#//' Makefile + chmod ug+w 386-bsd-tcpdump/Makefile + make -C 386-bsd-tcpdump depend1 + rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + grep '^#include' tcpgram.y + grep '^#include' tcplex.l + touch version.h tokdefs.h ../mkdep -UCSLIP -DPPP -I.. -I/usr/local/include tcpdump.c addrtoname.c hd.c print-ether.c print-ip.c print-arp.c print-tcp.c print-udp.c print-atalk.c print-domain.c print-tftp.c print-bootp.c print-nfs.c print-icmp.c nametoaddr.c print-sl.c print-ppp.c print-rip.c print-snmp.c print-ntp.c print-null.c print-egp.c print-ospf.c print-fddi.c print-sunrpc.c savefile.c util.c etherent.c inet.c gencode.c optimize.c bpf_dump.c bpf_filter.c bpf_image.c sniffer_file.c tcpslice.c gwtm2secs.c search.c tcpgram.c tcplex.c rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + make -C 386-bsd-tcpdump tcpdump tcpslice cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c tcpdump.c In file included from tcpdump.c:40: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ tcpdump.c:108:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ tcpdump.c:110:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void ^ tcpdump.c:110:1: note: change return type to 'int' void ^~~~ int tcpdump.c:140:2: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration] bzero(UserOpt,10*sizeof(int)); ^ tcpdump.c:140:2: note: include the header or explicitly provide a declaration for 'bzero' tcpdump.c:143:15: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration] while ((op = getopt(argc, argv, "ac:defF:i:lnNOpqr:Rs:Stvw:WxXYzZ0123456789")) != EOF) { ^ tcpdump.c:144:6: warning: implicitly declaring library function 'isdigit' with type 'int (int)' [-Wimplicit-function-declaration] if(isdigit(op)) { ^ tcpdump.c:144:6: note: include the header or explicitly provide a declaration for 'isdigit' tcpdump.c:153:10: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] cnt = atoi(optarg); ^ tcpdump.c:263:4: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ tcpdump.c:263:4: note: include the header or explicitly provide a declaration for 'exit' tcpdump.c:276:3: warning: implicit declaration of function 'setuid' is invalid in C99 [-Wimplicit-function-declaration] setuid(getuid()); ^ tcpdump.c:276:10: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] setuid(getuid()); ^ tcpdump.c:303:11: warning: implicit declaration of function 'initdevice' is invalid in C99 [-Wimplicit-function-declaration] if_fd = initdevice(device, pflag, &linktype); ^ tcpdump.c:304:3: warning: implicit declaration of function 'lookup_net' is invalid in C99 [-Wimplicit-function-declaration] lookup_net(device, &localnet, &netmask); ^ tcpdump.c:308:3: warning: implicit declaration of function 'setuid' is invalid in C99 [-Wimplicit-function-declaration] setuid(getuid()); ^ tcpdump.c:308:10: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] setuid(getuid()); ^ tcpdump.c:347:3: warning: implicit declaration of function 'readloop' is invalid in C99 [-Wimplicit-function-declaration] readloop(cnt, if_fd, fcode, printit); ^ tcpdump.c:358:3: warning: implicit declaration of function 'wrapup' is invalid in C99 [-Wimplicit-function-declaration] wrapup(if_fd); ^ tcpdump.c:376:22: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buffer = (char *)malloc(10000); ^ tcpdump.c:376:22: note: include the header or explicitly provide a declaration for 'malloc' 17 warnings generated. bison -y -d tcpgram.y tcpgram.y:92.13-14: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 92 | %type ID | ^~ tcpgram.y:93.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 93 | %type EID | ^~~ tcpgram.y:94.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 94 | %type HID | ^~~ tcpgram.y:95.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type NUM | ^~~ mv y.tab.c tcpgram.c mv y.tab.h tokdefs.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c tcpgram.c y.tab.c:1353:16: warning: implicit declaration of function 'yylex' is invalid in C99 [-Wimplicit-function-declaration] yychar = yylex (); ^ y.tab.c:1974:35: warning: too many arguments in call to 'yyerror' yyerror (YY_("syntax error")); ~~~~~~~ ^ y.tab.c:2085:35: warning: too many arguments in call to 'yyerror' yyerror (YY_("memory exhausted")); ~~~~~~~ ^ 3 warnings generated. lex tcplex.l mv -f lex.yy.c tcplex.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c tcplex.c tcplex.l:127:14: warning: implicit declaration of function 'stoi' is invalid in C99 [-Wimplicit-function-declaration] { yylval.i = stoi(yytext); return NUM; } ^ tcplex.l:129:15: warning: implicit declaration of function 'atoin' is invalid in C99 [-Wimplicit-function-declaration] yylval.h = atoin(yytext); return HID; ^ tcplex.l:132:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] { error("bogus ethernet address %s", yytext); } ^ tcplex.l:135:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] { error("illegal token: %s\n", yytext); } ^ tcplex.l:136:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] { error("illegal char '%c'", *yytext); } ^ 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c addrtoname.c addrtoname.c:145:10: warning: cast to smaller integer type 'int' from 'u_char *' (aka 'unsigned char *') [-Wpointer-to-int-cast] switch ((int)ap & 3) { ^~~~~~~ addrtoname.c:182:30: warning: implicitly declaring library function 'calloc' with type 'void *(unsigned long, unsigned long)' [-Wimplicit-function-declaration] p->nxt = (struct hnamemem *)calloc(1, sizeof (*p)); ^ addrtoname.c:182:30: note: include the header or explicitly provide a declaration for 'calloc' addrtoname.c:197:10: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] (void)alarm(20); ^ addrtoname.c:203:17: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] u_int len = strlen(hp->h_name) + 1; ^ addrtoname.c:203:17: note: include the header or explicitly provide a declaration for 'strlen' addrtoname.c:204:23: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] p->name = (char *)malloc(len); ^ addrtoname.c:204:23: note: include the header or explicitly provide a declaration for 'malloc' addrtoname.c:205:11: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] (void)strcpy(p->name, hp->h_name); ^ addrtoname.c:205:11: note: include the header or explicitly provide a declaration for 'strcpy' addrtoname.c:277:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = *ep >> 4) ~~^~~~~~~~~~ addrtoname.c:277:8: note: place parentheses around the assignment to silence this warning if (j = *ep >> 4) ^ ( ) addrtoname.c:277:8: note: use '==' to turn this assignment into an equality comparison if (j = *ep >> 4) ^ == addrtoname.c:282:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (j = *ep >> 4) ~~^~~~~~~~~~ addrtoname.c:282:9: note: place parentheses around the assignment to silence this warning if (j = *ep >> 4) ^ ( ) addrtoname.c:282:9: note: use '==' to turn this assignment into an equality comparison if (j = *ep >> 4) ^ == addrtoname.c:361:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (sv = getservent()) { ~~~^~~~~~~~~~~~~~ addrtoname.c:361:12: note: place parentheses around the assignment to silence this warning while (sv = getservent()) { ^ ( ) addrtoname.c:361:12: note: use '==' to turn this assignment into an equality comparison while (sv = getservent()) { ^ == addrtoname.c:364:7: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcmp(sv->s_proto, "tcp") == 0) ^ addrtoname.c:364:7: note: include the header or explicitly provide a declaration for 'strcmp' addrtoname.c:449:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (ep = next_etherent(fp)) { ~~~^~~~~~~~~~~~~~~~~~~ addrtoname.c:449:12: note: place parentheses around the assignment to silence this warning while (ep = next_etherent(fp)) { ^ ( ) addrtoname.c:449:12: note: use '==' to turn this assignment into an equality comparison while (ep = next_etherent(fp)) { ^ == 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ether.c print-ether.c:57:11: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] (void)printf("%s %s %d: ", ^ print-ether.c:57:11: note: include the header or explicitly provide a declaration for 'printf' print-ether.c:136:16: warning: implicit declaration of function 'putchar' is invalid in C99 [-Wimplicit-function-declaration] if( !zflag ) putchar('\n'); ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ip.c print-ip.c:54:15: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] (void)printf("%s > %s: ", ^ print-ip.c:54:15: note: include the header or explicitly provide a declaration for 'printf' print-ip.c:76:30: warning: data argument not used by format string [-Wformat-extra-args] (void)printf("igmp dvmrp", ipaddr_string(&cp[4])); ~~~~~~~~~~~~ ^ ./addrtoname.h:72:26: note: expanded from macro 'ipaddr_string' #define ipaddr_string(p) getname((u_char *)(p)) ^ print-ip.c:117:3: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)&cp[len], (char *)&addr, sizeof(addr)); ^ print-ip.c:206:7: warning: cast to smaller integer type 'int' from 'struct ip *' [-Wpointer-to-int-cast] if ((int)ip & (sizeof(long)-1)) { ^~~~~~~ print-ip.c:211:24: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] abuf = (u_char *)malloc(snaplen); ^ print-ip.c:211:24: note: include the header or explicitly provide a declaration for 'malloc' print-ip.c:213:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)ip, (char *)abuf, min(length, snaplen)); ^ print-ip.c:268:7: warning: implicit declaration of function 'ospf_print' is invalid in C99 [-Wimplicit-function-declaration] ospf_print((struct ospfhdr *)cp, len, ip); ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-arp.c print-arp.c:48:5: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] printf("[|arp]"); ^ print-arp.c:48:5: note: include the header or explicitly provide a declaration for 'printf' 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-tcp.c print-tcp.c:206:9: warning: implicitly declaring library function 'bcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration] if (!bcmp((char *)&tha, (char *)&th->addr, ^ print-tcp.c:206:9: note: include the header or explicitly provide a declaration for 'bcmp' print-tcp.c:214:6: warning: implicitly declaring library function 'calloc' with type 'void *(unsigned long, unsigned long)' [-Wimplicit-function-declaration] calloc(1, sizeof (*th)); ^ print-tcp.c:214:6: note: include the header or explicitly provide a declaration for 'calloc' print-tcp.c:300:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)cp + 1, (char *)&mss, ^ print-tcp.c:336:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)cp + 1, (char *)&v, ^ print-tcp.c:352:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)cp + 1, (char *)&v, ^ print-tcp.c:453:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ print-tcp.c:478:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ print-tcp.c:492:30: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] t = (struct tcp_frag *)malloc(sizeof(struct tcp_frag)); ^ print-tcp.c:492:30: note: include the header or explicitly provide a declaration for 'malloc' print-tcp.c:496:7: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(data,t->data,len); ^ print-tcp.c:522:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ print-tcp.c:534:7: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free(t->data); ^ print-tcp.c:534:7: note: include the header or explicitly provide a declaration for 'free' 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-udp.c print-udp.c:132:3: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] printf("[|udp]"); ^ print-udp.c:132:3: note: include the header or explicitly provide a declaration for 'printf' print-udp.c:161:4: warning: implicit declaration of function 'sunrpcrequest_print' is invalid in C99 [-Wimplicit-function-declaration] sunrpcrequest_print(rp, length, ip); ^ print-udp.c:191:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (void)printf(" udp %d", ulen - sizeof(*up)); ~~ ^~~~~~~~~~~~~~~~~~ %lu print-udp.c:194:27: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (void)printf(" udp %d", ulen - sizeof(*up)); ~~ ^~~~~~~~~~~~~~~~~~ %lu 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-atalk.c print-atalk.c:118:26: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] (void)printf(" at-#%d %d", length); ~^ print-atalk.c:214:25: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] (void)printf(" 0x%x", data); ~~ ^~~~ %lx print-atalk.c:386:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = print_cstring(cp, ep)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:386:9: note: place parentheses around the assignment to silence this warning if (cp = print_cstring(cp, ep)) { ^ ( ) print-atalk.c:386:9: note: use '==' to turn this assignment into an equality comparison if (cp = print_cstring(cp, ep)) { ^ == print-atalk.c:389:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = print_cstring(cp, ep)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:389:10: note: place parentheses around the assignment to silence this warning if (cp = print_cstring(cp, ep)) { ^ ( ) print-atalk.c:389:10: note: use '==' to turn this assignment into an equality comparison if (cp = print_cstring(cp, ep)) { ^ == print-atalk.c:392:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = print_cstring(cp, ep)) ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:392:11: note: place parentheses around the assignment to silence this warning if (cp = print_cstring(cp, ep)) ^ ( ) print-atalk.c:392:11: note: use '==' to turn this assignment into an equality comparison if (cp = print_cstring(cp, ep)) ^ == print-atalk.c:449:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] i3 = strlen(nambuf) + 1; ^ print-atalk.c:449:9: note: include the header or explicitly provide a declaration for 'strlen' print-atalk.c:450:15: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] tp->name = strcpy(malloc((unsigned) i3), nambuf); ^ print-atalk.c:450:15: note: include the header or explicitly provide a declaration for 'strcpy' 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-domain.c print-domain.c:88:2: warning: implicit declaration of function 'putchar' is invalid in C99 [-Wimplicit-function-declaration] putchar(' '); ^ print-domain.c:89:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = *cp++) ~~^~~~~~~ print-domain.c:89:8: note: place parentheses around the assignment to silence this warning if (i = *cp++) ^ ( ) print-domain.c:89:8: note: use '==' to turn this assignment into an equality comparison if (i = *cp++) ^ == print-domain.c:125:12: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] case T_A: printf(" A"); break; ^ print-domain.c:125:12: note: include the header or explicitly provide a declaration for 'printf' print-domain.c:156:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ print-domain.c:159:2: warning: implicit declaration of function 'putchar' is invalid in C99 [-Wimplicit-function-declaration] putchar('?'); ^ print-domain.c:186:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-tftp.c print-tftp.c:62:21: warning: '/*' within block comment [-Wcomment] EBADOP, "EBADOP", /* illegal TFTP operation */ ^ print-tftp.c:91:11: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] opcode = ntohs(tp->th_opcode); ^ print-tftp.c:109:7: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] if (printfn((u_char *)tp->th_stuff, ep)) { ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-bootp.c print-bootp.c:108:23: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] printf(" xid:0x%x", xid); ~~ ^~~ %lx print-bootp.c:152:7: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] if (printfn(bp->bp_sname, ep)) { ^ print-bootp.c:160:7: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] if (printfn(bp->bp_file, ep)) { ^ print-bootp.c:180:20: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf("-#0x%x", ul); ~~ ^~ %lx print-bootp.c:247:21: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf(":0x%x", ul); ~~ ^~ %lx 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-nfs.c print-nfs.c:290:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:290:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:290:39: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:315:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[3]), ntohl(dp[2]), ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:315:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[3]), ntohl(dp[2]), ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:316:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:316:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:380:31: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); ~~~ ^~~~~~~~~~~~ %u /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:380:45: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); ~~~ ^~~~~~~~~~~~ %u /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:392:23: warning: format specifies type 'unsigned long' but the argument has type 'rpcproc_t' (aka 'unsigned int') [-Wformat] printf(" proc-%lu", rp->rm_call.cb_proc); ~~~ ^~~~~~~~~~~~~~~~~~~ %u 10 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-icmp.c print-icmp.c:73:2: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(str, "[?]"); ^ print-icmp.c:73:2: note: include the header or explicitly provide a declaration for 'strcpy' print-icmp.c:172:10: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] inet_ntoa(dp->icmp_adv[0].addr), ^ print-icmp.c:172:10: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] inet_ntoa(dp->icmp_adv[0].addr), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-icmp.c:216:48: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] (void)sprintf(buf, "address mask is 0x%08x", dp->icmp_mask); ~~~~ ^~~~~~~~~~~~~ %08lx 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c nametoaddr.c nametoaddr.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (hp = gethostbyname(name)) { ~~~^~~~~~~~~~~~~~~~~~~~~ nametoaddr.c:65:9: note: place parentheses around the assignment to silence this warning if (hp = gethostbyname(name)) { ^ ( ) nametoaddr.c:65:9: note: use '==' to turn this assignment into an equality comparison if (hp = gethostbyname(name)) { ^ == nametoaddr.c:90:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = getnetbyname(name)) ~~~^~~~~~~~~~~~~~~~~~~~ nametoaddr.c:90:9: note: place parentheses around the assignment to silence this warning if (np = getnetbyname(name)) ^ ( ) nametoaddr.c:90:9: note: use '==' to turn this assignment into an equality comparison if (np = getnetbyname(name)) ^ == nametoaddr.c:101:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] s_nametoport(name, port, proto) ^ nametoaddr.c:178:7: warning: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcasecmp(p->s, s) == 0) ^ nametoaddr.c:178:7: note: include the header or explicitly provide a declaration for 'strcasecmp' nametoaddr.c:229:21: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] e = ep = (u_char *)malloc(6); ^ nametoaddr.c:229:21: note: include the header or explicitly provide a declaration for 'malloc' nametoaddr.c:260:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (ep = next_etherent(fp)) { ~~~^~~~~~~~~~~~~~~~~~~ nametoaddr.c:260:13: note: place parentheses around the assignment to silence this warning while (ep = next_etherent(fp)) { ^ ( ) nametoaddr.c:260:13: note: use '==' to turn this assignment into an equality comparison while (ep = next_etherent(fp)) { ^ == nametoaddr.c:261:8: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcmp(ep->name, name) == 0) { ^ nametoaddr.c:261:8: note: include the header or explicitly provide a declaration for 'strcmp' nametoaddr.c:263:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(ep->addr, ap, 6); ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-sl.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ppp.c In file included from print-ppp.c:36: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-rip.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-snmp.c print-snmp.c:185:1: warning: 'static' ignored on this declaration [-Wmissing-declarations] static struct tree { ^ print-snmp.c:380:36: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] printf("[len%dasnlen); ~~ ^~~~~~~~~~~~ %lu print-snmp.c:541:7: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration] if (!memcmp(a->oid, p, strlen(a->oid))) { ^ print-snmp.c:541:7: note: include the header or explicitly provide a declaration for 'memcmp' print-snmp.c:541:25: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] if (!memcmp(a->oid, p, strlen(a->oid))) { ^ print-snmp.c:541:25: note: include the header or explicitly provide a declaration for 'strlen' print-snmp.c:564:2: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] OBJ_PRINT(o/OIDMUX, first); ^~~~~~~~~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:564:2: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:564:2: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:567:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] OBJ_PRINT(o, first); ^~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:567:7: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:567:7: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:590:13: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] (void)printfn(p, p+asnlen); ^ print-snmp.c:600:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("Seq(%d)", elem->asnlen); ~~ ^~~~~~~~~~~~ %lu print-snmp.c:618:34: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] Class[CONTEXT].Id[elem->id], elem->asnlen); ^~~~~~~~~~~~ print-snmp.c:833:33: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("[errorIndex(%d)!=0]", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:837:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] elem.data.integer); ^~~~~~~~~~~~~~~~~ print-snmp.c:839:18: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("@%d", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:916:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("[specific-trap(%d)!=0]", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:918:19: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf(" s=%d", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:987:30: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("[version(%d)!=0]", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:1002:6: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) ^ print-snmp.c:1002:6: note: include the header or explicitly provide a declaration for 'strncmp' print-snmp.c:1002:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) ^~~~~~~~~~~~~ print-snmp.c:1004:15: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] printf("C=%.*s ", elem.asnlen, elem.data.str); ~~^~ ~~~~~~~~~~~ print-snmp.c:1051:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(2); ^ print-snmp.c:1051:5: note: include the header or explicitly provide a declaration for 'exit' print-snmp.c:1088:5: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] strncpy(name,buf,sizeof(name)); ^ print-snmp.c:1088:5: note: include the header or explicitly provide a declaration for 'strncpy' print-snmp.c:1110:23: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] if(hp->subid==atoi(stp)) ^ print-snmp.c:1119:17: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] hp->subid = atoi(stp); ^ print-snmp.c:1128:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if(!strcmp(stp,"INTEGER")) ^ print-snmp.c:1128:9: note: include the header or explicitly provide a declaration for 'strcmp' print-snmp.c:1192:23: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] hp = (struct tree *)malloc(sizeof(struct tree)); ^ print-snmp.c:1192:23: note: include the header or explicitly provide a declaration for 'malloc' print-snmp.c:1195:3: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(hp->label,name); ^ print-snmp.c:1195:3: note: include the header or explicitly provide a declaration for 'strcpy' print-snmp.c:1221:84: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] err_print("Warning: node %s has 2 children with subid %d!\n",parent->label,child->subid); ~~ ^~~~~~~~~~~~ %lu 26 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ntp.c print-ntp.c:143:2: warning: implicit declaration of function 'p_sfix' is invalid in C99 [-Wimplicit-function-declaration] p_sfix(&bp->distance); ^ print-ntp.c:156:3: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] strncpy(rclock, (char *)&(bp->refid), 4); ^ print-ntp.c:156:3: note: include the header or explicitly provide a declaration for 'strncpy' print-ntp.c:178:2: warning: implicit declaration of function 'p_ntp_time' is invalid in C99 [-Wimplicit-function-declaration] p_ntp_time(&(bp->reftime)); ^ print-ntp.c:186:2: warning: implicit declaration of function 'p_ntp_delta' is invalid in C99 [-Wimplicit-function-declaration] p_ntp_delta(&(bp->org), &(bp->rec)); ^ print-ntp.c:199:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p_sfix(sfp) ^ print-ntp.c:211:1: warning: non-void function does not return a value [-Wreturn-type] } ^ print-ntp.c:215:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p_ntp_time(lfp) ^ print-ntp.c:230:24: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("%lu.%09d", i, f); ~~~~ ^ %09lu print-ntp.c:231:1: warning: non-void function does not return a value [-Wreturn-type] } ^ print-ntp.c:234:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p_ntp_delta(olfp, lfp) ^ print-ntp.c:280:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%d.%09d", i, f); ~~ ^ %ld print-ntp.c:280:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("%d.%09d", i, f); ~~~~ ^ %09lu print-ntp.c:281:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-null.c In file included from print-null.c:31: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ print-null.c:67:2: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(p, &family, sizeof(family)); ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-egp.c print-egp.c:278:22: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf("[status %d], status"); ~^ print-egp.c:298:23: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf(" [status %d], status"); ~^ print-egp.c:302:25: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf("[reach code %d], code"); ~^ print-egp.c:339:24: warning: data argument not used by format string [-Wformat-extra-args] printf(" [status]", status); ~~~~~~~~~~~ ^ 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ospf.c print-ospf.c:92:5: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Wimplicit-function-declaration] printf(" S %X age ", ^ print-ospf.c:92:5: note: include the header or explicitly provide a declaration for 'printf' print-ospf.c:93:5: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] seq); ^~~ print-ospf.c:96:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] hour, ^~~~ print-ospf.c:97:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] mins, ^~~~ print-ospf.c:98:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sec); ^~~ print-ospf.c:101:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] mins, ^~~~ print-ospf.c:102:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sec); ^~~ print-ospf.c:105:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sec); ^~~ print-ospf.c:160:21: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_option_bits, lshp->ls_options); ^~~~~~~~~~~~~~~~ print-ospf.c:201:18: warning: passing 'const struct bits[5]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_rla_flag_bits, lsap->lsa_un.un_rla.rla_flags); ^~~~~~~~~~~~~~~~~~ print-ospf.c:278:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:279:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ul & SLA_MASK_METRIC); ^~~~~~~~~~~~~~~~~~~~ print-ospf.c:294:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (ul & ASLA_MASK_TOS) >> ASLA_SHIFT_TOS, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:295:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (ul & ASLA_MASK_METRIC)); ^~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:454:19: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_option_bits, op->ospf_hello.hello_options); ^~~~~~~~~~~~~~~~ print-ospf.c:496:22: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_option_bits, op->ospf_db.db_options); ^~~~~~~~~~~~~~~~ print-ospf.c:539:11: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] type); ^~~~ 17 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-fddi.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-sunrpc.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c pcap.c In file included from pcap.c:33: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ pcap.c:72:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ pcap.c:72:3: note: include the header or explicitly provide a declaration for 'exit' pcap.c:74:18: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buf = (u_char *)malloc(bufsize); ^ pcap.c:74:18: note: include the header or explicitly provide a declaration for 'malloc' pcap.c:83:13: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if ((cc = read(if_fd, (char *)buf, (int)bufsize)) < 0) { ^ pcap.c:120:2: warning: implicit declaration of function 'wrapup' is invalid in C99 [-Wimplicit-function-declaration] wrapup(if_fd); ^ pcap.c:123:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] wrapup(fd) ^ pcap.c:127:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ pcap.c:128:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c md.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c os.c sed 's/.*/char version[] = "&";/' VERSION > version.c sed 's/.*/char tcpview_version[] = "&";/' TCPVIEW_VERSION >> version.c set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' VERSION` ; { echo '#define VERSION_MAJOR' $1 ; echo '#define VERSION_MINOR' $2 ; } > version.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c savefile.c savefile.c:126:4: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ savefile.c:126:4: note: include the header or explicitly provide a declaration for 'exit' savefile.c:176:18: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buf = (u_char *)malloc(snaplen); ^ savefile.c:176:18: note: include the header or explicitly provide a declaration for 'malloc' savefile.c:192:7: warning: implicit declaration of function 'bpf_filter' is invalid in C99 [-Wimplicit-function-declaration] if (bpf_filter(fcode, buf, h.len, h.caplen)) { ^ savefile.c:203:2: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free((char *)buf); ^ savefile.c:203:2: note: include the header or explicitly provide a declaration for 'free' savefile.c:313:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] error("archaic file format"); ^ savefile.c:332:2: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Wimplicit-function-declaration] abort(); ^ savefile.c:332:2: note: include the header or explicitly provide a declaration for 'abort' 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c util.c util.c:127:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) { ~~^~~~~~ util.c:127:11: note: place parentheses around the assignment to silence this warning while (c = *s++) { ^ ( ) util.c:127:11: note: use '==' to turn this assignment into an equality comparison while (c = *s++) { ^ == util.c:204:29: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); ~~ ^~~~~~~~~~~ %ld util.c:204:42: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); ~~~~ ^~~~~~~~~~~~ %06ld util.c:221:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~ ^ %ld util.c:221:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~~~ ^ %06ld util.c:235:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~ ^ %ld util.c:235:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~~~ ^ %06ld util.c:241:10: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~~~ util.c:241:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~~~~~~~~~~ util.c:241:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~ util.c:241:45: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~~~~~~~ util.c:290:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] cp += strlen(cp); ^ util.c:290:9: note: include the header or explicitly provide a declaration for 'strlen' util.c:342:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (src = *p++) { ~~~~^~~~~~ util.c:342:13: note: place parentheses around the assignment to silence this warning while (src = *p++) { ^ ( ) util.c:342:13: note: use '==' to turn this assignment into an equality comparison while (src = *p++) { ^ == util.c:343:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (*dst++ = *src++) ~~~~~~~^~~~~~~~ util.c:343:17: note: place parentheses around the assignment to silence this warning while (*dst++ = *src++) ^ ( ) util.c:343:17: note: use '==' to turn this assignment into an equality comparison while (*dst++ = *src++) ^ == util.c:369:6: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if (read(fd, p, (int)buf.st_size) != buf.st_size) ^ 15 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c etherent.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c inet.c inet.c:65:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ inet.c:65:3: note: include the header or explicitly provide a declaration for 'exit' inet.c:97:8: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] n = atoi(cp); ^ inet.c:113:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ inet.c:117:8: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] (void)strcpy(device, mp->ifr_name); ^ inet.c:117:8: note: include the header or explicitly provide a declaration for 'strcpy' inet.c:137:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ inet.c:154:8: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] (void)strncpy(ifr.ifr_name, device, sizeof ifr.ifr_name); ^ inet.c:154:8: note: include the header or explicitly provide a declaration for 'strncpy' inet.c:171:8: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void)close(fd); ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c gencode.c gencode.c:130:3: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration] bzero((char *)cp->m, size); ^ gencode.c:130:3: note: include the header or explicitly provide a declaration for 'bzero' gencode.c:219:2: warning: implicit declaration of function 'lex_init' is invalid in C99 [-Wimplicit-function-declaration] lex_init(buf ? buf : ""); ^ gencode.c:228:2: warning: implicit declaration of function 'yyparse' is invalid in C99 [-Wimplicit-function-declaration] yyparse(); ^ gencode.c:650:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1026:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1292:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1421:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1453:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c optimize.c optimize.c:179:2: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration] bzero((char *)levels, n_blocks * sizeof(*levels)); ^ optimize.c:179:2: note: include the header or explicitly provide a declaration for 'bzero' optimize.c:330:2: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Wimplicit-function-declaration] abort(); ^ optimize.c:330:2: note: include the header or explicitly provide a declaration for 'abort' optimize.c:1044:3: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)p->pred->val, (char *)b->val, sizeof(b->val)); ^ optimize.c:1045:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (p = p->next) { ~~^~~~~~~~~ optimize.c:1045:12: note: place parentheses around the assignment to silence this warning while (p = p->next) { ^ ( ) optimize.c:1045:12: note: use '==' to turn this assignment into an equality comparison while (p = p->next) { ^ == optimize.c:1178:8: warning: implicit declaration of function 'ffs' is invalid in C99 [-Wimplicit-function-declaration] k = ffs(x) - 1; ^ optimize.c:1466:3: warning: implicit declaration of function 'sappend' is invalid in C99 [-Wimplicit-function-declaration] sappend(s, tmp); ^ optimize.c:1623:2: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free((void *)vnode_base); ^ optimize.c:1623:2: note: include the header or explicitly provide a declaration for 'free' optimize.c:1717:28: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] blocks = (struct block **)malloc(n * sizeof(*blocks)); ^ optimize.c:1717:28: note: include the header or explicitly provide a declaration for 'malloc' 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c bpf_dump.c bpf_dump.c:68:53: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%lu %lu %lu %lu\n", insn->code, ~~~ ^~~~~~~~~~ %hu bpf_dump.c:69:32: warning: format specifies type 'unsigned long' but the argument has type 'u_char' (aka 'unsigned char') [-Wformat] insn->jt, insn->jf, insn->k); ^~~~~~~~ bpf_dump.c:69:42: warning: format specifies type 'unsigned long' but the argument has type 'u_char' (aka 'unsigned char') [-Wformat] insn->jt, insn->jf, insn->k); ^~~~~~~~ bpf_dump.c:76:64: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] insn->code, insn->jt, insn->jf, insn->k); ^~~~~~~ bpf_dump.c:84:22: warning: implicit declaration of function 'bpf_image' is invalid in C99 [-Wimplicit-function-declaration] puts(bpf_image(insn, i)); ^ bpf_dump.c:84:22: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] puts(bpf_image(insn, i)); ^~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:279:23: note: passing argument to parameter here int puts(const char *); ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c bpf_filter.c bpf_filter.c:203:4: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Wimplicit-function-declaration] abort(); ^ bpf_filter.c:203:4: note: include the header or explicitly provide a declaration for 'abort' bpf_filter.c:232:9: warning: implicit declaration of function 'ntohl' is invalid in C99 [-Wimplicit-function-declaration] A = ntohl(*(long *)(p + k)); ^ bpf_filter.c:249:8: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] A = EXTRACT_SHORT(&p[k]); ^ bpf_filter.c:62:36: note: expanded from macro 'EXTRACT_SHORT' #define EXTRACT_SHORT(p) ((u_short)ntohs(*(u_short *)p)) ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c bpf_image.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c version.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c sniffer_file.c sniffer_file.c:259:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ sniffer_file.c:259:5: note: include the header or explicitly provide a declaration for 'exit' sniffer_file.c:367:5: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] write(2,".",1); ^ sniffer_file.c:370:5: warning: implicit declaration of function 'ether_if_print' is invalid in C99 [-Wimplicit-function-declaration] ether_if_print(sp, tvp, length, caplen); ^ sniffer_file.c:389:19: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buf = (u_char *)malloc(snaplen); ^ sniffer_file.c:389:19: note: include the header or explicitly provide a declaration for 'malloc' sniffer_file.c:393:9: warning: implicit declaration of function 'sniff_next_packet' is invalid in C99 [-Wimplicit-function-declaration] while(sniff_next_packet(&h, buf) == 0) { ^ sniffer_file.c:394:9: warning: implicit declaration of function 'bpf_filter' is invalid in C99 [-Wimplicit-function-declaration] if (bpf_filter(fcode,buf,h.len,h.caplen)) { ^ sniffer_file.c:400:3: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free((char *)buf); ^ sniffer_file.c:400:3: note: include the header or explicitly provide a declaration for 'free' 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c hd.c hd.c:28:30: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat] sprintf (tmp, "%04lx ", pos++ * LS); ~~~~~ ^~~~~~~~~~ %04x 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o tcpdump tcpdump.o tcpgram.o tcplex.o addrtoname.o print-ether.o print-ip.o print-arp.o print-tcp.o print-udp.o print-atalk.o print-domain.o print-tftp.o print-bootp.o print-nfs.o print-icmp.o nametoaddr.o print-sl.o print-ppp.o print-rip.o print-snmp.o print-ntp.o print-null.o print-egp.o print-ospf.o print-fddi.o print-sunrpc.o pcap.o md.o os.o savefile.o util.o etherent.o inet.o gencode.o optimize.o bpf_dump.o bpf_filter.o bpf_image.o version.o sniffer_file.o hd.o -ll cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c tcpslice.c In file included from tcpslice.c:37: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ tcpslice.c:102:15: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration] while ((op = getopt(argc, argv, "dRrtw:")) != EOF) ^ tcpslice.c:134:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] error( "only one of -R, -r, or -t can be specified" ); ^ tcpslice.c:185:8: warning: implicit declaration of function 'isatty' is invalid in C99 [-Wimplicit-function-declaration] isatty( fileno(stdout) ) ) ^ tcpslice.c:226:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ tcpslice.c:226:3: note: include the header or explicitly provide a declaration for 'exit' tcpslice.c:259:19: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] result.tv_sec = atoi( time_string ); ^ tcpslice.c:375:4: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] error("bad date format %s, problem starting at %s", ^ tcpslice.c:384:9: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] val = atoi(t_start); ^ tcpslice.c:442:9: warning: implicit declaration of function 'sf_find_end' is invalid in C99 [-Wimplicit-function-declaration] if ( ! sf_find_end( first_time, last_time ) ) ^ tcpslice.c:443:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] error( "couldn't find final packet in file %s", filename ); ^ tcpslice.c:460:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] error( "bad tcpdump file %s", filename ); ^ tcpslice.c:462:18: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buf = (u_char *)malloc((unsigned)snaplen); ^ tcpslice.c:462:18: note: include the header or explicitly provide a declaration for 'malloc' tcpslice.c:467:2: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free((char *)buf); ^ tcpslice.c:467:2: note: include the header or explicitly provide a declaration for 'free' tcpslice.c:494:3: warning: implicit declaration of function 'error' is invalid in C99 [-Wimplicit-function-declaration] error( "bad tcpdump file %s", filename ); ^ tcpslice.c:508:9: warning: implicit declaration of function 'sf_find_end' is invalid in C99 [-Wimplicit-function-declaration] if ( ! sf_find_end( &file_start_time, &file_stop_time ) ) ^ tcpslice.c:519:7: warning: implicit declaration of function 'sf_timestamp_less_than' is invalid in C99 [-Wimplicit-function-declaration] if ( sf_timestamp_less_than( start_time, &file_start_time ) ) ^ tcpslice.c:526:2: warning: implicit declaration of function 'sf_find_packet' is invalid in C99 [-Wimplicit-function-declaration] sf_find_packet( &file_start_time, start_pos, ^ tcpslice.c:595:26: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sprintf( buf, "%d.%d", timestamp->tv_sec, timestamp->tv_usec ); ~~ ^~~~~~~~~~~~~~~~~ %ld tcpslice.c:595:45: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] sprintf( buf, "%d.%d", timestamp->tv_sec, timestamp->tv_usec ); ~~ ^~~~~~~~~~~~~~~~~~ %ld tcpslice.c:608:26: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] t->tm_min, t->tm_sec, timestamp->tv_usec ); ^~~~~~~~~~~~~~~~~~ 20 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c gwtm2secs.c gwtm2secs.c:55:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c search.c search.c:281:18: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buf = (u_char *)malloc((unsigned) num_bytes); ^ search.c:281:18: note: include the header or explicitly provide a declaration for 'malloc' search.c:347:2: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free( (char *) buf ); ^ search.c:347:2: note: include the header or explicitly provide a declaration for 'free' 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o tcpslice tcpslice.o gwtm2secs.o search.o savefile.o bpf_filter.o md.o util.o + mkdir 386-bsd-tcpview + chmod ug+w 386-bsd-tcpview + ln -s ../telnet.c ../generic.c ../bgp.c ../hex.c ../snmp.h ../filter.h ../motif.h ../tcpview.h ../ospf.h ../extract.h ../gencode.h ../ntp.h ../etherent.h ../nametoaddr.h ../etherproto.h ../savefile.h ../bootp.h ../ip_icmp.h ../addrtoname.h ../appletalk.h ../interface.h ../tcplex.l ../tcpgram.y ../detail-snmp.c ../detail-domain.c ../detail-icmp.c ../detail-rip.c ../capture.c ../inet.c ../text.c ../filter-stream.c ../getservent.c ../bpf_filter.c ../print.c ../util.c ../hd.c ../sniffer_file.c ../tv_etherent.c ../savefile.c ../nametoaddr.c ../optimize.c ../gencode.c ../print-null.c ../print-sl.c ../print-ppp.c ../print-fddi.c ../detail-udp.c ../detail-tcp.c ../detail-ip.c ../detail-arp.c ../detail-ether.c ../tv_addrtoname.c ../print-egp.c ../print-ospf.c ../print-domain.c ../print-ntp.c ../print-snmp.c ../print-bootp.c ../print-icmp.c ../print-rip.c ../print-sunrpc.c ../print-tftp.c ../print-atalk.c ../print-nfs.c ../print-udp.c ../print-tcp.c ../print-ip.c ../print-arp.c ../print-ether.c ../filter-dialog.c ../dialogs.c ../motifutils.c ../callbacks.c ../tcpview.c 386-bsd-tcpview + ln -s ../md-386.c 386-bsd-tcpview/md.c + ln -s ../md-386.h 386-bsd-tcpview/md.h + ln -s ../os-bsd.c 386-bsd-tcpview/os.c + ln -s ../os-bsd.h 386-bsd-tcpview/os.h + ln -s ../pcap-bpf.c 386-bsd-tcpview/pcap.c + ln -s ../VERSION 386-bsd-tcpview/VERSION + ln -s ../TCPVIEW_VERSION 386-bsd-tcpview/TCPVIEW_VERSION + sed -e /^all:/d -e 's/^#386-bsd-tcpview#//' Makefile + chmod ug+w 386-bsd-tcpview/Makefile + make -C 386-bsd-tcpview depend2 + rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + grep '^#include' tcpgram.y + grep '^#include' tcplex.l + touch version.h tokdefs.h ../mkdep -UCSLIP -DPPP -I.. -I/usr/local/include tcpview.c callbacks.c motifutils.c dialogs.c filter-dialog.c print-ether.c print-arp.c print-ip.c print-tcp.c print-udp.c print-nfs.c print-atalk.c print-tftp.c print-sunrpc.c print-rip.c print-icmp.c print-bootp.c print-snmp.c print-ntp.c print-domain.c print-ospf.c print-egp.c tv_addrtoname.c detail-ether.c detail-arp.c detail-ip.c detail-tcp.c detail-udp.c print-fddi.c print-ppp.c print-sl.c print-null.c gencode.c optimize.c nametoaddr.c savefile.c tv_etherent.c sniffer_file.c hd.c util.c print.c bpf_filter.c getservent.c filter-stream.c text.c inet.c capture.c detail-rip.c detail-icmp.c detail-domain.c detail-snmp.c tcpgram.c tcplex.c rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + make -C 386-bsd-tcpview 'DEFINES=-UCSLIP -DPPP -DTCPVIEW' tcpview cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tcpview.c tcpview.c:193:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(argc, argv) ^ tcpview.c:193:1: note: change return type to 'int' void main(argc, argv) ^~~~ int tcpview.c:328:22: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buffer = (char *)malloc(10000); ^ tcpview.c:328:22: note: include the header or explicitly provide a declaration for 'malloc' tcpview.c:329:7: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] hd( buffer, sp, length ); ^~~~~~ tcpview.c:319:19: note: passing argument to parameter here void hd(u_char *, u_char *, int); ^ 3 warnings generated. sed 's/.*/char version[] = "&";/' VERSION > version.c sed 's/.*/char tcpview_version[] = "&";/' TCPVIEW_VERSION >> version.c set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' VERSION` ; { echo '#define VERSION_MAJOR' $1 ; echo '#define VERSION_MINOR' $2 ; } > version.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c version.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c motifutils.c motifutils.c:216:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit( 0 ); ^ motifutils.c:216:3: note: include the header or explicitly provide a declaration for 'exit' motifutils.c:733:14: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'Boolean' (aka 'char') declared in a previous prototype [-Wknr-promoted-parameter] Boolean state; /* initial state */ ^ ./motif.h:35:53: note: previous declaration is here Widget CreateToggle( Widget, char *, char *, Boolean, int, void (*)() ); ^ motifutils.c:766:14: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'Boolean' (aka 'char') declared in a previous prototype [-Wknr-promoted-parameter] Boolean state; /* initial state */ ^ ./motif.h:36:51: note: previous declaration is here Widget CreateSimpleToggle (Widget, char *, Boolean, int, void (*)(), caddr_t); ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c dialogs.c dialogs.c:116:5: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] system( str ); ^ dialogs.c:117:5: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink( filename ); ^ dialogs.c:130:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] int i = (int)data; ^~~~~~~~~ dialogs.c:204:47: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); ~~ ^~~~~~~~~~~~~~~ %lu dialogs.c:204:63: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); ~~ ^~~~~~~~~~~~ %lu dialogs.c:601:47: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); ~~ ^~~~~~~~~~~~~~~ %lu dialogs.c:601:63: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); ~~ ^~~~~~~~~~~~ %lu 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c filter-dialog.c filter-dialog.c:182:7: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] d = (int)data>>1; ^~~~~~~~~ filter-dialog.c:185:7: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] if( (int)data & 1 ) { /* address 2 */ ^~~~~~~~~ filter-dialog.c:218:17: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] SetLabel(name[(int)data], str); ^~~~~~~~~ filter-dialog.c:231:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] int d = (int)data; ^~~~~~~~~ filter-dialog.c:235:7: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] n = (int)data & 1; ^~~~~~~~~ filter-dialog.c:276:7: warning: implicit declaration of function 's_nametoport' is invalid in C99 [-Wimplicit-function-declaration] if( s_nametoport(string,&port,&proto) ) ^ filter-dialog.c:279:19: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] Filter.port = atoi(string); ^ filter-dialog.c:324:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] int d = (int)data; ^~~~~~~~~ filter-dialog.c:339:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] int d = (int)data; ^~~~~~~~~ filter-dialog.c:368:17: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] SetLabel(name[(int)data<<1], Filter.addr[d].name1); ^~~~~~~~~ filter-dialog.c:369:18: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] SetLabel(name[((int)data<<1)+1], Filter.addr[d].name2); ^~~~~~~~~ filter-dialog.c:378:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] int d = (int)data; ^~~~~~~~~ filter-dialog.c:393:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] int d = (int)data; ^~~~~~~~~ filter-dialog.c:411:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ filter-dialog.c:432:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] int d = (int)data; ^~~~~~~~~ filter-dialog.c:496:31: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] addr_and_callback, (caddr_t)i); ^~~~~~~~~~ filter-dialog.c:500:31: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] addr_and_callback, (caddr_t)i); ^~~~~~~~~~ filter-dialog.c:503:26: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] addr_level_callback, (caddr_t)i); ^~~~~~~~~~ filter-dialog.c:506:66: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] name[i+i] = CreateSimpleButton( rc2, str, addr_name_callback,(caddr_t)(i+i) ); ^~~~~~~~~~~~~~ filter-dialog.c:509:24: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] addr_dir_callback, (caddr_t)i); ^~~~~~~~~~ filter-dialog.c:512:69: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] name[i+i+1] = CreateSimpleButton( rc2, str, addr_name_callback, (caddr_t)(i+i+1) ); ^~~~~~~~~~~~~~~~ filter-dialog.c:514:32: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] addr_include_callback, (caddr_t)i); ^~~~~~~~~~ 22 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ether.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-arp.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ip.c print-ip.c:55:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-ip.c:56:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst)); ^~~~~~~~~~ print-ip.c:76:30: warning: data argument not used by format string [-Wformat-extra-args] (void)printf("igmp dvmrp", ipaddr_string(&cp[4])); ~~~~~~~~~~~~ ^ print-ip.c:206:7: warning: cast to smaller integer type 'int' from 'struct ip *' [-Wpointer-to-int-cast] if ((int)ip & (sizeof(long)-1)) { ^~~~~~~ print-ip.c:209:24: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] abuf = (u_char *)malloc(MAX_SNAPLEN); ^ print-ip.c:209:24: note: include the header or explicitly provide a declaration for 'malloc' print-ip.c:213:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)ip, (char *)abuf, min(length, snaplen)); ^ print-ip.c:256:47: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-ip.c:257:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst)); ^~~~~~~~~~ print-ip.c:268:7: warning: implicit declaration of function 'ospf_print' is invalid in C99 [-Wimplicit-function-declaration] ospf_print((struct ospfhdr *)cp, len, ip); ^ print-ip.c:278:47: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-ip.c:279:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst)); ^~~~~~~~~~ print-ip.c:295:47: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-ip.c:296:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst)); ^~~~~~~~~~ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-tcp.c print-tcp.c:163:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), tcpport_string(sport), ^~~~~~~~~~ print-tcp.c:164:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), tcpport_string(dport)); ^~~~~~~~~~ print-tcp.c:206:9: warning: implicitly declaring library function 'bcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration] if (!bcmp((char *)&tha, (char *)&th->addr, ^ print-tcp.c:206:9: note: include the header or explicitly provide a declaration for 'bcmp' print-tcp.c:214:6: warning: implicitly declaring library function 'calloc' with type 'void *(unsigned long, unsigned long)' [-Wimplicit-function-declaration] calloc(1, sizeof (*th)); ^ print-tcp.c:214:6: note: include the header or explicitly provide a declaration for 'calloc' print-tcp.c:300:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)cp + 1, (char *)&mss, ^ print-tcp.c:336:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)cp + 1, (char *)&v, ^ print-tcp.c:352:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)cp + 1, (char *)&v, ^ print-tcp.c:453:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ print-tcp.c:478:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ print-tcp.c:492:30: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] t = (struct tcp_frag *)malloc(sizeof(struct tcp_frag)); ^ print-tcp.c:492:30: note: include the header or explicitly provide a declaration for 'malloc' print-tcp.c:496:7: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(data,t->data,len); ^ print-tcp.c:522:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else { ^ print-tcp.c:534:7: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free(t->data); ^ print-tcp.c:534:7: note: include the header or explicitly provide a declaration for 'free' print-tcp.c:572:3: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration] bzero(&tcp_seq_hash[0],sizeof(struct tcp_seq_hash)*TSEQ_HASHSIZE); ^ print-tcp.c:572:3: note: include the header or explicitly provide a declaration for 'bzero' 14 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-udp.c print-udp.c:161:4: warning: implicit declaration of function 'sunrpcrequest_print' is invalid in C99 [-Wimplicit-function-declaration] sunrpcrequest_print(rp, length, ip); ^ print-udp.c:172:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), udpport_string(sport), ^~~~~~~~~~ print-udp.c:173:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), udpport_string(dport)); ^~~~~~~~~~ print-udp.c:191:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (void)printf(" udp %d", ulen - sizeof(*up)); ~~ ^~~~~~~~~~~~~~~~~~ %lu print-udp.c:194:27: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (void)printf(" udp %d", ulen - sizeof(*up)); ~~ ^~~~~~~~~~~~~~~~~~ %lu 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-nfs.c print-nfs.c:110:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-nfs.c:111:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), ^~~~~~~~~~ print-nfs.c:117:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-nfs.c:119:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), ^~~~~~~~~~ print-nfs.c:229:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-nfs.c:231:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), ^~~~~~~~~~ print-nfs.c:235:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-nfs.c:237:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), ^~~~~~~~~~ print-nfs.c:290:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:290:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:290:39: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:315:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[3]), ntohl(dp[2]), ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:315:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[3]), ntohl(dp[2]), ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:316:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:316:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] ntohl(dp[1]), ntohl(dp[0])); ^~~~~~~~~~~~ /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:380:31: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); ~~~ ^~~~~~~~~~~~ %u /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:380:45: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); ~~~ ^~~~~~~~~~~~ %u /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ print-nfs.c:392:23: warning: format specifies type 'unsigned long' but the argument has type 'rpcproc_t' (aka 'unsigned int') [-Wformat] printf(" proc-%lu", rp->rm_call.cb_proc); ~~~ ^~~~~~~~~~~~~~~~~~~ %u 18 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-atalk.c print-atalk.c:118:26: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] (void)printf(" at-#%d %d", length); ~^ print-atalk.c:214:25: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] (void)printf(" 0x%x", data); ~~ ^~~~ %lx print-atalk.c:386:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = print_cstring(cp, ep)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:386:9: note: place parentheses around the assignment to silence this warning if (cp = print_cstring(cp, ep)) { ^ ( ) print-atalk.c:386:9: note: use '==' to turn this assignment into an equality comparison if (cp = print_cstring(cp, ep)) { ^ == print-atalk.c:389:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = print_cstring(cp, ep)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:389:10: note: place parentheses around the assignment to silence this warning if (cp = print_cstring(cp, ep)) { ^ ( ) print-atalk.c:389:10: note: use '==' to turn this assignment into an equality comparison if (cp = print_cstring(cp, ep)) { ^ == print-atalk.c:392:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = print_cstring(cp, ep)) ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:392:11: note: place parentheses around the assignment to silence this warning if (cp = print_cstring(cp, ep)) ^ ( ) print-atalk.c:392:11: note: use '==' to turn this assignment into an equality comparison if (cp = print_cstring(cp, ep)) ^ == print-atalk.c:449:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] i3 = strlen(nambuf) + 1; ^ print-atalk.c:449:9: note: include the header or explicitly provide a declaration for 'strlen' print-atalk.c:450:15: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] tp->name = strcpy(malloc((unsigned) i3), nambuf); ^ print-atalk.c:450:15: note: include the header or explicitly provide a declaration for 'strcpy' 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-tftp.c print-tftp.c:62:21: warning: '/*' within block comment [-Wcomment] EBADOP, "EBADOP", /* illegal TFTP operation */ ^ print-tftp.c:91:11: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] opcode = ntohs(tp->th_opcode); ^ print-tftp.c:109:7: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] if (printfn((u_char *)tp->th_stuff, ep)) { ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-sunrpc.c print-sunrpc.c:95:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-sunrpc.c:97:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), ^~~~~~~~~~ print-sunrpc.c:101:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-sunrpc.c:103:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst), ^~~~~~~~~~ 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-rip.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-icmp.c print-icmp.c:71:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-icmp.c:72:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst)); ^~~~~~~~~~ print-icmp.c:73:2: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(str, "[?]"); ^ print-icmp.c:73:2: note: include the header or explicitly provide a declaration for 'strcpy' print-icmp.c:107:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&oip->ip_dst), ^~~~~~~~~~~ print-icmp.c:113:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&oip->ip_dst), ^~~~~~~~~~~ print-icmp.c:119:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&oip->ip_dst), ^~~~~~~~~~~ print-icmp.c:172:10: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] inet_ntoa(dp->icmp_adv[0].addr), ^ print-icmp.c:172:10: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] inet_ntoa(dp->icmp_adv[0].addr), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-icmp.c:216:48: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] (void)sprintf(buf, "address mask is 0x%08x", dp->icmp_mask); ~~~~ ^~~~~~~~~~~~~ %08lx 9 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-bootp.c print-bootp.c:108:23: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] printf(" xid:0x%x", xid); ~~ ^~~ %lx print-bootp.c:152:7: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] if (printfn(bp->bp_sname, ep)) { ^ print-bootp.c:160:7: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] if (printfn(bp->bp_file, ep)) { ^ print-bootp.c:180:20: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf("-#0x%x", ul); ~~ ^~ %lx print-bootp.c:247:21: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf(":0x%x", ul); ~~ ^~ %lx 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-snmp.c print-snmp.c:185:1: warning: 'static' ignored on this declaration [-Wmissing-declarations] static struct tree { ^ print-snmp.c:380:36: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] printf("[len%dasnlen); ~~ ^~~~~~~~~~~~ %lu print-snmp.c:541:7: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration] if (!memcmp(a->oid, p, strlen(a->oid))) { ^ print-snmp.c:541:7: note: include the header or explicitly provide a declaration for 'memcmp' print-snmp.c:541:25: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] if (!memcmp(a->oid, p, strlen(a->oid))) { ^ print-snmp.c:541:25: note: include the header or explicitly provide a declaration for 'strlen' print-snmp.c:564:2: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] OBJ_PRINT(o/OIDMUX, first); ^~~~~~~~~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:564:2: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:564:2: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:567:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] OBJ_PRINT(o, first); ^~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:567:7: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:567:7: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' } while (objp = objp->next_peer); \ ^ print-snmp.c:590:13: warning: implicit declaration of function 'printfn' is invalid in C99 [-Wimplicit-function-declaration] (void)printfn(p, p+asnlen); ^ print-snmp.c:600:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("Seq(%d)", elem->asnlen); ~~ ^~~~~~~~~~~~ %lu print-snmp.c:618:34: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] Class[CONTEXT].Id[elem->id], elem->asnlen); ^~~~~~~~~~~~ print-snmp.c:833:33: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("[errorIndex(%d)!=0]", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:837:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] elem.data.integer); ^~~~~~~~~~~~~~~~~ print-snmp.c:839:18: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("@%d", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:916:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("[specific-trap(%d)!=0]", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:918:19: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf(" s=%d", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:987:30: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("[version(%d)!=0]", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld print-snmp.c:1002:6: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) ^ print-snmp.c:1002:6: note: include the header or explicitly provide a declaration for 'strncmp' print-snmp.c:1002:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) ^~~~~~~~~~~~~ print-snmp.c:1004:15: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] printf("C=%.*s ", elem.asnlen, elem.data.str); ~~^~ ~~~~~~~~~~~ print-snmp.c:1051:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(2); ^ print-snmp.c:1051:5: note: include the header or explicitly provide a declaration for 'exit' print-snmp.c:1088:5: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] strncpy(name,buf,sizeof(name)); ^ print-snmp.c:1088:5: note: include the header or explicitly provide a declaration for 'strncpy' print-snmp.c:1110:23: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] if(hp->subid==atoi(stp)) ^ print-snmp.c:1119:17: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] hp->subid = atoi(stp); ^ print-snmp.c:1128:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if(!strcmp(stp,"INTEGER")) ^ print-snmp.c:1128:9: note: include the header or explicitly provide a declaration for 'strcmp' print-snmp.c:1192:23: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] hp = (struct tree *)malloc(sizeof(struct tree)); ^ print-snmp.c:1192:23: note: include the header or explicitly provide a declaration for 'malloc' print-snmp.c:1195:3: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(hp->label,name); ^ print-snmp.c:1195:3: note: include the header or explicitly provide a declaration for 'strcpy' 25 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ntp.c print-ntp.c:143:2: warning: implicit declaration of function 'p_sfix' is invalid in C99 [-Wimplicit-function-declaration] p_sfix(&bp->distance); ^ print-ntp.c:156:3: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] strncpy(rclock, (char *)&(bp->refid), 4); ^ print-ntp.c:156:3: note: include the header or explicitly provide a declaration for 'strncpy' print-ntp.c:178:2: warning: implicit declaration of function 'p_ntp_time' is invalid in C99 [-Wimplicit-function-declaration] p_ntp_time(&(bp->reftime)); ^ print-ntp.c:186:2: warning: implicit declaration of function 'p_ntp_delta' is invalid in C99 [-Wimplicit-function-declaration] p_ntp_delta(&(bp->org), &(bp->rec)); ^ print-ntp.c:199:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p_sfix(sfp) ^ print-ntp.c:211:1: warning: non-void function does not return a value [-Wreturn-type] } ^ print-ntp.c:215:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p_ntp_time(lfp) ^ print-ntp.c:230:24: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("%lu.%09d", i, f); ~~~~ ^ %09lu print-ntp.c:231:1: warning: non-void function does not return a value [-Wreturn-type] } ^ print-ntp.c:234:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p_ntp_delta(olfp, lfp) ^ print-ntp.c:280:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%d.%09d", i, f); ~~ ^ %ld print-ntp.c:280:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf("%d.%09d", i, f); ~~~~ ^ %09lu print-ntp.c:281:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-domain.c print-domain.c:89:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = *cp++) ~~^~~~~~~ print-domain.c:89:8: note: place parentheses around the assignment to silence this warning if (i = *cp++) ^ ( ) print-domain.c:89:8: note: use '==' to turn this assignment into an equality comparison if (i = *cp++) ^ == print-domain.c:156:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ print-domain.c:186:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ospf.c print-ospf.c:93:5: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] seq); ^~~ print-ospf.c:96:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] hour, ^~~~ print-ospf.c:97:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] mins, ^~~~ print-ospf.c:98:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sec); ^~~ print-ospf.c:101:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] mins, ^~~~ print-ospf.c:102:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sec); ^~~ print-ospf.c:105:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sec); ^~~ print-ospf.c:160:21: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_option_bits, lshp->ls_options); ^~~~~~~~~~~~~~~~ print-ospf.c:201:18: warning: passing 'const struct bits[5]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_rla_flag_bits, lsap->lsa_un.un_rla.rla_flags); ^~~~~~~~~~~~~~~~~~ print-ospf.c:278:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:279:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] ul & SLA_MASK_METRIC); ^~~~~~~~~~~~~~~~~~~~ print-ospf.c:294:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (ul & ASLA_MASK_TOS) >> ASLA_SHIFT_TOS, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:295:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] (ul & ASLA_MASK_METRIC)); ^~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:353:20: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-ospf.c:354:20: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst)); ^~~~~~~~~~ print-ospf.c:454:19: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_option_bits, op->ospf_hello.hello_options); ^~~~~~~~~~~~~~~~ print-ospf.c:496:22: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ospf_print_bits(ospf_option_bits, op->ospf_db.db_options); ^~~~~~~~~~~~~~~~ print-ospf.c:539:11: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] type); ^~~~ 18 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-egp.c print-egp.c:227:23: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_src), ^~~~~~~~~~ print-egp.c:228:23: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] ipaddr_string(&ip->ip_dst)); ^~~~~~~~~~ print-egp.c:278:22: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf("[status %d], status"); ~^ print-egp.c:298:23: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf(" [status %d], status"); ~^ print-egp.c:302:25: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf("[reach code %d], code"); ~^ print-egp.c:339:24: warning: data argument not used by format string [-Wformat-extra-args] printf(" [status]", status); ~~~~~~~~~~~ ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tv_addrtoname.c tv_addrtoname.c:416:10: warning: cast to smaller integer type 'int' from 'u_char *' (aka 'unsigned char *') [-Wpointer-to-int-cast] switch ((int)ap & 3) { ^~~~~~~ tv_addrtoname.c:498:12: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration] (void)alarm(20); ^ tv_addrtoname.c:640:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] u_short port; ^ ./addrtoname.h:31:29: note: previous declaration is here char *etherproto_str(u_short, int); ^ tv_addrtoname.c:668:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] u_short pro; ^ ./addrtoname.h:36:29: note: previous declaration is here char *ipproto_string(u_short); ^ tv_addrtoname.c:725:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] u_short port; ^ ./addrtoname.h:32:29: note: previous declaration is here char *tcpport_string(u_short); ^ tv_addrtoname.c:737:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] u_short port; ^ ./addrtoname.h:33:29: note: previous declaration is here char *udpport_string(u_short); ^ tv_addrtoname.c:753:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (sv = GetServent()) { ~~~^~~~~~~~~~~~~~ tv_addrtoname.c:753:13: note: place parentheses around the assignment to silence this warning while (sv = GetServent()) { ^ ( ) tv_addrtoname.c:753:13: note: use '==' to turn this assignment into an equality comparison while (sv = GetServent()) { ^ == tv_addrtoname.c:779:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (mf = next_manufent(fp)) { ~~~^~~~~~~~~~~~~~~~~~~ tv_addrtoname.c:779:15: note: place parentheses around the assignment to silence this warning while (mf = next_manufent(fp)) { ^ ( ) tv_addrtoname.c:779:15: note: use '==' to turn this assignment into an equality comparison while (mf = next_manufent(fp)) { ^ == tv_addrtoname.c:783:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fp); ^ tv_addrtoname.c:789:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (e = next_etherent(fp)) { ~~^~~~~~~~~~~~~~~~~~~ tv_addrtoname.c:789:14: note: place parentheses around the assignment to silence this warning while (e = next_etherent(fp)) { ^ ( ) tv_addrtoname.c:789:14: note: use '==' to turn this assignment into an equality comparison while (e = next_etherent(fp)) { ^ == tv_addrtoname.c:793:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fp); ^ 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-ether.c detail-ether.c:68:10: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] i % 60,tvp->tv_usec/100); ^~~~~~~~~~~~~~~~ detail-ether.c:69:53: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf(" Frame size is %d (%d captured) bytes\n",Phdr->len,Phdr->caplen); ~~ ^~~~~~~~~ %lu detail-ether.c:69:63: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf(" Frame size is %d (%d captured) bytes\n",Phdr->len,Phdr->caplen); ~~ ^~~~~~~~~~~~ %lu 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-arp.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-ip.c detail-ip.c:46:7: warning: cast to smaller integer type 'int' from 'struct ip *' [-Wpointer-to-int-cast] if ((int)ip & (sizeof(long)-1)) { ^~~~~~~ detail-ip.c:48:24: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] abuf = (u_char *)malloc(MAX_SNAPLEN); ^ detail-ip.c:48:24: note: include the header or explicitly provide a declaration for 'malloc' detail-ip.c:49:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)ip, (char *)abuf, Phdr->caplen-Offset); ^ detail-ip.c:74:5: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(buf,Precedence[prec]); ^ detail-ip.c:74:5: note: include the header or explicitly provide a declaration for 'strcpy' detail-ip.c:76:18: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] if( *buf ) strcat(buf,", "); ^ detail-ip.c:76:18: note: include the header or explicitly provide a declaration for 'strcat' detail-ip.c:157:5: warning: implicit declaration of function 'detail_icmp' is invalid in C99 [-Wimplicit-function-declaration] detail_icmp((struct icmp *)cp, len); ^ detail-ip.c:269:7: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)&cp[len], (char *)&addr, sizeof(addr)); ^ detail-ip.c:290:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if( strcmp(str1,str2) ) ^ detail-ip.c:290:9: note: include the header or explicitly provide a declaration for 'strcmp' 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-tcp.c detail-tcp.c:85:3: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(&tp->th_seq,&seq,4); ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-udp.c detail-udp.c:152:5: warning: implicit declaration of function 'detail_rip' is invalid in C99 [-Wimplicit-function-declaration] detail_rip((u_char *)(up + 1), length); ^ detail-udp.c:154:5: warning: implicit declaration of function 'detail_domain' is invalid in C99 [-Wimplicit-function-declaration] detail_domain((u_char *)(up + 1), length); ^ detail-udp.c:156:5: warning: implicit declaration of function 'detail_snmp' is invalid in C99 [-Wimplicit-function-declaration] detail_snmp((u_char *)(up + 1), length); ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-fddi.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ppp.c In file included from print-ppp.c:36: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-sl.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-null.c In file included from print-null.c:31: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ print-null.c:67:2: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(p, &family, sizeof(family)); ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c gencode.c gencode.c:100:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern eprintv(char *cp, va_list ap); ~~~~~~ ^ gencode.c:130:3: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration] bzero((char *)cp->m, size); ^ gencode.c:130:3: note: include the header or explicitly provide a declaration for 'bzero' gencode.c:219:2: warning: implicit declaration of function 'lex_init' is invalid in C99 [-Wimplicit-function-declaration] lex_init(buf ? buf : ""); ^ gencode.c:228:2: warning: implicit declaration of function 'yyparse' is invalid in C99 [-Wimplicit-function-declaration] yyparse(); ^ gencode.c:650:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1026:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1292:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1421:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ gencode.c:1453:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 9 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c optimize.c optimize.c:179:2: warning: implicitly declaring library function 'bzero' with type 'void (void *, unsigned long)' [-Wimplicit-function-declaration] bzero((char *)levels, n_blocks * sizeof(*levels)); ^ optimize.c:179:2: note: include the header or explicitly provide a declaration for 'bzero' optimize.c:330:2: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Wimplicit-function-declaration] abort(); ^ optimize.c:330:2: note: include the header or explicitly provide a declaration for 'abort' optimize.c:1044:3: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy((char *)p->pred->val, (char *)b->val, sizeof(b->val)); ^ optimize.c:1045:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (p = p->next) { ~~^~~~~~~~~ optimize.c:1045:12: note: place parentheses around the assignment to silence this warning while (p = p->next) { ^ ( ) optimize.c:1045:12: note: use '==' to turn this assignment into an equality comparison while (p = p->next) { ^ == optimize.c:1178:8: warning: implicit declaration of function 'ffs' is invalid in C99 [-Wimplicit-function-declaration] k = ffs(x) - 1; ^ optimize.c:1466:3: warning: implicit declaration of function 'sappend' is invalid in C99 [-Wimplicit-function-declaration] sappend(s, tmp); ^ optimize.c:1623:2: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free((void *)vnode_base); ^ optimize.c:1623:2: note: include the header or explicitly provide a declaration for 'free' optimize.c:1717:28: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] blocks = (struct block **)malloc(n * sizeof(*blocks)); ^ optimize.c:1717:28: note: include the header or explicitly provide a declaration for 'malloc' 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c nametoaddr.c nametoaddr.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (hp = gethostbyname(name)) { ~~~^~~~~~~~~~~~~~~~~~~~~ nametoaddr.c:65:9: note: place parentheses around the assignment to silence this warning if (hp = gethostbyname(name)) { ^ ( ) nametoaddr.c:65:9: note: use '==' to turn this assignment into an equality comparison if (hp = gethostbyname(name)) { ^ == nametoaddr.c:90:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (np = getnetbyname(name)) ~~~^~~~~~~~~~~~~~~~~~~~ nametoaddr.c:90:9: note: place parentheses around the assignment to silence this warning if (np = getnetbyname(name)) ^ ( ) nametoaddr.c:90:9: note: use '==' to turn this assignment into an equality comparison if (np = getnetbyname(name)) ^ == nametoaddr.c:101:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] s_nametoport(name, port, proto) ^ nametoaddr.c:178:7: warning: implicitly declaring library function 'strcasecmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcasecmp(p->s, s) == 0) ^ nametoaddr.c:178:7: note: include the header or explicitly provide a declaration for 'strcasecmp' nametoaddr.c:229:21: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] e = ep = (u_char *)malloc(6); ^ nametoaddr.c:229:21: note: include the header or explicitly provide a declaration for 'malloc' nametoaddr.c:260:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (ep = next_etherent(fp)) { ~~~^~~~~~~~~~~~~~~~~~~ nametoaddr.c:260:13: note: place parentheses around the assignment to silence this warning while (ep = next_etherent(fp)) { ^ ( ) nametoaddr.c:260:13: note: use '==' to turn this assignment into an equality comparison while (ep = next_etherent(fp)) { ^ == nametoaddr.c:261:8: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if (strcmp(ep->name, name) == 0) { ^ nametoaddr.c:261:8: note: include the header or explicitly provide a declaration for 'strcmp' nametoaddr.c:263:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(ep->addr, ap, 6); ^ 8 warnings generated. bison -y -d tcpgram.y tcpgram.y:92.13-14: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 92 | %type ID | ^~ tcpgram.y:93.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 93 | %type EID | ^~~ tcpgram.y:94.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 94 | %type HID | ^~~ tcpgram.y:95.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type NUM | ^~~ mv y.tab.c tcpgram.c mv y.tab.h tokdefs.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tcpgram.c y.tab.c:1353:16: warning: implicit declaration of function 'yylex' is invalid in C99 [-Wimplicit-function-declaration] yychar = yylex (); ^ y.tab.c:1974:35: warning: too many arguments in call to 'yyerror' yyerror (YY_("syntax error")); ~~~~~~~ ^ y.tab.c:2085:35: warning: too many arguments in call to 'yyerror' yyerror (YY_("memory exhausted")); ~~~~~~~ ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c savefile.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c md.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c os.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tv_etherent.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c sniffer_file.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c hd.c hd.c:28:30: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat] sprintf (tmp, "%04lx ", pos++ * LS); ~~~~~ ^~~~~~~~~~ %04x 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c util.c util.c:127:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) { ~~^~~~~~ util.c:127:11: note: place parentheses around the assignment to silence this warning while (c = *s++) { ^ ( ) util.c:127:11: note: use '==' to turn this assignment into an equality comparison while (c = *s++) { ^ == util.c:204:29: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); ~~ ^~~~~~~~~~~ %ld util.c:204:42: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); ~~~~ ^~~~~~~~~~~~ %06ld util.c:221:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~ ^ %ld util.c:221:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~~~ ^ %06ld util.c:235:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~ ^ %ld util.c:235:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (void)printf("%d.%06d ", i,j); ~~~~ ^ %06ld util.c:241:10: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~~~ util.c:241:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~~~~~~~~~~ util.c:241:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~ util.c:241:45: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); ^~~~~~~~~~~~ util.c:290:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] cp += strlen(cp); ^ util.c:290:9: note: include the header or explicitly provide a declaration for 'strlen' 12 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print.c print.c:45:5: warning: incompatible redeclaration of library function 'printf' [-Wincompatible-library-redeclaration] int printf(char *fmt, ...) ^ print.c:45:5: note: 'printf' is a builtin with type 'int (const char *, ...)' print.c:62:9: warning: implicitly declaring library function 'vsprintf' with type 'int (char *, const char *, struct __va_list_tag *)' [-Wimplicit-function-declaration] (void)vsprintf(StrPtr,fmt,args); ^ print.c:62:9: note: include the header or explicitly provide a declaration for 'vsprintf' print.c:64:5: warning: implicit declaration of function 'fprintf' is invalid in C99 [-Wimplicit-function-declaration] fprintf(Xfile,"%s",StrPtr); ^ print.c:64:5: warning: declaration of built-in function 'fprintf' requires inclusion of the header [-Wbuiltin-requires-header] print.c:79:5: warning: implicit declaration of function 'fprintf' is invalid in C99 [-Wimplicit-function-declaration] fprintf(Xfile,"%s",s ); ^ print.c:80:3: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy( StrPtr, s ); ^ print.c:80:3: note: include the header or explicitly provide a declaration for 'strcpy' print.c:81:13: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] StrPtr += strlen( s ); ^ print.c:81:13: note: include the header or explicitly provide a declaration for 'strlen' print.c:89:5: warning: implicit declaration of function 'fprintf' is invalid in C99 [-Wimplicit-function-declaration] fprintf(Xfile,"%c",c ); ^ print.c:99:5: warning: implicit declaration of function 'fprintf' is invalid in C99 [-Wimplicit-function-declaration] fprintf(Xfile,"%c",x ); ^ 9 warnings generated. lex tcplex.l mv -f lex.yy.c tcplex.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tcplex.c tcplex.l:127:14: warning: implicit declaration of function 'stoi' is invalid in C99 [-Wimplicit-function-declaration] { yylval.i = stoi(yytext); return NUM; } ^ tcplex.l:129:15: warning: implicit declaration of function 'atoin' is invalid in C99 [-Wimplicit-function-declaration] yylval.h = atoin(yytext); return HID; ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c bpf_filter.c bpf_filter.c:203:4: warning: implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Wimplicit-function-declaration] abort(); ^ bpf_filter.c:203:4: note: include the header or explicitly provide a declaration for 'abort' bpf_filter.c:232:9: warning: implicit declaration of function 'ntohl' is invalid in C99 [-Wimplicit-function-declaration] A = ntohl(*(long *)(p + k)); ^ bpf_filter.c:249:8: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] A = EXTRACT_SHORT(&p[k]); ^ bpf_filter.c:62:36: note: expanded from macro 'EXTRACT_SHORT' #define EXTRACT_SHORT(p) ((u_short)ntohs(*(u_short *)p)) ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c getservent.c getservent.c:106:17: warning: implicit declaration of function 'htons' is invalid in C99 [-Wimplicit-function-declaration] serv.s_port = htons((u_short)atoi(p)); ^ getservent.c:135:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (p = GetServent()) { ~~^~~~~~~~~~~~~~ getservent.c:135:11: note: place parentheses around the assignment to silence this warning while (p = GetServent()) { ^ ( ) getservent.c:135:11: note: use '==' to turn this assignment into an equality comparison while (p = GetServent()) { ^ == 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c filter-stream.c filter-stream.c:201:29: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] (void)sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); ~~ ^~~~~~~~~~~~~~ %ld filter-stream.c:201:44: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] (void)sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); ~~ ^~~~~~~~~~~~~~~ %ld filter-stream.c:316:22: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] filter_direction = (int)data; ^~~~~~~~~ filter-stream.c:372:20: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] Timeout.tv_sec = atoi(string); ^ filter-stream.c:373:22: warning: implicit declaration of function 'atof' is invalid in C99 [-Wimplicit-function-declaration] Timeout.tv_usec = (atof(string) - (double)(Timeout.tv_sec))*1000000; ^ filter-stream.c:380:23: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); ~~ ^~~~~~~~~~~~~~ %ld filter-stream.c:380:38: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); ~~ ^~~~~~~~~~~~~~~ %ld filter-stream.c:517:13: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] (void)system( str ); ^ filter-stream.c:518:7: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink( Xfilename ); ^ filter-stream.c:524:2: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink( Xfilename ); ^ filter-stream.c:527:2: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] system( str ); ^ 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c text.c text.c:72:5: warning: implicit declaration of function 'xperror' is invalid in C99 [-Wimplicit-function-declaration] xperror( filename ); ^ text.c:78:5: warning: implicit declaration of function 'xperror' is invalid in C99 [-Wimplicit-function-declaration] xperror( "fwrite" ); ^ text.c:99:3: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] system( str ); ^ text.c:100:3: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink( filename ); ^ text.c:202:3: warning: implicit declaration of function 'FillMenu' is invalid in C99 [-Wimplicit-function-declaration] FillMenu( menu_widget, "Save As...", save_callback ); ^ 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c pcap.c In file included from pcap.c:33: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ pcap.c:72:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ pcap.c:72:3: note: include the header or explicitly provide a declaration for 'exit' pcap.c:74:18: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] buf = (u_char *)malloc(bufsize); ^ pcap.c:74:18: note: include the header or explicitly provide a declaration for 'malloc' pcap.c:83:13: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if ((cc = read(if_fd, (char *)buf, (int)bufsize)) < 0) { ^ pcap.c:120:2: warning: implicit declaration of function 'wrapup' is invalid in C99 [-Wimplicit-function-declaration] wrapup(if_fd); ^ pcap.c:123:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] wrapup(fd) ^ pcap.c:127:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ pcap.c:128:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c inet.c inet.c:65:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ inet.c:65:3: note: include the header or explicitly provide a declaration for 'exit' inet.c:97:8: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] n = atoi(cp); ^ inet.c:113:2: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ inet.c:117:8: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] (void)strcpy(device, mp->ifr_name); ^ inet.c:117:8: note: include the header or explicitly provide a declaration for 'strcpy' inet.c:137:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ inet.c:154:8: warning: implicitly declaring library function 'strncpy' with type 'char *(char *, const char *, unsigned long)' [-Wimplicit-function-declaration] (void)strncpy(ifr.ifr_name, device, sizeof ifr.ifr_name); ^ inet.c:154:8: note: include the header or explicitly provide a declaration for 'strncpy' inet.c:171:8: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void)close(fd); ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c capture.c capture.c:68:7: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] char *malloc( int ); ^ capture.c:68:7: note: 'malloc' is a builtin with type 'void *(unsigned long)' capture.c:114:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] sprintf(str,"%d",num); ~~ ^~~ %ld capture.c:263:35: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] MaxBytes = max(DEFAULT_SNAPLEN, atoi(string)); ^ capture.c:278:15: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] TimeLimit = atoi(string); ^ capture.c:293:20: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] NumberOfFrames = atoi(string); ^ capture.c:434:5: warning: implicit declaration of function 'wrapup' is invalid in C99 [-Wimplicit-function-declaration] wrapup(if_fd); ^ capture.c:436:3: warning: implicit declaration of function 'sf_write_end' is invalid in C99 [-Wimplicit-function-declaration] sf_write_end(); ^ capture.c:437:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ capture.c:437:3: note: include the header or explicitly provide a declaration for 'exit' capture.c:462:5: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink( StderrName ); ^ capture.c:467:3: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink( TempName ); ^ capture.c:479:13: warning: cast to smaller integer type 'pid_t' (aka 'int') from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] if( kill( (pid_t)data, SIGINT ) < 0 ) ^~~~~~~~~~~ capture.c:495:15: warning: cast to smaller integer type 'pid_t' (aka 'int') from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] (void)kill( (pid_t)data, SIGINT ); ^~~~~~~~~~~ capture.c:536:3: warning: implicit declaration of function 'update_fstr' is invalid in C99 [-Wimplicit-function-declaration] update_fstr(&Filter); ^ capture.c:540:14: warning: implicit declaration of function 'fork' is invalid in C99 [-Wimplicit-function-declaration] if( (pid = fork()) < 0 ) { ^ capture.c:556:13: warning: implicit declaration of function 'initdevice' is invalid in C99 [-Wimplicit-function-declaration] if_fd = initdevice( Device, pflag, &Linktype ); ^ capture.c:557:5: warning: implicit declaration of function 'lookup_net' is invalid in C99 [-Wimplicit-function-declaration] lookup_net( Device, &localnet, &netmask ); ^ capture.c:567:5: warning: implicit declaration of function 'readloop' is invalid in C99 [-Wimplicit-function-declaration] readloop( NumberOfFrames, if_fd, bpf, sf_write ); ^ capture.c:575:64: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'pid_t' (aka 'int') [-Wint-to-pointer-cast] TimeoutID = XtAddTimeOut( TimeLimit*1000, timer_expired, (caddr_t)pid ); ^~~~~~~~~~~~ capture.c:586:63: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'pid_t' (aka 'int') [-Wint-to-pointer-cast] XtAddCallback( Work, XmNokCallback,stop_capture_callback, (caddr_t)pid ); ^~~~~~~~~~~~ 19 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c callbacks.c callbacks.c:186:6: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] hd(buffer,p->buf,p->hdr.caplen); ^~~~~~ callbacks.c:83:17: note: passing argument to parameter here void hd(u_char *, u_char *, int); ^ callbacks.c:365:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while (p=p->next); ~^~~~~~~~ callbacks.c:365:15: note: place parentheses around the assignment to silence this warning } while (p=p->next); ^ ( ) callbacks.c:365:15: note: use '==' to turn this assignment into an equality comparison } while (p=p->next); ^ == callbacks.c:426:38: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] fprintf(stderr,"%d packets read\n",Packet_Count); ~~ ^~~~~~~~~~~~ %lu callbacks.c:535:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while( p = p->next ); ~~^~~~~~~~~ callbacks.c:535:14: note: place parentheses around the assignment to silence this warning } while( p = p->next ); ^ ( ) callbacks.c:535:14: note: use '==' to turn this assignment into an equality comparison } while( p = p->next ); ^ == callbacks.c:568:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while( p = p->next ); ~~^~~~~~~~~ callbacks.c:568:14: note: place parentheses around the assignment to silence this warning } while( p = p->next ); ^ ( ) callbacks.c:568:14: note: use '==' to turn this assignment into an equality comparison } while( p = p->next ); ^ == callbacks.c:571:5: warning: implicit declaration of function 'sf_write_end' is invalid in C99 [-Wimplicit-function-declaration] sf_write_end(); ^ callbacks.c:612:5: warning: implicit declaration of function 'sf_write_end' is invalid in C99 [-Wimplicit-function-declaration] sf_write_end(); ^ callbacks.c:638:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] } while( p = p->next ); ~~^~~~~~~~~ callbacks.c:638:14: note: place parentheses around the assignment to silence this warning } while( p = p->next ); ^ ( ) callbacks.c:638:14: note: use '==' to turn this assignment into an equality comparison } while( p = p->next ); ^ == callbacks.c:708:37: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] sprintf(buf," %d/%d packets ",Current_Packets,Packet_Count); ~~ ^~~~~~~~~~~~~~~ %lu callbacks.c:708:53: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] sprintf(buf," %d/%d packets ",Current_Packets,Packet_Count); ~~ ^~~~~~~~~~~~ %lu callbacks.c:720:8: warning: assigning to 'char *' from 'const char *const' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] str2 = sys_errlist[errno]; ^ ~~~~~~~~~~~~~~~~~~ 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-rip.c detail-rip.c:68:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] if( strcmp(str1,str2) ) ^ detail-rip.c:68:9: note: include the header or explicitly provide a declaration for 'strcmp' 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-icmp.c detail-icmp.c:33:16: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] PROTO_STR, Phdr->caplen - Offset, len); ^~~~~~~~~~~~~~~~~~~~~ detail-icmp.c:65:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:71:58: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf("%s[%d bytes of optional data]\n", PROTO_STR, data_bytes); ~~ ^~~~~~~~~~ %lu detail-icmp.c:103:57: warning: format specifies type 'char *' but the argument has type 'u_char' (aka 'unsigned char') [-Wformat] printf("%sCode = %s (Unknown Code)\n", PROTO_STR, icmp->icmp_code); ~~ ^~~~~~~~~~~~~~~ %hhu detail-icmp.c:106:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:112:5: warning: implicit declaration of function 'detail_ip' is invalid in C99 [-Wimplicit-function-declaration] detail_ip(&icmp->icmp_ip); ^ detail-icmp.c:117:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:146:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:148:5: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] inet_ntoa(icmp->icmp_gwaddr)); ^ detail-icmp.c:148:5: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] inet_ntoa(icmp->icmp_gwaddr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ detail-icmp.c:165:47: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:185:47: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf("%sRouter Address = %s\n", PROTO_STR, inet_ntoa(ra->addr)); ~~ ^~~~~~~~~~~~~~~~~~~ %d detail-icmp.c:187:50: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf("%sPreference Level = %lX\n", PROTO_STR, ntohl(ra->preference)); ~~~ ^~~~~~~~~~~~~~~~~~~~~ %X /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ detail-icmp.c:196:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:214:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:225:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:243:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:262:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:276:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] printf("%sChecksum = %lX\n", PROTO_STR, checksum); ~~~ ^~~~~~~~ %hX detail-icmp.c:281:48: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] printf("%sAddress Mask = %s\n", PROTO_STR, inet_addr(icmp->icmp_mask)); ^ detail-icmp.c:281:48: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf("%sAddress Mask = %s\n", PROTO_STR, inet_addr(icmp->icmp_mask)); ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %d 21 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-domain.c detail-domain.c:126:14: warning: implicit declaration of function 'dn_expand' is invalid in C99 [-Wimplicit-function-declaration] if ((n = dn_expand(msg, eom, cp, name, sizeof(name))) <= 0) ^ detail-domain.c:150:2: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] strcpy(type_buf, "A"); ^ detail-domain.c:150:2: note: include the header or explicitly provide a declaration for 'strcpy' detail-domain.c:260:30: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] sprintf(ulong_buf, "%u", value); ~~ ^~~~~ %lu detail-domain.c:294:30: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] (void)sprintf(p, "%u (", v); ~~ ^ %lu detail-domain.c:295:10: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] p += strlen(p); ^ detail-domain.c:295:10: note: include the header or explicitly provide a declaration for 'strlen' detail-domain.c:311:45: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] (void)sprintf(p, "%d day%s", PLURALIZE(v)); ~~ ^ %lu detail-domain.c:309:22: note: expanded from macro 'PLURALIZE' #define PLURALIZE(x) x, (x == 1) ? "" : "s" ^ detail-domain.c:331:11: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration] (void)strcat(p, ")"); ^ detail-domain.c:331:11: note: include the header or explicitly provide a declaration for 'strcat' detail-domain.c:376:12: warning: implicit declaration of function '_getshort' is invalid in C99 [-Wimplicit-function-declaration] type = _getshort(cp); ^ detail-domain.c:398:10: warning: implicit declaration of function '_getlong' is invalid in C99 [-Wimplicit-function-declaration] ul = _getlong(cp); ^ detail-domain.c:430:13: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memcpy((char *)&inaddr, cp, sizeof(inaddr)); ^ detail-domain.c:430:13: note: include the header or explicitly provide a declaration for 'memcpy' detail-domain.c:432:55: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] printf(" Internet address = %s\n", inet_ntoa(inaddr)); ^ detail-domain.c:432:55: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf(" Internet address = %s\n", inet_ntoa(inaddr)); ~~ ^~~~~~~~~~~~~~~~~ %d detail-domain.c:434:53: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] printf(" Internet address = %s", inet_ntoa(inaddr)); ^ detail-domain.c:434:53: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf(" Internet address = %s", inet_ntoa(inaddr)); ~~ ^~~~~~~~~~~~~~~~~ %d detail-domain.c:548:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (n = *cp) { ~~^~~~~ detail-domain.c:548:15: note: place parentheses around the assignment to silence this warning if (n = *cp) { ^ ( ) detail-domain.c:548:15: note: use '==' to turn this assignment into an equality comparison if (n = *cp) { ^ == detail-domain.c:555:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (n = *cp) { ~~^~~~~ detail-domain.c:555:15: note: place parentheses around the assignment to silence this warning if (n = *cp) { ^ ( ) detail-domain.c:555:15: note: use '==' to turn this assignment into an equality comparison if (n = *cp) { ^ == detail-domain.c:591:31: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] printf(" Serial: %u\n", ul); ~~ ^~ %lu detail-domain.c:674:24: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] printf(" %s:\n", inet_ntoa(inaddr)); ^ detail-domain.c:674:24: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf(" %s:\n", inet_ntoa(inaddr)); ~~ ^~~~~~~~~~~~~~~~~ %d detail-domain.c:930:13: warning: implicit declaration of function '_getshort' is invalid in C99 [-Wimplicit-function-declaration] type = _getshort(cp); ^ 20 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-snmp.c detail-snmp.c:108:37: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf(" VarBind (%d bytes)\n",elem.asnlen); ~~ ^~~~~~~~~~~ %lu detail-snmp.c:169:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("Request ID: %d\n",elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld detail-snmp.c:199:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("Error Index = %d\n", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld detail-snmp.c:277:34: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("Specific Trap = %d\n", elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld detail-snmp.c:351:24: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("Version: %d",elem.data.integer); ~~ ^~~~~~~~~~~~~~~~~ %ld detail-snmp.c:371:27: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] printf("Community = \"%.*s\"\n", elem.asnlen,elem.data.str); ~~^~ ~~~~~~~~~~~ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -o tcpview tcpview.o version.o motifutils.o dialogs.o filter-dialog.o print-ether.o print-arp.o print-ip.o print-tcp.o print-udp.o print-nfs.o print-atalk.o print-tftp.o print-sunrpc.o print-rip.o print-icmp.o print-bootp.o print-snmp.o print-ntp.o print-domain.o print-ospf.o print-egp.o tv_addrtoname.o detail-ether.o detail-arp.o detail-ip.o detail-tcp.o detail-udp.o print-fddi.o print-ppp.o print-sl.o print-null.o gencode.o optimize.o nametoaddr.o tcpgram.o savefile.o md.o os.o tv_etherent.o sniffer_file.o hd.o util.o print.o tcplex.o bpf_filter.o getservent.o filter-stream.o text.o pcap.o inet.o capture.o callbacks.o detail-rip.o detail-icmp.o detail-domain.o detail-snmp.o -L/usr/local/lib -lXm -lXt -lX11 -ll + make -C 386-bsd-tcpview FILTERS cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c bgp.c bgp.c:65:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ bgp.c:102:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(0); ^ bgp.c:102:2: note: include the header or explicitly provide a declaration for 'exit' bgp.c:132:23: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] version,asn,htime,id,auth); ^~ bgp.c:172:20: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] printf("\t%s ",inet_ntoa(htonl(ip))); ^ bgp.c:172:20: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf("\t%s ",inet_ntoa(htonl(ip))); ~~ ^~~~~~~~~~~~~~~~~~~~ %d bgp.c:384:31: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] printf("NEXT_HOP: %s ",inet_ntoa(htonl(ip))); ^ bgp.c:384:31: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] printf("NEXT_HOP: %s ",inet_ntoa(htonl(ip))); ~~ ^~~~~~~~~~~~~~~~~~~~ %d bgp.c:405:6: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if(hexread(&b,1)) ^ bgp.c:414:7: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if( hexread(&buf,2) ) ^ bgp.c:423:7: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if( hexread(&buf,4) ) ^ 10 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c hex.c hex.c:68:5: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(bp,buf,num); ^ hex.c:76:3: warning: implicit declaration of function 'bcopy' is invalid in C99 [-Wimplicit-function-declaration] bcopy(bp,ptr,len); ^ hex.c:97:15: warning: implicitly declaring library function 'isspace' with type 'int (int)' [-Wimplicit-function-declaration] while(*s && isspace(*s)) s++; /* eat white space */ ^ hex.c:97:15: note: include the header or explicitly provide a declaration for 'isspace' hex.c:121:12: warning: implicitly declaring library function 'tolower' with type 'int (int)' [-Wimplicit-function-declaration] str[0] = tolower(str[0]); ^ hex.c:121:12: note: include the header or explicitly provide a declaration for 'tolower' 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o BGP bgp.o hex.o cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c generic.c generic.c:58:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ generic.c:99:6: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if(hexread(&b,1)) ^ generic.c:108:7: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if( hexread(&buf,2) ) ^ generic.c:109:13: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] return( ntohs(buf) ); ^ generic.c:117:7: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if( hexread(&buf,4) ) ^ generic.c:118:13: warning: implicit declaration of function 'ntohl' is invalid in C99 [-Wimplicit-function-declaration] return( ntohl(buf) ); ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o generic generic.o hex.o cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c telnet.c telnet.c:60:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ telnet.c:322:6: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if(hexread(&b,1)) ^ telnet.c:331:7: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if( hexread(&buf,2) ) ^ telnet.c:332:13: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] return( ntohs(buf) ); ^ telnet.c:340:7: warning: implicit declaration of function 'hexread' is invalid in C99 [-Wimplicit-function-declaration] if( hexread(&buf,4) ) ^ telnet.c:341:13: warning: implicit declaration of function 'ntohl' is invalid in C99 [-Wimplicit-function-declaration] return( ntohl(buf) ); ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o telnet telnet.o hex.o =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for tcpview-1.0_8 ===> Generating temporary packing list mkdir -p /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview mkdir -p /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -s -m 555 -c 386-bsd-tcpview/tcpview /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/bin + install -s -m 555 -c 386-bsd-tcpview/BGP /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -s -m 555 -c 386-bsd-tcpview/telnet /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -s -m 555 -c 386-bsd-tcpview/generic /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -m 0644 -c 386-bsd-tcpview/../DOC/hosts /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview + install -m 0644 -c 386-bsd-tcpview/../DOC/manuf /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview + install -m 444 -c 386-bsd-tcpview/../DOC/tcpview.1 /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/share/man/man1/tcpview.1 install -m 0644 /wrkdirs/usr/ports/net/tcpview/work/tcpview-1.0/DOC/Tcpview /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/X11/app-defaults ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-05T04:30:24+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=268db869e8' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for tcpview-1.0_8 ===> Building tcpview-1.0_8 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for tcpview-1.0_8 build of net/tcpview | tcpview-1.0_8 ended at Fri Apr 5 05:31:29 BST 2024 build time: 00:01:05