=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for nmap-7.12nb1 echo "# ignored" > /usr/pkgsrc/work/net/nmap/work/nmap-7.12/makefile.dep Compiling libnetutil cd libnetutil && /usr/pkg/bin/gmake gmake[1]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libnetutil' Makefile:41: makefile.dep: No such file or directory c++ -MM -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 ./netutil.cc ./PacketElement.cc ./NetworkLayerElement.cc ./ARPHeader.cc ./PacketElement.cc ./NetworkLayerElement.cc ./TransportLayerElement.cc ./ARPHeader.cc ./EthernetHeader.cc ./ICMPv4Header.cc ./ICMPv6Header.cc ./IPv4Header.cc ./IPv6Header.cc ./TCPHeader.cc ./UDPHeader.cc ./RawData.cc ./HopByHopHeader.cc ./DestOptsHeader.cc ./FragmentHeader.cc ./RoutingHeader.cc ./PacketParser.cc > makefile.dep c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing netutil.cc -o netutil.o netutil.cc:2829:74: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] Snprintf(icmpfields, sizeof(icmpfields), "Next-Hop-MTU=%hu", icmppkt->data[2]<<8 | icmppkt->data[3]); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %d 1 warning generated. c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing PacketElement.cc -o PacketElement.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing NetworkLayerElement.cc -o NetworkLayerElement.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing TransportLayerElement.cc -o TransportLayerElement.o In file included from TransportLayerElement.cc:126: ./IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from TransportLayerElement.cc:126: ./IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from TransportLayerElement.cc:126: ./IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from TransportLayerElement.cc:126: ./IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from TransportLayerElement.cc:126: ./IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from TransportLayerElement.cc:126: ./IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from TransportLayerElement.cc:127: ./IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from TransportLayerElement.cc:127: ./IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from TransportLayerElement.cc:127: ./IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from TransportLayerElement.cc:127: ./IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from TransportLayerElement.cc:127: ./IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from TransportLayerElement.cc:127: ./IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing ARPHeader.cc -o ARPHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing EthernetHeader.cc -o EthernetHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing ICMPv4Header.cc -o ICMPv4Header.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing ICMPv6Header.cc -o ICMPv6Header.o In file included from ICMPv6Header.cc:127: ./IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from ICMPv6Header.cc:127: ./IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from ICMPv6Header.cc:127: ./IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from ICMPv6Header.cc:127: ./IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from ICMPv6Header.cc:127: ./IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from ICMPv6Header.cc:127: ./IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 6 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing IPv4Header.cc -o IPv4Header.o In file included from IPv4Header.cc:126: ./IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from IPv4Header.cc:126: ./IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from IPv4Header.cc:126: ./IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from IPv4Header.cc:126: ./IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from IPv4Header.cc:126: ./IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from IPv4Header.cc:126: ./IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 6 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing IPv6Header.cc -o IPv6Header.o In file included from IPv6Header.cc:126: ./IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from IPv6Header.cc:126: ./IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from IPv6Header.cc:126: ./IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from IPv6Header.cc:126: ./IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from IPv6Header.cc:126: ./IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from IPv6Header.cc:126: ./IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 6 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing TCPHeader.cc -o TCPHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing UDPHeader.cc -o UDPHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing RawData.cc -o RawData.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing HopByHopHeader.cc -o HopByHopHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing DestOptsHeader.cc -o DestOptsHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing FragmentHeader.cc -o FragmentHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing RoutingHeader.cc -o RoutingHeader.o c++ -c -I/usr/pkg/include -DNOLUA -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing PacketParser.cc -o PacketParser.o In file included from PacketParser.cc:127: In file included from ./PacketParser.h:139: ./IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:139: ./IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:139: ./IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:139: ./IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:139: ./IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:139: ./IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:140: ./IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:140: ./IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:140: ./IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:140: ./IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:140: ./IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from PacketParser.cc:127: In file included from ./PacketParser.h:140: ./IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. rm -f libnetutil.a ar cr libnetutil.a netutil.o PacketElement.o NetworkLayerElement.o TransportLayerElement.o ARPHeader.o EthernetHeader.o ICMPv4Header.o ICMPv6Header.o IPv4Header.o IPv6Header.o TCPHeader.o UDPHeader.o RawData.o HopByHopHeader.o DestOptsHeader.o FragmentHeader.o RoutingHeader.o PacketParser.o ranlib libnetutil.a gmake[1]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libnetutil' Compiling libnbase cd nbase && /usr/pkg/bin/gmake gmake[1]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase' cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -c -o snprintf.o snprintf.c snprintf.c:51:19: warning: unused variable 'rcsid' [-Wunused-const-variable] static const char rcsid[] = ^ 1 warning generated. cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -c -o getopt.o getopt.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -c -o nbase_str.o nbase_str.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -c -o nbase_misc.o nbase_misc.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -c -o nbase_memalloc.o nbase_memalloc.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -c -o nbase_rnd.o nbase_rnd.c cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -c -o nbase_addrset.o nbase_addrset.c rm -f libnbase.a ar cr libnbase.a snprintf.o getopt.o nbase_str.o nbase_misc.o nbase_memalloc.o nbase_rnd.o nbase_addrset.o ranlib libnbase.a gmake[1]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase' Compiling libnsock cd nsock/src && /usr/pkg/bin/gmake gmake[1]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nsock/src' Makefile:97: makefile.dep: No such file or directory cc -MM -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include error.c filespace.c gh_heap.c nsock_connect.c nsock_core.c nsock_iod.c nsock_read.c nsock_timers.c nsock_write.c nsock_ssl.c nsock_event.c nsock_pool.c netutils.c nsock_pcap.c nsock_engines.c engine_select.c engine_epoll.c engine_kqueue.c engine_poll.c nsock_proxy.c nsock_log.c proxy_http.c proxy_socks4.c > makefile.dep cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall error.c -o error.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall filespace.c -o filespace.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall gh_heap.c -o gh_heap.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_connect.c -o nsock_connect.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_core.c -o nsock_core.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_iod.c -o nsock_iod.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_read.c -o nsock_read.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_timers.c -o nsock_timers.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_write.c -o nsock_write.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_ssl.c -o nsock_ssl.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_event.c -o nsock_event.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_pool.c -o nsock_pool.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall netutils.c -o netutils.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_pcap.c -o nsock_pcap.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_engines.c -o nsock_engines.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall engine_select.c -o engine_select.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall engine_epoll.c -o engine_epoll.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall engine_kqueue.c -o engine_kqueue.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall engine_poll.c -o engine_poll.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_proxy.c -o nsock_proxy.o nsock_proxy.c:296:8: warning: array subscript is of type 'char' [-Wchar-subscripts] if (!isalpha(*p)) ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ nsock_proxy.c:300:10: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isalpha(*q) || isdigit(*q) || *q == '+' || *q == '-' || *q == '.') ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha' #define isalpha(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A)) ^~~~ nsock_proxy.c:300:25: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isalpha(*q) || isdigit(*q) || *q == '+' || *q == '-' || *q == '.') ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ 3 warnings generated. cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall nsock_log.c -o nsock_log.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall proxy_http.c -o proxy_http.o cc -c -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall proxy_socks4.c -o proxy_socks4.o rm -f libnsock.a ar cr libnsock.a error.o filespace.o gh_heap.o nsock_connect.o nsock_core.o nsock_iod.o nsock_read.o nsock_timers.o nsock_write.o nsock_ssl.o nsock_event.o nsock_pool.o netutils.o nsock_pcap.o nsock_engines.o engine_select.o engine_epoll.o engine_kqueue.o engine_poll.o nsock_proxy.o nsock_log.o proxy_http.o proxy_socks4.o ranlib libnsock.a gmake[1]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nsock/src' Compiling libdnet gmake[1]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped' Making all in include gmake[2]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include' /usr/pkg/bin/gmake all-recursive gmake[3]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include' Making all in dnet gmake[4]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include/dnet' gmake[4]: Nothing to be done for 'all'. gmake[4]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include/dnet' gmake[4]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include' gmake[4]: Nothing to be done for 'all-am'. gmake[4]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include' gmake[3]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include' gmake[2]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/include' Making all in src gmake[2]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/src' /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o addr-util.lo addr-util.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c addr-util.c -fPIC -DPIC -o .libs/addr-util.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c addr-util.c -o addr-util.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o addr.lo addr.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c addr.c -fPIC -DPIC -o .libs/addr.o addr.c:350:7: warning: overflow converting case value to switch condition type (65535 to 255) [-Wswitch] case ARP_HRD_VOID: ^ ../include/dnet/arp.h:47:22: note: expanded from macro 'ARP_HRD_VOID' #define ARP_HRD_VOID 0xFFFF /* Void type, nothing is known */ ^ addr.c:325:7: warning: overflow converting case value to switch condition type (803 to 35) [-Wswitch] case ARP_HRD_IEEE80211_RADIOTAP: /* IEEE 802.11 + radiotap header */ ^ ../include/dnet/arp.h:46:36: note: expanded from macro 'ARP_HRD_IEEE80211_RADIOTAP' #define ARP_HRD_IEEE80211_RADIOTAP 0x0323 /* IEEE 802.11 + radiotap header */ ^ addr.c:324:7: warning: overflow converting case value to switch condition type (802 to 34) [-Wswitch] case ARP_HRD_IEEE80211_PRISM: /* IEEE 802.11 + prism header */ ^ ../include/dnet/arp.h:45:33: note: expanded from macro 'ARP_HRD_IEEE80211_PRISM' #define ARP_HRD_IEEE80211_PRISM 0x0322 /* IEEE 802.11 + prism header */ ^ addr.c:323:7: warning: overflow converting case value to switch condition type (801 to 33) [-Wswitch] case ARP_HDR_IEEE80211: /* IEEE 802.11 */ ^ ../include/dnet/arp.h:44:27: note: expanded from macro 'ARP_HDR_IEEE80211' #define ARP_HDR_IEEE80211 0x0321 /* IEEE 802.11 */ ^ addr.c:321:7: warning: overflow converting case value to switch condition type (777 to 9) [-Wswitch] case ARP_HRD_APPLETALK: /* AppleTalk DDP */ ^ ../include/dnet/arp.h:43:27: note: expanded from macro 'ARP_HRD_APPLETALK' #define ARP_HRD_APPLETALK 0x0309 /* AppleTalk DDP */ ^ 5 warnings generated. libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c addr.c -o addr.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o blob.lo blob.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c blob.c -fPIC -DPIC -o .libs/blob.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c blob.c -o blob.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o ip-util.lo ip-util.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c ip-util.c -fPIC -DPIC -o .libs/ip-util.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c ip-util.c -o ip-util.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o ip6.lo ip6.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c ip6.c -fPIC -DPIC -o .libs/ip6.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c ip6.c -o ip6.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o rand.lo rand.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c rand.c -fPIC -DPIC -o .libs/rand.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c rand.c -o rand.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o arp-bsd.lo arp-bsd.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c arp-bsd.c -fPIC -DPIC -o .libs/arp-bsd.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c arp-bsd.c -o arp-bsd.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o eth-none.lo eth-none.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c eth-none.c -fPIC -DPIC -o .libs/eth-none.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c eth-none.c -o eth-none.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o fw-none.lo fw-none.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c fw-none.c -fPIC -DPIC -o .libs/fw-none.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c fw-none.c -o fw-none.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o intf.lo intf.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c intf.c -fPIC -DPIC -o .libs/intf.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c intf.c -o intf.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o ip.lo ip.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c ip.c -fPIC -DPIC -o .libs/ip.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c ip.c -o ip.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o route-bsd.lo route-bsd.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c route-bsd.c -fPIC -DPIC -o .libs/route-bsd.o route-bsd.c:171:38: warning: sizeof on array function parameter will return size of 'char *' instead of 'char [16]' [-Wsizeof-array-argument] strlcpy(intf_name, namebuf, sizeof(intf_name)); ^ route-bsd.c:86:38: note: declared here route_msg(route_t *r, int type, char intf_name[INTF_NAME_LEN], struct addr *dst, struct addr *gw) ^ 1 warning generated. libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c route-bsd.c -o route-bsd.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/pkg/include -I/usr/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -c -o tun-none.lo tun-none.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c tun-none.c -fPIC -DPIC -o .libs/tun-none.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I../include -I/usr/pkgsrc/work/net/nmap/work/.buildlink/include -O2 -march=i586 -Wall -c tun-none.c -o tun-none.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link cc -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -version-info 1:1:0 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o libdnet.la -rpath /usr/pkg/lib addr-util.lo addr.lo blob.lo ip-util.lo ip6.lo rand.lo arp-bsd.lo eth-none.lo fw-none.lo intf.lo ip.lo route-bsd.lo tun-none.lo libtool: link: cc -shared -fPIC -DPIC .libs/addr-util.o .libs/addr.o .libs/blob.o .libs/ip-util.o .libs/ip6.o .libs/rand.o .libs/arp-bsd.o .libs/eth-none.o .libs/fw-none.o .libs/intf.o .libs/ip.o .libs/route-bsd.o .libs/tun-none.o -L/usr/pkgsrc/work/net/nmap/work/.buildlink/lib -O2 -march=i586 -Wl,-R/usr/pkg/lib -Wl,-soname -Wl,libdnet.so.1 -o .libs/libdnet.so.1.0.1 libtool: link: (cd ".libs" && rm -f "libdnet.so.1" && ln -s "libdnet.so.1.0.1" "libdnet.so.1") libtool: link: (cd ".libs" && rm -f "libdnet.so" && ln -s "libdnet.so.1.0.1" "libdnet.so") libtool: link: ar cru .libs/libdnet.a addr-util.o addr.o blob.o ip-util.o ip6.o rand.o arp-bsd.o eth-none.o fw-none.o intf.o ip.o route-bsd.o tun-none.o libtool: link: ranlib .libs/libdnet.a libtool: link: ( cd ".libs" && rm -f "libdnet.la" && ln -s "../libdnet.la" "libdnet.la" ) gmake[2]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped/src' gmake[2]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped' gmake[2]: Nothing to be done for 'all-am'. gmake[2]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped' gmake[1]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/libdnet-stripped' c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing charpool.cc -o charpool.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing FingerPrintResults.cc -o FingerPrintResults.o In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from FingerPrintResults.cc:126: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing FPEngine.cc -o FPEngine.o In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from FPEngine.cc:127: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -g0 FPModel.cc -o FPModel.o In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from FPModel.cc:3: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing idle_scan.cc -o idle_scan.o In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from idle_scan.cc:154: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing MACLookup.cc -o MACLookup.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing nmap_dns.cc -o nmap_dns.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing nmap_error.cc -o nmap_error.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing nmap.cc -o nmap.o In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from nmap.cc:130: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ nmap.cc:3059:48: warning: use of logical '||' with constant operand [-Wconstant-logical-operand] return file_is_readable(filename_returned) || 1; ^ ~ nmap.cc:3059:48: note: use '|' for a bitwise operation return file_is_readable(filename_returned) || 1; ^~ | 13 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing nmap_ftp.cc -o nmap_ftp.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing NmapOps.cc -o NmapOps.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing NmapOutputTable.cc -o NmapOutputTable.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing nmap_tty.cc -o nmap_tty.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing osscan2.cc -o osscan2.o In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from osscan2.cc:133: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ osscan2.cc:3415:34: warning: format specifies type 'unsigned short' but the argument has type 'u8' (aka 'unsigned char') [-Wformat] snprintf(p, length, "%hX", *((u8*)q)); ~~~ ^~~~~~~~~ %hhX 13 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing osscan.cc -o osscan.o In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from osscan.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing output.cc -o output.o In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:139: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ output.cc:1882:36: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] xml_attribute("portid", "%hu", FPR->osscan_opentcpport); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~ %d output.cc:1890:36: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] xml_attribute("portid", "%hu", FPR->osscan_closedtcpport); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %d output.cc:1898:36: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] xml_attribute("portid", "%hu", FPR->osscan_closedudpport); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ %d 15 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing payload.cc -o payload.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing portlist.cc -o portlist.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing portreasons.cc -o portreasons.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing protocols.cc -o protocols.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing scan_engine.cc -o scan_engine.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing scan_engine_connect.cc -o scan_engine_connect.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing scan_engine_raw.cc -o scan_engine_raw.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing service_scan.cc -o service_scan.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing services.cc -o services.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing TargetGroup.cc -o TargetGroup.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing Target.cc -o Target.o In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:142: ./libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from Target.cc:132: In file included from ./FingerPrintResults.h:131: In file included from ./FPEngine.h:132: In file included from ./libnetutil/npacket.h:143: ./libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing targets.cc -o targets.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing tcpip.cc -o tcpip.o tcpip.cc:1273:17: warning: format specifies type 'unsigned short' but the argument has type 'u_int8_t' (aka 'unsigned char') [-Wformat] ip->ip_ttl); ^~~~~~~~~~ tcpip.cc:1332:41: warning: format specifies type 'unsigned short' but the argument has type 'u_int8_t' (aka 'unsigned char') [-Wformat] log_write(LOG_PLAIN, "ttl: %hu ", ip->ip_ttl); ~~~ ^~~~~~~~~~ %hhu 2 warnings generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing timing.cc -o timing.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing traceroute.cc -o traceroute.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing utils.cc -o utils.o utils.cc:577:43: warning: size argument in 'strncmp' call is a comparison [-Wmemsize-comparison] if (strncmp(cpe, PREFIX, strlen(PREFIX) != 0)) ~~~~~~~~~~~~~~~^~~~ utils.cc:577:7: note: did you mean to compare the result of 'strncmp' instead? if (strncmp(cpe, PREFIX, strlen(PREFIX) != 0)) ^ ~ ) utils.cc:577:28: note: explicitly cast the argument to size_t to silence this warning if (strncmp(cpe, PREFIX, strlen(PREFIX) != 0)) ^ (size_t)( ) 1 warning generated. c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing xml.cc -o xml.o c++ -c -I/usr/pkg/include -DNOLUA -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i386-elf32-minix\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2 -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing main.cc -o main.o Compiling nmap rm -f nmap c++ -L/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -Lnbase -Lnsock/src/ -o nmap charpool.o FingerPrintResults.o FPEngine.o FPModel.o idle_scan.o MACLookup.o nmap_dns.o nmap_error.o nmap.o nmap_ftp.o NmapOps.o NmapOutputTable.o nmap_tty.o osscan2.o osscan.o output.o payload.o portlist.o portreasons.o protocols.o scan_engine.o scan_engine_connect.o scan_engine_raw.o service_scan.o services.o TargetGroup.o Target.o targets.o tcpip.o timing.o traceroute.o utils.o xml.o main.o -lnsock -lnbase -lpcre -lpcap -lssl -lcrypto libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a -llinear gmake[1]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nping' Makefile:167: makefile.dep: No such file or directory c++ -MM -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include ArgParser.cc common.cc common_modified.cc nping.cc NpingOps.cc utils.cc utils_net.cc output.cc stats.cc NpingTargets.cc NpingTarget.cc EchoHeader.cc EchoServer.cc EchoClient.cc ProbeMode.cc NEPContext.cc Crypto.cc > makefile.dep /usr/pkg/bin/gmake nping gmake[2]: Entering directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nping' c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 ArgParser.cc -o ArgParser.o In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from ArgParser.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 common.cc -o common.o In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from common.cc:127: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 common_modified.cc -o common_modified.o In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from common_modified.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ common_modified.cc:255:24: warning: unused variable 'sin6' [-Wunused-variable] struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) ss; ^ 13 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 nping.cc -o nping.o In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from nping.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 NpingOps.cc -o NpingOps.o In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NpingOps.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 utils.cc -o utils.o In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from utils.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 utils_net.cc -o utils_net.o In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from utils_net.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 output.cc -o output.o In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from output.cc:130: In file included from ./NpingOps.h:175: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 stats.cc -o stats.o In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from stats.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 NpingTargets.cc -o NpingTargets.o In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTargets.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 NpingTarget.cc -o NpingTarget.o In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NpingTarget.cc:131: In file included from ./NpingTarget.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 EchoHeader.cc -o EchoHeader.o In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from EchoHeader.cc:126: In file included from ./EchoHeader.h:129: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 EchoServer.cc -o EchoServer.o In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from EchoServer.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 EchoClient.cc -o EchoClient.o In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from EchoClient.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 ProbeMode.cc -o ProbeMode.o In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from ProbeMode.cc:125: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ ProbeMode.cc:419:29: warning: comparison of array 'pkt' equal to a null pointer is always false [-Wtautological-pointer-compare] if (pkt == NULL || pktLen <=0) ^~~ ~~~~ ProbeMode.cc:470:25: warning: comparison of array 'pkt' equal to a null pointer is always false [-Wtautological-pointer-compare] if (pkt == NULL || pktLen <=0) ^~~ ~~~~ 14 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 NEPContext.cc -o NEPContext.o In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from NEPContext.cc:123: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. c++ -c -I../libdnet-stripped/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I/usr/include -I../nbase -I../nsock/include -O2 -march=i586 -I/usr/pkg/include -I/usr/include -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"i386-elf32-minix\" -D_FORTIFY_SOURCE=2 Crypto.cc -o Crypto.o In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:251:12: warning: 'IPv4Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:262:19: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:263:24: warning: 'IPv4Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getDestinationAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:269:19: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:270:24: warning: 'IPv4Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in_addr getSourceAddress(struct in_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:142: ./../libnetutil/IPv4Header.h:272:13: warning: 'IPv4Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:215:12: warning: 'IPv6Header::getNextHeader' hides overloaded virtual function [-Woverloaded-virtual] u8 getNextHeader() const; ^ ./../libnetutil/NetworkLayerElement.h:151:16: note: hidden overloaded virtual function 'NetworkLayerElement::getNextHeader' declared here: different qualifiers (none vs const) virtual u8 getNextHeader(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:224:19: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getSourceAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getSourceAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:225:25: warning: 'IPv6Header::getSourceAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getSourceAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:139:17: note: hidden overloaded virtual function 'NetworkLayerElement::getSourceAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getSourceAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:230:19: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] const u8 *getDestinationAddress() const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different return type ('u8 *' (aka 'unsigned char *') vs 'const u8 *' (aka 'const unsigned char *')) virtual u8 *getDestinationAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:231:25: warning: 'IPv6Header::getDestinationAddress' hides overloaded virtual function [-Woverloaded-virtual] struct in6_addr getDestinationAddress(struct in6_addr *result) const; ^ ./../libnetutil/NetworkLayerElement.h:143:17: note: hidden overloaded virtual function 'NetworkLayerElement::getDestinationAddress' declared here: different number of parameters (0 vs 1) virtual u8 *getDestinationAddress(){ ^ In file included from Crypto.cc:124: In file included from ./nping.h:139: In file included from ./../libnetutil/npacket.h:143: ./../libnetutil/IPv6Header.h:233:13: warning: 'IPv6Header::getAddressLength' hides overloaded virtual function [-Woverloaded-virtual] u16 getAddressLength() const; ^ ./../libnetutil/NetworkLayerElement.h:135:17: note: hidden overloaded virtual function 'NetworkLayerElement::getAddressLength' declared here: different qualifiers (none vs const) virtual u16 getAddressLength(){ ^ 12 warnings generated. Compiling nping rm -f nping c++ -L/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o nping ArgParser.o common.o common_modified.o nping.o NpingOps.o utils.o utils_net.o output.o stats.o NpingTargets.o NpingTarget.o EchoHeader.o EchoServer.o EchoClient.o ProbeMode.o NEPContext.o Crypto.o ../nsock/src/libnsock.a ../nbase/libnbase.a ../libnetutil/libnetutil.a -lssl -lcrypto -lpcap ../libdnet-stripped/src/.libs/libdnet.a NpingOps.o: In function `NpingOps::getSourceSockAddr()': NpingOps.cc:(.text+0x139d): undefined reference to `in6addr_any' NpingOps.cc:(.text+0x13a7): undefined reference to `in6addr_any' NpingOps.cc:(.text+0x13b1): undefined reference to `in6addr_any' NpingOps.cc:(.text+0x13bb): undefined reference to `in6addr_any' NpingOps.o: In function `NpingOps::getSourceSockAddr(sockaddr_storage*)': NpingOps.cc:(.text+0x14c2): undefined reference to `in6addr_any' NpingOps.o:NpingOps.cc:(.text+0x14cb): more undefined references to `in6addr_any' follow clang: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:87: recipe for target 'nping' failed gmake[2]: *** [nping] Error 1 gmake[2]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nping' Makefile:84: recipe for target 'all' failed gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory '/usr/pkgsrc/work/net/nmap/work/nmap-7.12/nping' Makefile:362: recipe for target 'build-nping' failed gmake: *** [build-nping] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/net/nmap *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/nmap