Diff of the two buildlogs: -- --- b1/build.log 2024-12-17 01:18:58.371412570 +0000 +++ b2/build.log 2024-12-17 01:21:32.600391378 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jan 18 19:39:14 -12 2026 -I: pbuilder-time-stamp: 1768808354 +I: Current time: Tue Dec 17 15:19:01 +14 2024 +I: pbuilder-time-stamp: 1734398341 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -40,52 +40,84 @@ dpkg-source: info: applying remove-chown.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/598883/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 17 01:19 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='02661fa192fe44f4b354752837817b82' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='598883' - PS1='# ' - PS2='> ' + INVOCATION_ID=57780f22e3b3481dbd46edf15e79417d + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2965783 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.LZ7qsDCk/pbuilderrc_6iuw --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.LZ7qsDCk/b1 --logfile b1/build.log nast_0.2.0-12.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.LZ7qsDCk/pbuilderrc_LX1o --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.LZ7qsDCk/b2 --logfile b2/build.log nast_0.2.0-12.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos5-amd64 6.11.5+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1~bpo12+1 (2024-11-11) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/598883/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -170,7 +202,7 @@ Get: 41 http://deb.debian.org/debian unstable/main amd64 libnet1-dev amd64 1.3+dfsg-0.1 [118 kB] Get: 42 http://deb.debian.org/debian unstable/main amd64 libpcap0.8t64 amd64 1.10.5-1 [169 kB] Get: 43 http://deb.debian.org/debian unstable/main amd64 libpcap0.8-dev amd64 1.10.5-1 [284 kB] -Fetched 22.8 MB in 0s (60.9 MB/s) +Fetched 22.8 MB in 1s (23.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sgml-base. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19965 files and directories currently installed.) @@ -358,7 +390,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/nast-0.2.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../nast_0.2.0-12_source.changes +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/nast-0.2.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../nast_0.2.0-12_source.changes dpkg-buildpackage: info: source package nast dpkg-buildpackage: info: source version 0.2.0-12 dpkg-buildpackage: info: source distribution unstable @@ -430,7 +466,7 @@ Results are: PLATFORM ...... : x86_64 unknown -O.S. .......... : Linux 6.11.5+bpo-amd64 (ionos5-amd64) +O.S. .......... : Linux 6.1.0-28-amd64 (i-capture-the-hostname) COMPILER ...... : gcc CFLAGS ........ : -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 CPPFLAGS ...... : -Wdate-time -D_FORTIFY_SOURCE=2 @@ -443,7 +479,7 @@ Type 'make' to compile or 'make help' to show accepted options. dh_auto_build - make -j42 + make -j20 make[1]: Entering directory '/build/reproducible-path/nast-0.2.0' gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c main.c -o main.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c dev.c -o dev.o @@ -465,53 +501,36 @@ gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c igmp.c -o igmp.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c bcount.c -o bcount.o gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c error.c -o error.o -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_menu.c -o ncurses/n_menu.o -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_scroll_win.c -o ncurses/n_scroll_win.o -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_comm.c -o ncurses/n_comm.o -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_stream.c -o ncurses/n_stream.o -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_conn.c -o ncurses/n_conn.o -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_rst.c -o ncurses/n_rst.o -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_nast.c -o ncurses/n_nast.o -ncurses/n_menu.c: In function 'nmenu': -ncurses/n_menu.c:97:8: warning: variable 'ris' set but not used [-Wunused-but-set-variable] - 97 | int ris; - | ^~~ -ncurses/n_menu.c: In function 'analyzer_menu': -ncurses/n_menu.c:783:21: warning: pointer targets in passing argument 1 of 'fgw' differ in signedness [-Wpointer-sign] - 783 | fgw (dev); - | ^~~ - | | - | char * -In file included from ncurses/n_nast.h:20, - from ncurses/n_menu.c:20: -ncurses/../include/nast.h:65:18: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 65 | int fgw (u_char *dev); - | ~~~~~~~~^~~ -ncurses/n_menu.c:944:24: warning: pointer targets in passing argument 1 of 'mhport' differ in signedness [-Wpointer-sign] - 944 | mhport (dev,plist_p,lr); - | ^~~ - | | - | char * -ncurses/../include/nast.h:70:21: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 70 | int mhport (u_char *dev, libnet_plist_t *plist_p, int lg); - | ~~~~~~~~^~~ -ncurses/n_menu.c:961:22: warning: pointer targets in passing argument 1 of 'flink' differ in signedness [-Wpointer-sign] - 961 | flink(dev); - | ^~~ - | | - | char * -ncurses/../include/nast.h:67:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 67 | int flink (u_char *dev); - | ~~~~~~~~^~~ -ncurses/n_menu.c:978:22: warning: pointer targets in passing argument 1 of 'mport' differ in signedness [-Wpointer-sign] - 978 | mport(dev,ports,lr); - | ^~~ - | | - | char * -ncurses/../include/nast.h:69:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 69 | int mport (u_char *dev, u_short ports[], int lg); - | ~~~~~~~~^~~ +tcp.c: In function 'handle_TCP': +tcp.c:101:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 101 | buf = (char *) (packet + offset + size_ip + size_tcp); + | ^ +tcp.c:106:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 106 | data_sniffo (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from tcp.c:20: +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +tcp.c:112:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] + 112 | print_ascii_hex (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); + | ~~~~~~^~~~~~~~~ +tcp.c:124:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 124 | data_sniffo (buf, size_buf, ldd); + | ^~~ + | | + | u_char * {aka unsigned char *} main.c: In function 'main': +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ main.c:309:4: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 309 | if(dev == NULL) dev = pcap_lookupdev(errbuf); | ^~ @@ -545,20 +564,84 @@ include/nast.h:67:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 67 | int flink (u_char *dev); | ~~~~~~~~^~~ -ncurses/n_menu.c: In function 's_select': -ncurses/n_menu.c:1542:24: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] - 1542 | if(currfil==0) - | ^~ -ncurses/n_menu.c:1460:9: note: 'currfil' declared here - 1460 | char currfil[200]; - | ^~~~~~~ -ncurses/n_menu.c: In function 'r_select': -ncurses/n_menu.c:1671:24: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] - 1671 | if(currfil==0) - | ^~ -ncurses/n_menu.c:1562:9: note: 'currfil' declared here - 1562 | char currfil[200]; - | ^~~~~~~ +icmp.c: In function 'handle_ICMP': +icmp.c:206:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 206 | buf = (char *) (packet + size_ip + size_icmp + offset); + | ^ +icmp.c:211:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 211 | data_sniffo (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from icmp.c:20: +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +icmp.c:218:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] + 218 | print_ascii_hex (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); + | ~~~~~~^~~~~~~~~ +icmp.c:226:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 226 | data_sniffo (buf, size_buf, ldd); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +prom.c: In function 'psearch': +prom.c:171:23: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] + 171 | sprintf (ip, "%d.%d.%d.%d", uphost[i].ip[0], uphost[i].ip[1], uphost[i].ip[2], uphost[i].ip[3]); + | ^~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/features.h:510, + from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, + from /usr/include/stdio.h:28, + from /usr/include/libnet.h:53, + from include/nast.h:23, + from prom.c:20: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) + | ^~~~~ +prom.c:172:95: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness [-Wpointer-sign] + 172 | n_print ("princ",ln,1,lg,"%s (%s) --------->", ip, libnet_addr2name4(inet_addr(ip), LIBNET_RESOLVE)); + | ^~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/libnet.h:79: +/usr/include/arpa/inet.h:34:41: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 34 | extern in_addr_t inet_addr (const char *__cp) __THROW; + | ~~~~~~~~~~~~^~~~ +sniff.c:24:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] + 24 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname); + | ~~~~~~^~~~~~ +In file included from sniff.c:20: +include/nast.h:49:149: note: previously declared as an array 'char[50]' + 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); + | ~~~~~^~~~~~~~~~ +sniff.c:27:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] + 27 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname) + | ~~~~~~^~~~~~ +include/nast.h:49:149: note: previously declared as an array 'char[50]' + 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); + | ~~~~~^~~~~~~~~~ +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_menu.c -o ncurses/n_menu.o +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_scroll_win.c -o ncurses/n_scroll_win.o +map.c: In function 'map_lan': +map.c:117:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 117 | if (*net != '.') return NULL; ++net; + | ^~ +map.c:117:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 117 | if (*net != '.') return NULL; ++net; + | ^~ +map.c:119:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 119 | if (*net != '.') return NULL; ++net; + | ^~ error.c: In function 'w_error': error.c:32:10: warning: variable 'ris' set but not used [-Wunused-but-set-variable] 32 | int n,ris; @@ -566,71 +649,223 @@ error.c:32:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] 32 | int n,ris; | ^ -common.c: In function 'runcplx': -common.c:202:17: warning: pointer targets in passing argument 1 of 'mhport' differ in signedness [-Wpointer-sign] - 202 | mhport (dev,plist_p,l); - | ^~~ - | | - | char * -In file included from common.c:24: -include/nast.h:70:21: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 70 | int mhport (u_char *dev, libnet_plist_t *plist_p, int lg); - | ~~~~~~~~^~~ -common.c: In function 'n_print': -common.c:295:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] - 295 | int n; - | ^ -common.c: In function 'runcplx': -common.c:62:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 62 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:73:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 73 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:79:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 79 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:90:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 90 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:115:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 115 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:124:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 124 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:132:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 132 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 142 | fgets (buff, 50, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~ -common.c:157:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 157 | fgets(buff ,50 ,stdin); - | ^~~~~~~~~~~~~~~~~~~~~~ -common.c:166:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 166 | fgets(buff ,50 ,stdin); - | ^~~~~~~~~~~~~~~~~~~~~~ -common.c:188:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 188 | fgets(buff ,50 ,stdin); - | ^~~~~~~~~~~~~~~~~~~~~~ -ncurses/n_nast.c: In function 'main_graph': -ncurses/n_nast.c:511:34: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] - 511 | if(currfil==0) +map.c:119:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 119 | if (*net != '.') return NULL; ++net; | ^~ -ncurses/n_nast.c:75:9: note: 'currfil' declared here - 75 | char currfil[200]; - | ^~~~~~~ -ncurses/n_nast.c:631:34: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] - 631 | if(currfil==0) +map.c:121:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 121 | if (*net != '.') return NULL; ++net; + | ^~ +map.c:121:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 121 | if (*net != '.') return NULL; ++net; | ^~ -ncurses/n_nast.c:75:9: note: 'currfil' declared here - 75 | char currfil[200]; - | ^~~~~~~ -ncurses/n_comm.c: In function 'shutdown_thread': -ncurses/n_comm.c:209:8: warning: variable 'ris' set but not used [-Wunused-but-set-variable] - 209 | int ris,i,ret; - | ^~~ +map.c:134:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 134 | if (*mask != '.') return NULL; ++mask; + | ^~ +map.c:134:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 134 | if (*mask != '.') return NULL; ++mask; + | ^~ +map.c:136:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 136 | if (*mask != '.') return NULL; ++mask; + | ^~ +map.c:136:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 136 | if (*mask != '.') return NULL; ++mask; + | ^~ +map.c:138:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 138 | if (*mask != '.') return NULL; ++mask; + | ^~ +map.c:138:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 138 | if (*mask != '.') return NULL; ++mask; + | ^~ +map.c:199:27: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] + 199 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; + | ^~~ + | | + | char * +map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); + | ~~~~~~~~^~~~~~ +map.c:209:32: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] + 209 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; + | ^~~ + | | + | char * +map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); + | ~~~~~~~~^~~~~~ +map.c:225:40: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] + 225 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; + | ^~~ + | | + | char * +map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); + | ~~~~~~~~^~~~~~ +map.c:247:45: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] + 247 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; + | ^~~ + | | + | char * +map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); + | ~~~~~~~~^~~~~~ +map.c: In function 'arpreply': +map.c:346:23: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] + 346 | sprintf (ip, "%d.%d.%d.%d", arp->__ar_sip[0],arp->__ar_sip[1],arp->__ar_sip[2],arp->__ar_sip[3]); + | ^~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/features.h:510, + from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, + from /usr/include/stdio.h:28, + from /usr/include/libnet.h:53, + from include/nast.h:23, + from map.c:36: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) + | ^~~~~ +map.c:355:135: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness [-Wpointer-sign] + 355 | n_print("princ",line,1,lg,"%s \t%s (%s)\n", nast_hex_ntoa (eptr->ether_shost), ip, libnet_addr2name4(inet_addr(ip), LIBNET_RESOLVE)); + | ^~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/libnet.h:79: +/usr/include/arpa/inet.h:34:41: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 34 | extern in_addr_t inet_addr (const char *__cp) __THROW; + | ~~~~~~~~~~~~^~~~ +udp.c: In function 'handle_UDP': +udp.c:59:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 59 | buf = (char *) (packet + size_ip + size_udp + offset); + | ^ +udp.c:64:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 64 | data_sniffo (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from udp.c:22: +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +udp.c:70:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] + 70 | print_ascii_hex (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); + | ~~~~~~^~~~~~~~~ +udp.c:81:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 81 | data_sniffo (buf, size_buf, ldd); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +fgw.c: In function 'fgw': +map.c: In function 'map_lan': +map.c:150:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 150 | fgets(r, 3, stdin); + | ^~~~~~~~~~~~~~~~~~ +fgw.c:39:9: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] + 39 | "66.102.11.99" + | ^~~~~~~~~~~~~~ +fgw.c:39:9: note: (near initialization for 'extip') +fgw.c:86:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] + 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/libnet.h:109, + from include/nast.h:23, + from fgw.c:32: +/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~~~~~~~^~~~~~ +fgw.c:86:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] + 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~^~~~~~~ +fgw.c:92:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] + 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~~~~~~~^~~~~~ +fgw.c:92:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] + 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~^~~~~~~ +fgw.c:101:120: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] + 101 | if (libnet_build_ipv4 (LIBNET_TCP_H + LIBNET_IPV4_H, 0x08, 35320, 0, 64, IPPROTO_TCP, 0, myip, libnet_name2addr4(l, extip, LIBNET_DONT_RESOLVE), NULL, 0, l, 0)==-1) + | ^~~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); + | ~~~~~~~~~~~~^~~~~~~~~ +fgw.c:111:26: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] + 111 | if ((uphost = map_lan(dev, 0, &n))==NULL) + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:63:30: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 63 | struct host * map_lan (char *dev, u_short mode, u_short *n); + | ~~~~~~^~~ +fgw.c:143:24: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] + 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/pcap.h:43, + from include/nast.h:24: +/usr/include/pcap/pcap.h:447:32: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 447 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); + | ^~~~~~~~~~~~ +fgw.c:143:41: warning: pointer targets in passing argument 4 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] + 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/pcap/pcap.h:447:76: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 447 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); + | ^~~~~~ +fgw.c:145:34: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] + 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) + | ^~~ + | | + | u_char * {aka unsigned char *} +/usr/include/pcap/pcap.h:564:33: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); + | ^~~~~~~~~~~~ +fgw.c:145:64: warning: pointer targets in passing argument 5 of 'pcap_open_live' differ in signedness [-Wpointer-sign] + 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/pcap/pcap.h:564:62: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); + | ^~~~~~ +fgw.c:198:117: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] + 198 | if ((ntohs(tcp->th_sport)==80) && (ntohs(tcp->th_dport)==2500) && (!strcmp(inet_ntoa(ip->ip_src), extip))) + | ^~~~~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/libnet.h:54: +/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 156 | extern int strcmp (const char *__s1, const char *__s2) + | ~~~~~~~~~~~~^~~~ +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_comm.c -o ncurses/n_comm.o +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_stream.c -o ncurses/n_stream.o flink.c: In function 'flink': flink.c:73:26: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] 73 | if ((uphost = map_lan(dev, 0, &n))==NULL) @@ -690,7 +925,6 @@ /usr/include/pcap/pcap.h:564:62: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~ -port.c: In function 'mport': flink.c:163:36: warning: pointer targets in passing argument 1 of 'device' differ in signedness [-Wpointer-sign] 163 | if ((offset = (device(dev,p)))==-1) return -1; | ^~~ @@ -699,15 +933,6 @@ include/nast.h:58:19: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 58 | int device (char *dev, pcap_t* descr); | ~~~~~~^~~ -port.c:347:25: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] - 347 | if ((uphost = map_lan(dev, 0, &n))==NULL) - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from port.c:20: -include/nast.h:63:30: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 63 | struct host * map_lan (char *dev, u_short mode, u_short *n); - | ~~~~~~^~~ flink.c:168:50: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness [-Wpointer-sign] 168 | if ((ip->ip_src.s_addr == inet_addr(testip)) && icmp->icmp_type==ICMP_ECHOREPLY && icmp->icmp_id == 1000) | ^~~~~~ @@ -729,6 +954,12 @@ | ^~~~~~ | | | u_char * {aka unsigned char *} +main.c:223:25: warning: 'L' may be used uninitialized [-Wmaybe-uninitialized] + 223 | anip = libnet_name2addr4(L, optarg, LIBNET_RESOLVE); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.c:77:14: note: 'L' was declared here + 77 | libnet_t *L; + | ^ /usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ @@ -753,19 +984,9 @@ | ^~~~~~ | | | u_char * {aka unsigned char *} -port.c:466:35: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] - 466 | x = strlen(tmpbuf); - | ^~~~~~ - | | - | u_char * {aka unsigned char *} /usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 64 | libnet_init(int injection_type, const char *device, char *err_buf); | ~~~~~~^~~~~~~ -In file included from /usr/include/libnet.h:54, - from include/nast.h:23: -/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 407 | extern size_t strlen (const char *__s) - | ~~~~~~~~~~~~^~~ flink.c:247:29: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] 247 | if ((p = pcap_open_live (dev, BUFSIZ, PROMISC, 10, errbuf))==NULL) | ^~~ @@ -782,9 +1003,6 @@ /usr/include/pcap/pcap.h:564:62: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); | ^~~~~~ -port.c:309:21: warning: variable 'bsent' set but not used [-Wunused-but-set-variable] - 309 | int sd, r, size, bsent,z,k,x,y; - | ^~~~~ flink.c:291:26: warning: pointer targets in passing argument 1 of 'device' differ in signedness [-Wpointer-sign] 291 | offset = (device(dev,p)); | ^~~ @@ -793,6 +1011,90 @@ include/nast.h:58:19: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 58 | int device (char *dev, pcap_t* descr); | ~~~~~~^~~ +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_conn.c -o ncurses/n_conn.o +bcount.c: In function 'bytecounting': +common.c: In function 'runcplx': +bcount.c:123:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] + 123 | int line; + | ^~~~ +bcount.c: In function 'n_bytecounting': +common.c:202:17: warning: pointer targets in passing argument 1 of 'mhport' differ in signedness [-Wpointer-sign] + 202 | mhport (dev,plist_p,l); + | ^~~ + | | + | char * +In file included from common.c:24: +include/nast.h:70:21: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 70 | int mhport (u_char *dev, libnet_plist_t *plist_p, int lg); + | ~~~~~~~~^~~ +common.c: In function 'n_print': +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_rst.c -o ncurses/n_rst.o +common.c:295:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] + 295 | int n; + | ^ +bcount.c:224:14: warning: variable 'l' set but not used [-Wunused-but-set-variable] + 224 | int line, l; + | ^ +bcount.c:224:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] + 224 | int line, l; + | ^~~~ +common.c: In function 'runcplx': +port.c: In function 'mport': +port.c:347:25: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] + 347 | if ((uphost = map_lan(dev, 0, &n))==NULL) + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from port.c:20: +include/nast.h:63:30: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 63 | struct host * map_lan (char *dev, u_short mode, u_short *n); + | ~~~~~~^~~ +common.c:62:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 62 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:73:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 73 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:79:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 79 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:90:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 90 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:115:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 115 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:124:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 124 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:132:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 132 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:142:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 142 | fgets (buff, 50, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~ +common.c:157:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 157 | fgets(buff ,50 ,stdin); + | ^~~~~~~~~~~~~~~~~~~~~~ +common.c:166:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 166 | fgets(buff ,50 ,stdin); + | ^~~~~~~~~~~~~~~~~~~~~~ +common.c:188:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 188 | fgets(buff ,50 ,stdin); + | ^~~~~~~~~~~~~~~~~~~~~~ +port.c:466:35: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] + 466 | x = strlen(tmpbuf); + | ^~~~~~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/libnet.h:54, + from include/nast.h:23: +/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 407 | extern size_t strlen (const char *__s) + | ~~~~~~~~~~~~^~~ +port.c:309:21: warning: variable 'bsent' set but not used [-Wunused-but-set-variable] + 309 | int sd, r, size, bsent,z,k,x,y; + | ^~~~~ port.c: In function 'mhport': port.c:615:26: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] 615 | if ((uphost = map_lan(dev, 0, &n))==NULL) @@ -807,6 +1109,7 @@ | ^~~ | | | u_char * {aka unsigned char *} +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nast-0.2.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_nast.c -o ncurses/n_nast.o In file included from /usr/include/libnet.h:109: /usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 64 | libnet_init(int injection_type, const char *device, char *err_buf); @@ -861,351 +1164,84 @@ port.c:584:8: warning: variable 'linep' set but not used [-Wunused-but-set-variable] 584 | int linep; | ^~~~~ -prom.c: In function 'psearch': -prom.c:171:23: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] - 171 | sprintf (ip, "%d.%d.%d.%d", uphost[i].ip[0], uphost[i].ip[1], uphost[i].ip[2], uphost[i].ip[3]); - | ^~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/features.h:510, - from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, - from /usr/include/stdio.h:28, - from /usr/include/libnet.h:53, - from include/nast.h:23, - from prom.c:20: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) - | ^~~~~ -prom.c:172:95: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness [-Wpointer-sign] - 172 | n_print ("princ",ln,1,lg,"%s (%s) --------->", ip, libnet_addr2name4(inet_addr(ip), LIBNET_RESOLVE)); - | ^~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/libnet.h:79: -/usr/include/arpa/inet.h:34:41: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 34 | extern in_addr_t inet_addr (const char *__cp) __THROW; - | ~~~~~~~~~~~~^~~~ port.c: In function 'mport': port.c:517:19: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 517 | write (sd, "\n\n", 2); | ^~~~~~~~~~~~~~~~~~~~~ -tcp.c: In function 'handle_TCP': -tcp.c:101:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 101 | buf = (char *) (packet + offset + size_ip + size_tcp); - | ^ -tcp.c:106:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 106 | data_sniffo (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from tcp.c:20: -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -tcp.c:112:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] - 112 | print_ascii_hex (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); - | ~~~~~~^~~~~~~~~ -icmp.c: In function 'handle_ICMP': -icmp.c:206:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 206 | buf = (char *) (packet + size_ip + size_icmp + offset); - | ^ -icmp.c:211:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 211 | data_sniffo (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from icmp.c:20: -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -icmp.c:218:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] - 218 | print_ascii_hex (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); - | ~~~~~~^~~~~~~~~ -icmp.c:226:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 226 | data_sniffo (buf, size_buf, ldd); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -fgw.c: In function 'fgw': -tcp.c:124:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 124 | data_sniffo (buf, size_buf, ldd); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -fgw.c:39:9: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] - 39 | "66.102.11.99" - | ^~~~~~~~~~~~~~ -fgw.c:39:9: note: (near initialization for 'extip') -fgw.c:86:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] - 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/libnet.h:109, - from include/nast.h:23, - from fgw.c:32: -/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~~~~~~~^~~~~~ -fgw.c:86:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] - 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~^~~~~~~ -fgw.c:92:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] - 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~~~~~~~^~~~~~ -fgw.c:92:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] - 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~^~~~~~~ -fgw.c:101:120: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] - 101 | if (libnet_build_ipv4 (LIBNET_TCP_H + LIBNET_IPV4_H, 0x08, 35320, 0, 64, IPPROTO_TCP, 0, myip, libnet_name2addr4(l, extip, LIBNET_DONT_RESOLVE), NULL, 0, l, 0)==-1) - | ^~~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:257:44: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 257 | libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); - | ~~~~~~~~~~~~^~~~~~~~~ -fgw.c:111:26: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] - 111 | if ((uphost = map_lan(dev, 0, &n))==NULL) - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:63:30: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 63 | struct host * map_lan (char *dev, u_short mode, u_short *n); - | ~~~~~~^~~ -fgw.c:143:24: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] - 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/pcap.h:43, - from include/nast.h:24: -/usr/include/pcap/pcap.h:447:32: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 447 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); - | ^~~~~~~~~~~~ -fgw.c:143:41: warning: pointer targets in passing argument 4 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] - 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/pcap/pcap.h:447:76: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 447 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); - | ^~~~~~ -fgw.c:145:34: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] - 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) - | ^~~ - | | - | u_char * {aka unsigned char *} -/usr/include/pcap/pcap.h:564:33: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); - | ^~~~~~~~~~~~ -fgw.c:145:64: warning: pointer targets in passing argument 5 of 'pcap_open_live' differ in signedness [-Wpointer-sign] - 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/pcap/pcap.h:564:62: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 564 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); - | ^~~~~~ -fgw.c:198:117: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] - 198 | if ((ntohs(tcp->th_sport)==80) && (ntohs(tcp->th_dport)==2500) && (!strcmp(inet_ntoa(ip->ip_src), extip))) - | ^~~~~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/libnet.h:54: -/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 156 | extern int strcmp (const char *__s1, const char *__s2) - | ~~~~~~~~~~~~^~~~ -main.c:223:25: warning: 'L' may be used uninitialized [-Wmaybe-uninitialized] - 223 | anip = libnet_name2addr4(L, optarg, LIBNET_RESOLVE); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -bcount.c: In function 'bytecounting': -bcount.c:123:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] - 123 | int line; - | ^~~~ -main.c:77:14: note: 'L' was declared here - 77 | libnet_t *L; - | ^ -bcount.c: In function 'n_bytecounting': -bcount.c:224:14: warning: variable 'l' set but not used [-Wunused-but-set-variable] - 224 | int line, l; - | ^ -bcount.c:224:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] - 224 | int line, l; - | ^~~~ -map.c: In function 'map_lan': -map.c:117:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 117 | if (*net != '.') return NULL; ++net; - | ^~ -map.c:117:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 117 | if (*net != '.') return NULL; ++net; - | ^~ -map.c:119:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 119 | if (*net != '.') return NULL; ++net; - | ^~ -map.c:119:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 119 | if (*net != '.') return NULL; ++net; - | ^~ -map.c:121:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 121 | if (*net != '.') return NULL; ++net; - | ^~ -map.c:121:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 121 | if (*net != '.') return NULL; ++net; - | ^~ -map.c:134:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 134 | if (*mask != '.') return NULL; ++mask; - | ^~ -map.c:134:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 134 | if (*mask != '.') return NULL; ++mask; - | ^~ -map.c:136:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 136 | if (*mask != '.') return NULL; ++mask; - | ^~ -map.c:136:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 136 | if (*mask != '.') return NULL; ++mask; - | ^~ -map.c:138:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 138 | if (*mask != '.') return NULL; ++mask; - | ^~ -map.c:138:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 138 | if (*mask != '.') return NULL; ++mask; - | ^~ -map.c:199:27: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] - 199 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; - | ^~~ - | | - | char * -map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); - | ~~~~~~~~^~~~~~ -map.c:209:32: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] - 209 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; - | ^~~ - | | - | char * -map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); - | ~~~~~~~~^~~~~~ -map.c:225:40: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] - 225 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; - | ^~~ - | | - | char * -map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); - | ~~~~~~~~^~~~~~ -map.c:247:45: warning: pointer targets in passing argument 2 of 'send_arp' differ in signedness [-Wpointer-sign] - 247 | if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; - | ^~~ - | | - | char * -map.c:39:35: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 39 | int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); - | ~~~~~~~~^~~~~~ -map.c: In function 'arpreply': -map.c:346:23: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] - 346 | sprintf (ip, "%d.%d.%d.%d", arp->__ar_sip[0],arp->__ar_sip[1],arp->__ar_sip[2],arp->__ar_sip[3]); - | ^~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/features.h:510, - from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, - from /usr/include/stdio.h:28, - from /usr/include/libnet.h:53, - from include/nast.h:23, - from map.c:36: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) - | ^~~~~ -map.c:355:135: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness [-Wpointer-sign] - 355 | n_print("princ",line,1,lg,"%s \t%s (%s)\n", nast_hex_ntoa (eptr->ether_shost), ip, libnet_addr2name4(inet_addr(ip), LIBNET_RESOLVE)); - | ^~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/libnet.h:79: -/usr/include/arpa/inet.h:34:41: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 34 | extern in_addr_t inet_addr (const char *__cp) __THROW; - | ~~~~~~~~~~~~^~~~ -sniff.c:24:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] - 24 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname); - | ~~~~~~^~~~~~ -In file included from sniff.c:20: -include/nast.h:49:149: note: previously declared as an array 'char[50]' - 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); - | ~~~~~^~~~~~~~~~ -map.c: In function 'map_lan': -map.c:150:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 150 | fgets(r, 3, stdin); - | ^~~~~~~~~~~~~~~~~~ -sniff.c:27:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] - 27 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname) - | ~~~~~~^~~~~~ -include/nast.h:49:149: note: previously declared as an array 'char[50]' - 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); - | ~~~~~^~~~~~~~~~ -udp.c: In function 'handle_UDP': ncurses/n_stream.c: In function 'read_packet': ncurses/n_stream.c:120:9: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 120 | data = packet = NULL; | ^ -udp.c:59:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 59 | buf = (char *) (packet + size_ip + size_udp + offset); - | ^ -udp.c:64:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 64 | data_sniffo (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from udp.c:22: -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -udp.c:70:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] - 70 | print_ascii_hex (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); - | ~~~~~~^~~~~~~~~ -udp.c:81:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 81 | data_sniffo (buf, size_buf, ldd); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ +ncurses/n_nast.c: In function 'main_graph': +ncurses/n_nast.c:511:34: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] + 511 | if(currfil==0) + | ^~ +ncurses/n_nast.c:75:9: note: 'currfil' declared here + 75 | char currfil[200]; + | ^~~~~~~ +ncurses/n_nast.c:631:34: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] + 631 | if(currfil==0) + | ^~ +ncurses/n_nast.c:75:9: note: 'currfil' declared here + 75 | char currfil[200]; + | ^~~~~~~ +ncurses/n_menu.c: In function 'nmenu': +ncurses/n_menu.c:97:8: warning: variable 'ris' set but not used [-Wunused-but-set-variable] + 97 | int ris; + | ^~~ +ncurses/n_menu.c: In function 'analyzer_menu': +ncurses/n_menu.c:783:21: warning: pointer targets in passing argument 1 of 'fgw' differ in signedness [-Wpointer-sign] + 783 | fgw (dev); + | ^~~ + | | + | char * +In file included from ncurses/n_nast.h:20, + from ncurses/n_menu.c:20: +ncurses/../include/nast.h:65:18: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 65 | int fgw (u_char *dev); + | ~~~~~~~~^~~ +ncurses/n_menu.c:944:24: warning: pointer targets in passing argument 1 of 'mhport' differ in signedness [-Wpointer-sign] + 944 | mhport (dev,plist_p,lr); + | ^~~ + | | + | char * +ncurses/../include/nast.h:70:21: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 70 | int mhport (u_char *dev, libnet_plist_t *plist_p, int lg); + | ~~~~~~~~^~~ +ncurses/n_menu.c:961:22: warning: pointer targets in passing argument 1 of 'flink' differ in signedness [-Wpointer-sign] + 961 | flink(dev); + | ^~~ + | | + | char * +ncurses/../include/nast.h:67:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 67 | int flink (u_char *dev); + | ~~~~~~~~^~~ +ncurses/n_menu.c:978:22: warning: pointer targets in passing argument 1 of 'mport' differ in signedness [-Wpointer-sign] + 978 | mport(dev,ports,lr); + | ^~~ + | | + | char * +ncurses/../include/nast.h:69:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 69 | int mport (u_char *dev, u_short ports[], int lg); + | ~~~~~~~~^~~ +ncurses/n_menu.c: In function 's_select': +ncurses/n_menu.c:1542:24: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] + 1542 | if(currfil==0) + | ^~ +ncurses/n_menu.c:1460:9: note: 'currfil' declared here + 1460 | char currfil[200]; + | ^~~~~~~ +ncurses/n_menu.c: In function 'r_select': +ncurses/n_menu.c:1671:24: warning: the comparison will always evaluate as 'false' for the address of 'currfil' will never be NULL [-Waddress] + 1671 | if(currfil==0) + | ^~ +ncurses/n_menu.c:1562:9: note: 'currfil' declared here + 1562 | char currfil[200]; + | ^~~~~~~ +ncurses/n_comm.c: In function 'shutdown_thread': +ncurses/n_comm.c:209:8: warning: variable 'ris' set but not used [-Wunused-but-set-variable] + 209 | int ris,i,ret; + | ^~~ port.c:488:29: warning: array subscript -2 is below array bounds of 'char[1024]' [-Warray-bounds=] 488 | if (banner[r-1]=='\n') banner[r-1]='\0'; | ~~~~~~^~~~~ @@ -1255,8 +1291,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'nast' in '../nast_0.2.0-12_amd64.deb'. dpkg-deb: building package 'nast-dbgsym' in '../nast-dbgsym_0.2.0-12_amd64.deb'. +dpkg-deb: building package 'nast' in '../nast_0.2.0-12_amd64.deb'. dpkg-genbuildinfo --build=binary -O../nast_0.2.0-12_amd64.buildinfo dpkg-genchanges --build=binary -O../nast_0.2.0-12_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -1264,12 +1300,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2965783/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/598883 and its subdirectories -I: Current time: Sun Jan 18 19:41:49 -12 2026 -I: pbuilder-time-stamp: 1768808509 +I: removing directory /srv/workspace/pbuilder/2965783 and its subdirectories +I: Current time: Tue Dec 17 15:21:31 +14 2024 +I: pbuilder-time-stamp: 1734398491