=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for pchar-1.5nb7 --- main.o --- --- Kendall.o --- --- Pctest.o --- --- PctestIpv4.o --- --- PctestIpv4File.o --- --- PctestIpv4Udp.o --- --- PctestIpv4Raw.o --- --- PctestIpv4Tcp.o --- --- main.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c main.cc -o main.o --- Kendall.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c Kendall.cc -o Kendall.o --- Pctest.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c Pctest.cc -o Pctest.o --- PctestIpv4.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c PctestIpv4.cc -o PctestIpv4.o --- PctestIpv4File.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c PctestIpv4File.cc -o PctestIpv4File.o --- PctestIpv4Udp.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c PctestIpv4Udp.cc -o PctestIpv4Udp.o --- PctestIpv4Tcp.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c PctestIpv4Tcp.cc -o PctestIpv4Tcp.o --- PctestIpv4Raw.o --- c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include -I/usr/include -I. -DSIZEOF_BOOL=0 -DHAVE_SOCKLEN_T=1 -DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -c PctestIpv4Raw.cc -o PctestIpv4Raw.o --- PctestIpv4Udp.o --- In file included from PctestIpv4Udp.h:40, from PctestIpv4Udp.cc:30: PctestIpv4.h: In member function 'virtual char* PctestIpv4::GetAddressFamilyString()': PctestIpv4.h:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | virtual char *GetAddressFamilyString() { return "AF_INET"; }; | ^~~~~~~~~ PctestIpv4Udp.cc: In member function 'virtual int PctestIpv4Udp::Test(TestRecord&)': PctestIpv4Udp.cc:149:27: error: 'malloc' was not declared in this scope 149 | icmpPacket = (char *) malloc(IP_MAXPACKET); | ^~~~~~ PctestIpv4Udp.cc:31:1: note: 'malloc' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'? 30 | #include "PctestIpv4Udp.h" +++ |+#include <cstdlib> 31 | #include "TestRecord.h" PctestIpv4Udp.cc:321:5: error: 'free' was not declared in this scope 321 | free(icmpPacket); | ^~~~ PctestIpv4Udp.cc:321:5: note: 'free' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'? --- main.o --- In file included from PctestIpv4Udp.h:40, from main.cc:50: PctestIpv4.h: In member function 'virtual char* PctestIpv4::GetAddressFamilyString()': PctestIpv4.h:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | virtual char *GetAddressFamilyString() { return "AF_INET"; }; | ^~~~~~~~~ In file included from main.cc:53: PctestIpv4Icmp.h: In constructor 'PctestIpv4Icmp::PctestIpv4Icmp(int)': PctestIpv4Icmp.h:49:2: error: 'exit' was not declared in this scope; did you mean '_exit'? 49 | exit(1); | ^~~~ | _exit --- Pctest.o --- Pctest.cc: In member function 'virtual char* Pctest::GeneratePayload(int)': Pctest.cc:181:11: error: 'random' was not declared in this scope 181 | buf[i] = random() & 0xff; | ^~~~~~ --- main.o --- In file included from PctestIpv6Icmp.h:44, from main.cc:56: PctestIpv6.h: In member function 'virtual char* PctestIpv6::GetAddressFamilyString()': PctestIpv6.h:85:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 85 | virtual char *GetAddressFamilyString() { return "AF_INET6"; } | ^~~~~~~~~~ In file included from main.cc:56: PctestIpv6Icmp.h: In constructor 'PctestIpv6Icmp::PctestIpv6Icmp(int)': PctestIpv6Icmp.h:53:2: error: 'exit' was not declared in this scope; did you mean '_exit'? 53 | exit(1); | ^~~~ | _exit main.cc: In function 'char* GetAddressFamily()': main.cc:264:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 264 | exit(1); | ^~~~ | _exit main.cc: In function 'char* GetPrintableNetworkProtocol(NetworkProtocolType)': main.cc:299:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 299 | return("UDP/IPv4"); | ^ main.cc:302:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 302 | return("UDP/IPv4 (raw sockets)"); | ^ main.cc:305:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 305 | return("TCP/IPv4 (raw sockets)"); | ^ main.cc:308:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 308 | return("ICMP/IPv4 (raw sockets)"); | ^ main.cc:311:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 311 | return("IPv4 save file"); | ^ main.cc:315:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 315 | return("ICMPv6/IPv6"); | ^ main.cc:318:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 318 | return("TCP/IPv6"); | ^ main.cc:321:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 321 | return("UDP/IPv6"); | ^ main.cc:324:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 324 | return("IPv6 save file"); | ^ main.cc:328:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 328 | return("unknown network protocol"); | ^ main.cc: In function 'int main(int, char**)': main.cc:365:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 365 | exit(1); | ^~~~ | _exit main.cc:372:14: error: 'atoi' was not declared in this scope; did you mean 'atof'? 372 | Burst = atoi(optarg); | ^~~~ | atof main.cc:394:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 394 | exit(1); | ^~~~ | _exit main.cc:400:19: error: 'atoi' was not declared in this scope; did you mean 'atof'? 400 | DebugLevel = atoi(optarg); | ^~~~ | atof main.cc:421:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 421 | exit(1); | ^~~~ | _exit --- PctestIpv4File.o --- In file included from PctestIpv4File.h:40, from PctestIpv4File.cc:31: PctestIpv4.h: In member function 'virtual char* PctestIpv4::GetAddressFamilyString()': PctestIpv4.h:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | virtual char *GetAddressFamilyString() { return "AF_INET"; }; | ^~~~~~~~~ --- main.o --- main.cc:429:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 429 | exit(0); | ^~~~ | _exit main.cc:435:13: error: 'atoi' was not declared in this scope; did you mean 'atof'? 435 | Hops = atoi(optarg); | ^~~~ | atof main.cc:454:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 454 | exit(1); | ^~~~ | _exit main.cc:460:18: error: 'atoi' was not declared in this scope; did you mean 'atof'? 460 | Increment = atoi(optarg); | ^~~~ | atof main.cc:469:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 469 | exit(1); | ^~~~ | _exit main.cc:476:12: error: 'atoi' was not declared in this scope; did you mean 'atof'? 476 | Mtu = atoi(optarg); | ^~~~ | atof main.cc:479:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 479 | exit(1); | ^~~~ | _exit main.cc:495:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 495 | exit(1); | ^~~~ | _exit --- PctestIpv4.o --- In file included from PctestIpv4.cc:31: PctestIpv4.h: In member function 'virtual char* PctestIpv4::GetAddressFamilyString()': PctestIpv4.h:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | virtual char *GetAddressFamilyString() { return "AF_INET"; }; | ^~~~~~~~~ --- main.o --- main.cc:536:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 536 | exit(1); | ^~~~ | _exit main.cc:543:13: error: 'atoi' was not declared in this scope; did you mean 'atof'? 543 | Port = atoi(optarg); | ^~~~ | atof main.cc:559:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 559 | exit(1); | ^~~~ | _exit main.cc:569:20: error: 'atoi' was not declared in this scope; did you mean 'atof'? 569 | Repetitions = atoi(optarg); | ^~~~ | atof main.cc:575:17: error: 'atoi' was not declared in this scope; did you mean 'atof'? 575 | StartHop = atoi(optarg); | ^~~~ | atof --- PctestIpv4File.o --- PctestIpv4File.cc: In member function 'virtual int PctestIpv4File::SetOriginName(char*)': PctestIpv4File.cc:87:1: warning: control reaches end of non-void function [-Wreturn-type] 87 | } | ^ --- main.o --- main.cc:597:16: error: 'atoi' was not declared in this scope; did you mean 'atof'? 597 | Timeout = atoi(optarg); | ^~~~ | atof main.cc:607:12: error: 'atoi' was not declared in this scope; did you mean 'atof'? 607 | Tos = atoi(optarg); | ^~~~ | atof --- PctestIpv4Udp.o --- *** [PctestIpv4Udp.o] Error code 1 make: stopped in /pbulk/work/net/pchar/work/pchar-1.5 --- main.o --- main.cc:621:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 621 | exit(0); | ^~~~ | _exit main.cc:629:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 629 | exit(1); | ^~~~ | _exit main.cc:640:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 640 | exit(1); | ^~~~ | _exit main.cc:647:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 647 | exit(1); | ^~~~ | _exit main.cc:659:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 659 | exit(1); | ^~~~ | _exit main.cc:667:5: error: 'srandom' was not declared in this scope; did you mean 'random'? 667 | srandom(time(NULL)); | ^~~~~~~ | random main.cc:689:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 689 | exit(1); | ^~~~ | _exit main.cc:704:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 704 | exit(1); | ^~~~ | _exit main.cc:706:6: error: 'free' was not declared in this scope 706 | free(af); | ^~~~ main.cc:65:1: note: 'free' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'? 64 | #include "GetIfInfo.h" +++ |+#include <cstdlib> 65 | #endif /* HAVE_SNMP */ main.cc:734:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 734 | exit(1); | ^~~~ | _exit main.cc:765:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 765 | exit(1); | ^~~~ | _exit --- Pctest.o --- *** [Pctest.o] Error code 1 make: stopped in /pbulk/work/net/pchar/work/pchar-1.5 --- main.o --- main.cc:806:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 806 | exit(1); | ^~~~ | _exit main.cc:814:2: error: 'exit' was not declared in this scope; did you mean '_exit'? 814 | exit(1); | ^~~~ | _exit main.cc:817:2: error: 'exit' was not declared in this scope; did you mean '_exit'? 817 | exit(1); | ^~~~ | _exit main.cc:822:2: error: 'exit' was not declared in this scope; did you mean '_exit'? 822 | exit(1); | ^~~~ | _exit main.cc:825:2: error: 'exit' was not declared in this scope; did you mean '_exit'? 825 | exit(1); | ^~~~ | _exit main.cc:851:2: error: 'exit' was not declared in this scope; did you mean '_exit'? 851 | exit(1); | ^~~~ | _exit main.cc:855:5: error: 'exit' was not declared in this scope; did you mean '_exit'? 855 | exit(0); | ^~~~ | _exit main.cc: In function 'void DoPchar(Pctest*)': main.cc:900:39: error: 'calloc' was not declared in this scope; did you mean 'tzalloc'? 900 | PartialResults = (ResultTable **) calloc(Hops, sizeof(ResultTable *)); | ^~~~~~ | tzalloc main.cc:952:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 952 | exit(1); | ^~~~ | _exit main.cc:1009:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 1009 | exit(1); | ^~~~ | _exit main.cc:1050:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 1050 | exit(1); | ^~~~ | _exit main.cc:1104:7: error: 'exit' was not declared in this scope; did you mean '_exit'? 1104 | exit(1); | ^~~~ | _exit main.cc:1161:8: error: 'exit' was not declared in this scope; did you mean '_exit'? 1161 | exit(1); | ^~~~ | _exit main.cc:1187:4: error: 'abort' was not declared in this scope 1187 | abort(); | ^~~~~ main.cc:1249:4: error: 'exit' was not declared in this scope; did you mean '_exit'? 1249 | exit(1); | ^~~~ | _exit main.cc:1299:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 1299 | exit(1); | ^~~~ | _exit main.cc:1366:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 1366 | exit(1); | ^~~~ | _exit main.cc:1459:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 1459 | exit(1); | ^~~~ | _exit main.cc:1478:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 1478 | exit(1); | ^~~~ | _exit main.cc: In function 'void DoTrout(Pctest*)': main.cc:1579:3: error: 'exit' was not declared in this scope; did you mean '_exit'? 1579 | exit(1); | ^~~~ | _exit main.cc:1642:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 1642 | exit(1); | ^~~~ | _exit main.cc:1690:6: error: 'abort' was not declared in this scope 1690 | abort(); | ^~~~~ main.cc:1730:6: error: 'exit' was not declared in this scope; did you mean '_exit'? 1730 | exit(1); | ^~~~ | _exit --- PctestIpv4Raw.o --- In file included from PctestIpv4Udp.h:40, from PctestIpv4Raw.h:40, from PctestIpv4Raw.cc:34: PctestIpv4.h: In member function 'virtual char* PctestIpv4::GetAddressFamilyString()': PctestIpv4.h:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | virtual char *GetAddressFamilyString() { return "AF_INET"; }; | ^~~~~~~~~ --- PctestIpv4Tcp.o --- In file included from PctestIpv4Tcp.h:40, from PctestIpv4Tcp.cc:34: PctestIpv4.h: In member function 'virtual char* PctestIpv4::GetAddressFamilyString()': PctestIpv4.h:80:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | virtual char *GetAddressFamilyString() { return "AF_INET"; }; | ^~~~~~~~~ PctestIpv4Tcp.cc: In constructor 'PctestIpv4Tcp::PctestIpv4Tcp(int)': PctestIpv4Tcp.cc:60:5: error: 'exit' was not declared in this scope; did you mean '_exit'? 60 | exit(1); | ^~~~ | _exit PctestIpv4Tcp.cc: In member function 'virtual int PctestIpv4Tcp::Test(TestRecord&)': PctestIpv4Tcp.cc:419:5: error: 'exit' was not declared in this scope; did you mean '_exit'? 419 | exit(1); | ^~~~ | _exit PctestIpv4Tcp.cc:423:1: warning: no return statement in function returning non-void [-Wreturn-type] 423 | } | ^ --- PctestIpv4Raw.o --- PctestIpv4Raw.cc: In member function 'virtual int PctestIpv4Raw::Test(TestRecord&)': PctestIpv4Raw.cc:249:27: error: 'malloc' was not declared in this scope 249 | icmpPacket = (char *) malloc(IP_MAXPACKET); | ^~~~~~ PctestIpv4Raw.cc:35:1: note: 'malloc' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'? 34 | #include "PctestIpv4Raw.h" +++ |+#include <cstdlib> 35 | #include "TestRecord.h" PctestIpv4Raw.cc:472:5: error: 'free' was not declared in this scope 472 | free(icmpPacket); | ^~~~ PctestIpv4Raw.cc:472:5: note: 'free' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'? --- PctestIpv4Tcp.o --- *** [PctestIpv4Tcp.o] Error code 1 make: stopped in /pbulk/work/net/pchar/work/pchar-1.5 --- main.o --- *** [main.o] Error code 1 make: stopped in /pbulk/work/net/pchar/work/pchar-1.5 --- PctestIpv4Raw.o --- *** [PctestIpv4Raw.o] Error code 1 make: stopped in /pbulk/work/net/pchar/work/pchar-1.5 5 errors make: stopped in /pbulk/work/net/pchar/work/pchar-1.5 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/net/pchar *** Error code 1 Stop. make: stopped in /usr/pkgsrc/net/pchar