=> 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/Mayaqua/CMakeFiles/mayaqua.dir/Crypto/Key.c.o [ 6%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/DNS.c.o [ 7%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encoding.c.o [ 9%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/FileIO.c.o [ 9%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encrypt.c.o [ 10%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/HTTP.c.o [ 11%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/main.c.o [ 12%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Cfg.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': [ 13%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/FileSystem.c.o /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); ^~~~~~~ /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/Kernel.c.o /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, ^~~~~ [ 16%] Linking C executable hamcorebuilder [ 16%] Built target hamcorebuilder [ 17%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Mayaqua.c.o [ 18%] Building hamcore.se2 archive file... [ 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))) ^ [ 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 /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, ...); ^~~~~ [ 25%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Proxy.c.o [ 26%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Secure.c.o [ 27%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Str.c.o hamcore.se2 builder Destination: "hamcore.se2" Source: "/pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/bin/hamcore" Done! [ 27%] Built target hamcore-archive-build /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 *}' /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 *}' /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]; ^ [ 28%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Table.c.o [ 29%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/TcpIp.c.o [ 30%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tick64.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)); ^ [ 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 [ 34%] Linking C shared library ../../libmayaqua.so [ 34%] Built target mayaqua [ 34%] Building C object src/Cedar/CMakeFiles/cedar.dir/Account.c.o [ 35%] Building C object src/Cedar/CMakeFiles/cedar.dir/AzureClient.c.o [ 36%] Building C object src/Cedar/CMakeFiles/cedar.dir/Cedar.c.o [ 37%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeUnix.c.o [ 39%] Building C object src/Cedar/CMakeFiles/cedar.dir/Admin.c.o [ 39%] Building C object src/Cedar/CMakeFiles/cedar.dir/CM.c.o [ 40%] Building C object src/Cedar/CMakeFiles/cedar.dir/Bridge.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeWin32.c.o [ 42%] Building C object src/Cedar/CMakeFiles/cedar.dir/Client.c.o [ 43%] Building C object src/Cedar/CMakeFiles/cedar.dir/Command.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PtGetPublicX25519': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:2733:47: warning: passing argument 4 of 'ParseCommandList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] LIST *o = ParseCommandList(c, cmd_name, str, args, sizeof(args) / sizeof(args[0])); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:13:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Console.h:110:7: note: expected 'PARAM * {aka struct PARAM *}' but argument is of type 'const PARAM * {aka const struct PARAM *}' LIST *ParseCommandList(CONSOLE *c, char *cmd_name, wchar_t *command, PARAM param[], UINT num_param); ^~~~~~~~~~~~~~~~ [ 44%] Building C object src/Cedar/CMakeFiles/cedar.dir/Connection.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsWgkEnum': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10829:23: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = CopyStrToUni(wgk->Key); ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10830:23: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] hub = CopyStrToUni(wgk->Hub); ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10831:24: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] user = CopyStrToUni(wgk->User); ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ [ 45%] Building C object src/Cedar/CMakeFiles/cedar.dir/Console.c.o [ 46%] Building C object src/Cedar/CMakeFiles/cedar.dir/DDNS.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'SendKeepAlive': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:949:14: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(seek, &port, sizeof(port)); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: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 USHORT * {aka const short unsigned int *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'ConnectionReceive': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2232:17: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (Cmp(keep_alive_buffer, UDP_NAT_T_PORT_SIGNATURE_IN_KEEP_ALIVE, nat_t_port_sig_size) == 0) ^~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: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 UCHAR * {aka const unsigned char *}' int Cmp(void *p1, void *p2, UINT size); ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2253:17: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (Cmp(keep_alive_buffer, UDP_NAT_T_IP_SIGNATURE_IN_KEEP_ALIVE, nat_t_ip_sig_size) == 0) ^~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: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 UCHAR * {aka const unsigned char *}' int Cmp(void *p1, void *p2, UINT size); ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2258:22: warning: passing argument 2 of 'SetIP6' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetIP6(&ip, keep_alive_buffer); ^~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1277:6: note: expected 'UCHAR * {aka unsigned char *}' but argument is of type 'const UCHAR * {aka const unsigned char *}' void SetIP6(IP *ip, UCHAR *value); ^~~~~~ [ 47%] Building C object src/Cedar/CMakeFiles/cedar.dir/Database.c.o [ 48%] Building C object src/Cedar/CMakeFiles/cedar.dir/EM.c.o [ 49%] Building C object src/Cedar/CMakeFiles/cedar.dir/EtherLog.c.o [ 50%] Building C object src/Cedar/CMakeFiles/cedar.dir/Hub.c.o [ 51%] Building C object src/Cedar/CMakeFiles/cedar.dir/IPC.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c: In function 'ParseAndExtractMsChapV2InfoFromPassword': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c:65:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] d->MsChapV2_EapClient = (EAP_CLIENT *)eap_client_ptr; ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c: In function 'NewIPC': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c:393:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] UINT64 ptr = (UINT64)eap_client; ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c:514:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ipc->IpcSessionSharedBuffer = (SHARED_BUFFER *)u64; ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Hub.c: In function 'CmpAccessList': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Hub.c:3232:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] UINT64 size64 = ((UINT64)(&a1->UniqueId) - (UINT64)(&a1->Active)); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Hub.c:3232:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] UINT64 size64 = ((UINT64)(&a1->UniqueId) - (UINT64)(&a1->Active)); ^ [ 52%] Building C object src/Cedar/CMakeFiles/cedar.dir/Layer3.c.o [ 53%] Building C object src/Cedar/CMakeFiles/cedar.dir/Link.c.o [ 54%] Building C object src/Cedar/CMakeFiles/cedar.dir/Listener.c.o [ 55%] Building C object src/Cedar/CMakeFiles/cedar.dir/Logging.c.o [ 56%] Building C object src/Cedar/CMakeFiles/cedar.dir/NM.c.o [ 57%] Building C object src/Cedar/CMakeFiles/cedar.dir/Nat.c.o [ 58%] Building C object src/Cedar/CMakeFiles/cedar.dir/NativeStack.c.o [ 59%] Building C object src/Cedar/CMakeFiles/cedar.dir/NullLan.c.o [ 60%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto.c.o [ 61%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_EtherIP.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoLog': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:32:29: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] proto_name = CopyStrToUni(session->Impl->Name()); ^~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoContainerCompare': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:84:17: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return StrCmpi(container_1->Name, container_2->Name); ^~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: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/Cedar/Proto.c:84:36: warning: passing argument 2 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return StrCmpi(container_1->Name, container_2->Name); ^~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: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/Cedar/Proto.c: In function 'ProtoSessionNew': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:396:26: warning: passing argument 2 of 'CopyIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] CopyIP(&session->SrcIp, src_ip); ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' void CopyIP(IP *dst, IP *src); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:398:26: warning: passing argument 2 of 'CopyIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] CopyIP(&session->DstIp, dst_ip); ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' void CopyIP(IP *dst, IP *src); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoSetListenIP': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:447:38: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(&proto->UdpListener->ListenIP, ip, sizeof(proto->UdpListener->ListenIP)); ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:12: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/Cedar/Proto.c: In function 'ProtoHandleConnection': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:502:16: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (StrCmp(tmp->Name, protocol) == 0) ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: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 * const' int StrCmp(char *str1, char *str2); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:502:27: warning: passing argument 2 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (StrCmp(tmp->Name, protocol) == 0) ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: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/Cedar/Proto.c:547:29: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] proto_name = CopyStrToUni(container->Name); ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char * const' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:640:38: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wchar_t *proto_name = CopyStrToUni(impl->Name()); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ [ 62%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IKE.c.o [ 63%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IkePacket.c.o [ 64%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IPsec.c.o [ 65%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_L2TP.c.o [ 66%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_OpenVPN.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c: In function 'OvsIsPacketForMe': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c:107:43: warning: passing argument 1 of 'OvsParsePacket' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] OPENVPN_PACKET *packet = OvsParsePacket(data, size); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c:8:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.h:235:17: note: expected 'UCHAR * {aka unsigned char *}' but argument is of type 'const void *' OPENVPN_PACKET *OvsParsePacket(UCHAR *data, UINT size); ^~~~~~~~~~~~~~ [ 67%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_PPP.c.o [ 68%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_SSTP.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_PPP.c: In function 'PPPParseMSCHAP2ResponsePacketEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_PPP.c:3102:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] UINT64 eap_client_ptr = (UINT64)p->EapClient; ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c: In function 'NewSstpServer': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:1019:55: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] StrCpy(s->ClientHostName, sizeof(s->ClientHostName), hostname); ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:17:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:6: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:1020:59: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] StrCpy(s->ClientCipherName, sizeof(s->ClientCipherName), cipher); ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:17:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:6: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ^~~~~~ [ 69%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_Win7.c.o [ 70%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_WireGuard.c.o [ 71%] Building C object src/Cedar/CMakeFiles/cedar.dir/Protocol.c.o [ 72%] Building C object src/Cedar/CMakeFiles/cedar.dir/Radius.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsOptionStringValue': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:56:13: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: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/Cedar/Proto_WireGuard.c:56:50: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: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/Cedar/Proto_WireGuard.c: In function 'WgsProcessDatagrams': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:248:28: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(&session->IPLocal, &packet->DstIP, sizeof(session->IPLocal)); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: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/Cedar/Proto_WireGuard.c:249:29: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(&session->IPRemote, &packet->SrcIP, sizeof(session->IPRemote)); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: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/Cedar/Proto_WireGuard.c: In function 'WgsDetectMessageType': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:412:13: warning: passing argument 1 of 'IsZero' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (IsZero(packet->Header.Reserved, sizeof(packet->Header.Reserved)) == false) ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:355:6: note: expected 'void *' but argument is of type 'const BYTE * {aka const unsigned char *}' bool IsZero(void *data, UINT size); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsMSS': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:435:12: warning: passing argument 1 of 'IsIP4' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (IsIP4(&session->IPRemote)) ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1274:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' bool IsIP4(IP *ip); ^~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsIPCNew': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:475:53: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] StrCpy(param.ClientName, sizeof(param.ClientName), WgsName()); ^~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:6: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsCreateTransportData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:834:32: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(ret->EncapsulatedPacket, data, size); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: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/Cedar/Proto_WireGuard.c: In function 'WgsEncryptData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:939:42: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: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 UINT64 * {aka const long long unsigned int *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsDecryptData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:957:42: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: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 UINT64 * {aka const long long unsigned int *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsEphemeral': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1010:22: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(ephemeral_dst, ephemeral_src, WG_KEY_SIZE); ^~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: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 BYTE * {aka const unsigned char *}' void Copy(void *dst, void *src, UINT size); ^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsHKDF': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1021:15: warning: passing argument 2 of 'SetMdKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SetMdKey(md, chaining_key, WG_HASH_SIZE); ^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:11:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Encrypt.h:440:6: note: expected 'void *' but argument is of type 'const BYTE * {aka const unsigned char *}' bool SetMdKey(MD *md, void *key, UINT key_size); ^~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1024:24: warning: passing argument 3 of 'MdProcess' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] MdProcess(md, secret, data, data_size); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:11:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Encrypt.h:441:6: note: expected 'void *' but argument is of type 'const BYTE * {aka const unsigned char *}' UINT MdProcess(MD *md, void *dest, void *src, UINT size); ^~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ServerAccept': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:1552:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] release_me_eap_client = (EAP_CLIENT *)ptr; ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:1612:44: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (c->FirstSock != NULL && IsEmptyStr(c->FirstSock->SslVersion) == false) ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: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/Cedar/Protocol.c:1614:30: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] c->SslVersion = CopyStr(c->FirstSock->SslVersion); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: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/Cedar/Protocol.c:2116:37: warning: passing argument 1 of 'IsLocalHostIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (s != NULL && IsLocalHostIP(&s->RemoteIP) == false) ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14:0, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1282:6: note: expected 'IP * {aka struct IP *}' but argument is of type 'const IP * {aka const struct IP *}' bool IsLocalHostIP(IP *ip); ^~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ClientConnect': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:4980:27: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] c->SslVersion = CopyStr(c->FirstSock->SslVersion); ^ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: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/Cedar/Protocol.c: In function 'PackWelcome': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:5173:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] PackAddInt64(p, "IpcSessionSharedBuffer", (UINT64)s->IpcSessionSharedBuffer); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ClientConnectGetSocket': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:6462:7: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration] if (memcmp(sock->LocalIP.address, c->Session->LocalIP_CacheForNextConnect.address, sizeof(sock->LocalIP.address)) == 0) { ^~~~~~ [ 73%] Building C object src/Cedar/CMakeFiles/cedar.dir/Remote.c.o [ 74%] Building C object src/Cedar/CMakeFiles/cedar.dir/SM.c.o [ 75%] Building C object src/Cedar/CMakeFiles/cedar.dir/SW.c.o [ 76%] Building C object src/Cedar/CMakeFiles/cedar.dir/Sam.c.o [ 77%] Building C object src/Cedar/CMakeFiles/cedar.dir/SeLowUser.c.o [ 78%] Building C object src/Cedar/CMakeFiles/cedar.dir/SecureNAT.c.o [ 79%] Building C object src/Cedar/CMakeFiles/cedar.dir/Server.c.o [ 80%] Building C object src/Cedar/CMakeFiles/cedar.dir/Session.c.o [ 81%] Building C object src/Cedar/CMakeFiles/cedar.dir/UT.c.o [ 82%] Building C object src/Cedar/CMakeFiles/cedar.dir/UdpAccel.c.o [ 83%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanUnix.c.o [ 84%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanWin32.c.o [ 84%] Building C object src/Cedar/CMakeFiles/cedar.dir/Virtual.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadConfigurationCfg': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:2792:35: warning: passing argument 2 of 'CfgGetFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] FOLDER *f = CfgGetFolder(f9, name); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:9: note: expected 'char *' but argument is of type 'const char *' FOLDER *CfgGetFolder(FOLDER *parent, char *name); ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:2796:42: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] StrCpy(wgk->Key, sizeof(wgk->Key), name); ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:36:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:6: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadProtoCfg': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:6386:32: warning: passing argument 2 of 'CfgGetFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] FOLDER *ff = CfgGetFolder(f, container->Name); ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:9: note: expected 'char *' but argument is of type 'const char * const' FOLDER *CfgGetFolder(FOLDER *parent, char *name); ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiWriteProtoCfg': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:6448:35: warning: passing argument 2 of 'CfgCreateFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] FOLDER *ff = CfgCreateFolder(f, container->Name); ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:86:9: note: expected 'char *' but argument is of type 'const char * const' FOLDER *CfgCreateFolder(FOLDER *parent, char *name); ^~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiGetNextFarmMember': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7175:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] PackAddInt64Ex(p, "Key", (UINT64)f, i, num); ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7254:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] FARM_MEMBER *f = (FARM_MEMBER *)ret_key; ^ [ 85%] Building C object src/Cedar/CMakeFiles/cedar.dir/WaterMark.c.o [ 86%] Building C object src/Cedar/CMakeFiles/cedar.dir/WebUI.c.o [ 87%] Building C object src/Cedar/CMakeFiles/cedar.dir/WinUi.c.o [ 88%] Building C object src/Cedar/CMakeFiles/cedar.dir/Wpc.c.o [ 89%] Building C object src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2s.c:23:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2-config.h:69:2: error: #error "This code requires at least SSE2." #error "This code requires at least SSE2." ^~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2s.c: In function 'blake2s_compress': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2s.c:191:14: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi] row1 = ff0 = LOADU( &S->h[0] ); --- src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o --- *** [src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o] Error code 1 make[2]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c: In function 'DecodeSafe64': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:1297:17: warning: passing argument 1 of 'StrLen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] size = StrLen(src); ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:19:0: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:31:6: note: expected 'char *' but argument is of type 'const char *' UINT StrLen(char *str); ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:1301:12: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Copy(tmp, src, size); ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:15: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 char *' void Copy(void *dst, void *src, UINT size); ^~~~ 1 error make[2]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 --- src/Cedar/CMakeFiles/cedar.dir/all --- *** [src/Cedar/CMakeFiles/cedar.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