=> 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 softether-5.02.5181nb1 [ 1%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/FileSystem.c.o [ 2%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Hamcore.c.o [ 3%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Memory.c.o [ 4%] Linking C static library liblibhamcore.a [ 4%] Built target libhamcore [ 5%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/FileSystem.c.o [ 6%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/main.c.o [ 7%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Cfg.c.o [ 8%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/FileIO.c.o [ 9%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/DNS.c.o [ 10%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Crypto/Key.c.o [ 11%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encoding.c.o [ 12%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encrypt.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c: In function 'CryptoKeyRawNew': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c:63:19: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(key->Data, data, key->Size); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c:4:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/./Memory.h:194:6: note: expected 'void *' but argument is of type 'const void *' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheCompare': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:42:17: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return StrCmpi(c1->Hostname, c2->Hostname); ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:5: note: expected 'char *' but argument is of type 'const char * const' int StrCmpi(char *str1, char *str2); ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:42:31: warning: passing argument 2 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return StrCmpi(c1->Hostname, c2->Hostname); ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:5: note: expected 'char *' but argument is of type 'const char * const' int StrCmpi(char *str1, char *str2); ^~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseCompare': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:99:36: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:9: note: in expansion of macro 'CmpIpAddr' return CmpIpAddr(&c1->IP, &c2->IP); ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:196:5: note: expected 'void *' but argument is of type 'const BYTE * {aka const unsigned char *}' int Cmp(void *p1, void *p2, UINT size); ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:99:52: warning: passing argument 2 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:9: note: in expansion of macro 'CmpIpAddr' return CmpIpAddr(&c1->IP, &c2->IP); ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:196:5: note: expected 'void *' but argument is of type 'const BYTE * {aka const unsigned char *}' int Cmp(void *p1, void *p2, UINT size); ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheFind': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:133:49: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:6: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdate': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:153:49: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:6: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:164:37: warning: passing argument 2 of 'AddHostIPAddressToList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddHostIPAddressToList(iplist_v6, ipv6); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' void AddHostIPAddressToList(LIST *o, IP *ip); ^~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:170:37: warning: passing argument 2 of 'AddHostIPAddressToList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] AddHostIPAddressToList(iplist_v4, ipv4); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' void AddHostIPAddressToList(LIST *o, IP *ip); ^~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdateEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:182:49: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:6: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:212:31: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] entry->Hostname = CopyStr(hostname); ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:224:43: warning: passing argument 1 of 'CloneIPAddressList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] entry->IPList_v6 = CloneIPAddressList(iplist_v6); ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:7: note: expected 'LIST * {aka struct LIST *}' but argument is of type 'const LIST * {aka const struct LIST *}' LIST *CloneIPAddressList(LIST *o); ^~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:233:43: warning: passing argument 1 of 'CloneIPAddressList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] entry->IPList_v4 = CloneIPAddressList(iplist_v4); ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:7: note: expected 'LIST * {aka struct LIST *}' but argument is of type 'const LIST * {aka const struct LIST *}' LIST *CloneIPAddressList(LIST *o); ^~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseFind': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:258:15: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(&t.IP, ip, sizeof(t.IP)); ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:6: note: expected 'void *' but argument is of type 'const IP * {aka const struct IP *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseUpdate': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:268:47: warning: passing argument 1 of 'IsZeroIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (DnsCacheIsEnabled() == false || IsZeroIP(ip)) ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' bool IsZeroIP(IP *ip); ^~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:278:15: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(&t.IP, ip, sizeof(t.IP)); ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:6: note: expected 'void *' but argument is of type 'const IP * {aka const struct IP *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:281:18: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (IsEmptyStr(hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:6: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:295:22: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(&entry->IP, ip, sizeof(entry->IP)); ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:6: note: expected 'void *' but argument is of type 'const IP * {aka const struct IP *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:302:32: warning: passing argument 2 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (StrCmp(entry->Hostname, hostname) != 0) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:42:5: note: expected 'char *' but argument is of type 'const char *' int StrCmp(char *str1, char *str2); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:305:31: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] entry->Hostname = CopyStr(hostname); ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolve': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:316:51: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if ((ipv6 == NULL && ipv4 == NULL) || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:6: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:353:59: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (iplist_v6 == NULL || iplist_v4 == NULL || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:6: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:358:14: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (StrCmpi(hostname, "localhost") == 0) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:5: note: expected 'char *' but argument is of type 'const char *' int StrCmpi(char *str1, char *str2); ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:371:19: warning: passing argument 2 of 'StrToIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (StrToIP(&ip, hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1098:6: note: expected 'char *' but argument is of type 'const char *' bool StrToIP(IP *ip, char *str); ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:414:31: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] resolver->Hostname = CopyStr(hostname); ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ [ 13%] Linking C executable hamcorebuilder /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolver': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:515:22: warning: passing argument 2 of 'InAddrToIP6' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] InAddrToIP6(&ip, &in->sin6_addr); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1095:6: note: expected 'struct in6_addr *' but argument is of type 'const struct in6_addr *' void InAddrToIP6(IP *ip, struct in6_addr *addr); ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:531:21: warning: passing argument 2 of 'InAddrToIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] InAddrToIP(&ip, &in->sin_addr); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1094:6: note: expected 'struct in_addr *' but argument is of type 'const struct in_addr *' void InAddrToIP(IP *ip, struct in_addr *addr); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveReverse': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:556:43: warning: passing argument 1 of 'IsZeroIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (dst == NULL || size == 0 || IsZeroIP(ip)) ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' bool IsZeroIP(IP *ip); ^~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:584:22: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(&resolver->IP, ip, sizeof(resolver->IP)); ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:6: note: expected 'void *' but argument is of type 'const IP * {aka const struct IP *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'GetIPEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:680:31: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (ip == NULL || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:6: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'ReleaseDnsResolver': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:718:8: warning: passing argument 1 of 'Free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Free(p->Hostname); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:184:6: note: expected 'void *' but argument is of type 'const char *' void Free(void *addr); ^~~~ [ 14%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Internat.c.o [ 15%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/HTTP.c.o [ 15%] Built target hamcorebuilder [ 16%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Kernel.c.o [ 17%] Building hamcore.se2 archive file... /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c: In function 'UnixStrToUni': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:772:24: warning: passing argument 2 of 'iconv' from incompatible pointer type [-Wincompatible-pointer-types] if (iconv((iconv_t)d, (char **)&inbuf, (size_t *)&insize, (char **)&outbuf, (size_t *)&outsize) == (size_t)(-1)) ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:22:0: /usr/include/iconv.h:46:8: note: expected 'const char ** restrict' but argument is of type 'char **' size_t iconv(iconv_t, const char ** __restrict, ^~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c: In function 'UnixUniToStr': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:845:24: warning: passing argument 2 of 'iconv' from incompatible pointer type [-Wincompatible-pointer-types] if (iconv((iconv_t)d, (char **)&inbuf, (size_t *)&insize, (char **)&outbuf, (size_t *)&outsize) == (size_t)(-1)) ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:22:0: /usr/include/iconv.h:46:8: note: expected 'const char ** restrict' but argument is of type 'char **' size_t iconv(iconv_t, const char ** __restrict, ^~~~~ [ 18%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Mayaqua.c.o [ 19%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Memory.c.o In file included from /usr/include/stdio.h:597:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Mayaqua.h:13, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/FileIO.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:12: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'InitCanaryRand': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:115:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (UINT64)InitCanaryRand, ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:116:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (UINT64)&canary_inited, ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:117:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (UINT64) & ((canary_rand_data[0].Data)[0]), ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:118:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (UINT64)&random_seed[0], ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:122:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (UINT64)p1, ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:123:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (UINT64)p2, ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'MallocEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3645:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tag1->Magic = canary_memtag_magic1 ^ ((UINT64)tag1 * GOLDEN_RATION_PRIME_U64); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3650:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tag2->Magic = canary_memtag_magic2 ^ ((UINT64)tag2 * GOLDEN_RATION_PRIME_U64); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'ReAlloc': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3747:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tag1_new->Magic = canary_memtag_magic1 ^ ((UINT64)tag1_new * GOLDEN_RATION_PRIME_U64); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3752:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] tag2_new->Magic = canary_memtag_magic2 ^ ((UINT64)tag2_new * GOLDEN_RATION_PRIME_U64); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'CheckMemTag1': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3810:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (tag->Magic != (canary_memtag_magic1 ^ ((UINT64)tag * GOLDEN_RATION_PRIME_U64))) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'CheckMemTag2': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3827:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (tag->Magic != (canary_memtag_magic2 ^ ((UINT64)tag * GOLDEN_RATION_PRIME_U64))) ^ hamcore.se2 builder Destination: "hamcore.se2" Source: "/pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/bin/hamcore" Done! [ 19%] Built target hamcore-archive-build [ 20%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Microsoft.c.o [ 21%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Network.c.o [ 22%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/OS.c.o [ 23%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Object.c.o [ 24%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Pack.c.o [ 25%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Proxy.c.o [ 26%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Secure.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'SignSecByObject': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:343:66: warning: passing argument 5 of 'sec->Api->C_Sign' from incompatible pointer type [-Wincompatible-pointer-types] ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:343:66: note: expected 'CK_ULONG_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:347:67: warning: passing argument 5 of 'sec->Api->C_Sign' from incompatible pointer type [-Wincompatible-pointer-types] ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:347:67: note: expected 'CK_ULONG_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecKey': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:525:83: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:525:83: note: expected 'CK_OBJECT_HANDLE_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecCert': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:732:83: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:732:83: note: expected 'CK_OBJECT_HANDLE_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'EnumSecObject': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:46: warning: passing argument 2 of 'sec->Api->C_FindObjects' from incompatible pointer type [-Wincompatible-pointer-types] if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:46: note: expected 'CK_OBJECT_HANDLE_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:93: warning: passing argument 4 of 'sec->Api->C_FindObjects' from incompatible pointer type [-Wincompatible-pointer-types] if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:93: note: expected 'CK_ULONG_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1360:76: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] if (sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object) != CKR_OK) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1360:76: note: expected 'CK_OBJECT_HANDLE_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSecSession': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1644:52: warning: passing argument 5 of 'sec->Api->C_OpenSession' from incompatible pointer type [-Wincompatible-pointer-types] CKF_RW_SESSION | CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1644:52: note: expected 'CK_SESSION_HANDLE_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' [ 27%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Str.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1649:36: warning: passing argument 5 of 'sec->Api->C_OpenSession' from incompatible pointer type [-Wincompatible-pointer-types] CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1649:36: note: expected 'CK_SESSION_HANDLE_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSec': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1737:49: warning: passing argument 3 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] if ((err = sec->Api->C_GetSlotList(true, NULL, &sec->NumSlot)) != CKR_OK || sec->NumSlot == 0) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1737:49: note: expected 'CK_ULONG_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:36: warning: passing argument 2 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:36: note: expected 'CK_SLOT_ID_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:53: warning: passing argument 3 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:53: note: expected 'CK_ULONG_PTR {aka long unsigned int *}' but argument is of type 'UINT * {aka unsigned int *}' [ 28%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Table.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'InitSecureDeviceList': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1885:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SECURE_DEVICE *dev = &SupportedList[i]; ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'keylog_cb_func': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16130:8: warning: passing argument 1 of 'Debug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Debug(line); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:19:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:49:6: note: expected 'char *' but argument is of type 'const char *' void Debug(char *fmt, ...); ^~~~~ [ 29%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/TcpIp.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c: In function 'ParsePacketIPv6Header': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:2350:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] info->TotalHeaderSize = (UINT)((UINT64)(info->Payload) - (UINT64)(info->IPv6Header)); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:2350:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] info->TotalHeaderSize = (UINT)((UINT64)(info->Payload) - (UINT64)(info->IPv6Header)); ^ [ 30%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tick64.c.o [ 31%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tracking.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Tracking.c: In function 'GetCallStackStr': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Tracking.c:749:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)s->offset, s->name, UINT64_TO_POINTER(s->disp)); ^ [ 32%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Unix.c.o [ 33%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Win32.c.o sh: /usr/pkg/bin/cmake: not found --- libmayaqua.so --- *** [libmayaqua.so] Error code 127 make[2]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 1 error make[2]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 --- src/Mayaqua/CMakeFiles/mayaqua.dir/all --- *** [src/Mayaqua/CMakeFiles/mayaqua.dir/all] Error code 2 make[1]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 1 error make[1]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 *** [all] Error code 2 make: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 1 error make: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/net/softether *** Error code 1 Stop. make: stopped in /usr/pkgsrc/net/softether