+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/softether-5.02.5181nb1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/softether-5.02.5181nb1/work.log WARNING: USE_CMAKE is deprecated; use devel/cmake/build.mk instead. ===> Building for softether-5.02.5181nb1 [ 0%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/FileSystem.c.o [ 1%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Hamcore.c.o [ 2%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Memory.c.o [ 3%] Linking C static library liblibhamcore.a [ 3%] Built target libhamcore [ 4%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/linux_features_aggregator.c.o [ 5%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_clang_gcc.c.o [ 6%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_msvc.c.o [ 6%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_aarch64.c.o [ 7%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_arm.c.o [ 8%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_mips.c.o [ 9%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_ppc.c.o [ 10%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_x86.c.o [ 11%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/filesystem.c.o [ 12%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/hwcaps.c.o [ 12%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/stack_line_reader.c.o [ 13%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/string_view.c.o [ 14%] Linking C static library libcpu_features.a [ 14%] Built target cpu_features [ 15%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/list_cpu_features.dir/src/utils/list_cpu_features.c.o [ 16%] Linking C executable list_cpu_features [ 16%] Built target list_cpu_features [ 17%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/main.c.o [ 18%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/FileSystem.c.o [ 19%] Linking C executable hamcorebuilder [ 19%] Built target hamcorebuilder [ 20%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Cfg.c.o [ 20%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Crypto/Key.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c: In function 'CryptoKeyRawNew': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c:63:33: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 63 | Copy(key->Data, data, key->Size); | ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c:4: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/./Memory.h:194:28: note: expected 'void *' but argument is of type 'const void *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ [ 21%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/DNS.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheCompare': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:42:26: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 42 | return StrCmpi(c1->Hostname, c2->Hostname); | ~~^~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:42:40: warning: passing argument 2 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 42 | return StrCmpi(c1->Hostname, c2->Hostname); | ~~^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:31: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseCompare': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:99:59: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 99 | #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) | ~~~~~^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:16: note: in expansion of macro 'CmpIpAddr' 55 | return CmpIpAddr(&c1->IP, &c2->IP); | ^~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:196:15: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:99:75: warning: passing argument 2 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 99 | #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) | ~~~~~^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:16: note: in expansion of macro 'CmpIpAddr' 55 | return CmpIpAddr(&c1->IP, &c2->IP); | ^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:196:25: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheFind': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:133:56: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 133 | if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdate': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:153:56: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 153 | if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:164:51: warning: passing argument 2 of 'AddHostIPAddressToList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 164 | AddHostIPAddressToList(iplist_v6, ipv6); | ^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:42: note: expected 'IP *' but argument is of type 'const IP *' 1371 | void AddHostIPAddressToList(LIST *o, IP *ip); | ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:170:51: warning: passing argument 2 of 'AddHostIPAddressToList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 170 | AddHostIPAddressToList(iplist_v4, ipv4); | ^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:42: note: expected 'IP *' but argument is of type 'const IP *' 1371 | void AddHostIPAddressToList(LIST *o, IP *ip); | ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdateEx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:182:56: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 182 | if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:212:59: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 212 | entry->Hostname = CopyStr(hostname); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:224:71: warning: passing argument 1 of 'CloneIPAddressList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 224 | entry->IPList_v6 = CloneIPAddressList(iplist_v6); | ^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:32: note: expected 'LIST *' but argument is of type 'const LIST *' 1368 | LIST *CloneIPAddressList(LIST *o); | ~~~~~~^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:233:71: warning: passing argument 1 of 'CloneIPAddressList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 233 | entry->IPList_v4 = CloneIPAddressList(iplist_v4); | ^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:32: note: expected 'LIST *' but argument is of type 'const LIST *' 1368 | LIST *CloneIPAddressList(LIST *o); | ~~~~~~^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseFind': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:258:29: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 258 | Copy(&t.IP, ip, sizeof(t.IP)); | ^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseUpdate': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:268:54: warning: passing argument 1 of 'IsZeroIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 268 | if (DnsCacheIsEnabled() == false || IsZeroIP(ip)) | ^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:19: note: expected 'IP *' but argument is of type 'const IP *' 1230 | bool IsZeroIP(IP *ip); | ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:278:29: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 278 | Copy(&t.IP, ip, sizeof(t.IP)); | ^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:281:32: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 281 | if (IsEmptyStr(hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:295:50: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 295 | Copy(&entry->IP, ip, sizeof(entry->IP)); | ^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:302:53: warning: passing argument 2 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 302 | if (StrCmp(entry->Hostname, hostname) != 0) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:42:30: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:305:59: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 305 | entry->Hostname = CopyStr(hostname); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolve': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:316:58: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 316 | if ((ipv6 == NULL && ipv4 == NULL) || IsEmptyStr(hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveEx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:353:66: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 353 | if (iplist_v6 == NULL || iplist_v4 == NULL || IsEmptyStr(hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:358:21: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 358 | if (StrCmpi(hostname, "localhost") == 0) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:371:26: warning: passing argument 2 of 'StrToIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 371 | if (StrToIP(&ip, hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1098:28: note: expected 'char *' but argument is of type 'const char *' 1098 | bool StrToIP(IP *ip, char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:414:38: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 414 | resolver->Hostname = CopyStr(hostname); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolver': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:515:50: warning: passing argument 2 of 'InAddrToIP6' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 515 | InAddrToIP6(&ip, &in->sin6_addr); | ^~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1095:43: note: expected 'struct in6_addr *' but argument is of type 'const struct in6_addr *' 1095 | void InAddrToIP6(IP *ip, struct in6_addr *addr); | ~~~~~~~~~~~~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:531:49: warning: passing argument 2 of 'InAddrToIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 531 | InAddrToIP(&ip, &in->sin_addr); | ^~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1094:41: note: expected 'struct in_addr *' but argument is of type 'const struct in_addr *' 1094 | void InAddrToIP(IP *ip, struct in_addr *addr); | ~~~~~~~~~~~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveReverse': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:556:50: warning: passing argument 1 of 'IsZeroIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 556 | if (dst == NULL || size == 0 || IsZeroIP(ip)) | ^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:19: note: expected 'IP *' but argument is of type 'const IP *' 1230 | bool IsZeroIP(IP *ip); | ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:584:29: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 584 | Copy(&resolver->IP, ip, sizeof(resolver->IP)); | ^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'GetIPEx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:680:38: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 680 | if (ip == NULL || IsEmptyStr(hostname)) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'ReleaseDnsResolver': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:718:23: warning: passing argument 1 of 'Free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 718 | Free(p->Hostname); | ~^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:184:17: note: expected 'void *' but argument is of type 'const char *' 184 | void Free(void *addr); | ~~~~~~^~~~ [ 22%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encoding.c.o [ 23%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encrypt.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Enc_tls1_P_hash': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:118:9: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 118 | ctx = HMAC_CTX_new(); | ^~~ In file included from /opt/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /opt/pkg/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:119:9: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 119 | ctx_tmp = HMAC_CTX_new(); | ^~~~~~~ /opt/pkg/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:130:9: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 130 | HMAC_Init_ex(ctx,sec,sec_len,md, NULL); | ^~~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:131:9: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 131 | HMAC_Init_ex(ctx_tmp,sec,sec_len,md, NULL); | ^~~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:132:9: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 132 | HMAC_Update(ctx,seed,seed_len); | ^~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:133:9: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 133 | HMAC_Final(ctx,A1,&A1_len); | ^~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:138:17: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 138 | HMAC_Init_ex(ctx,NULL,0,NULL,NULL); /* re-init */ | ^~~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:139:17: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 139 | HMAC_Init_ex(ctx_tmp,NULL,0,NULL,NULL); /* re-init */ | ^~~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:140:17: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 140 | HMAC_Update(ctx,A1,A1_len); | ^~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:141:17: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 141 | HMAC_Update(ctx_tmp,A1,A1_len); | ^~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:142:17: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 142 | HMAC_Update(ctx,seed,seed_len); | ^~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:146:25: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 146 | HMAC_Final(ctx,out,&j); | ^~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:149:25: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 149 | HMAC_Final(ctx_tmp,A1,&A1_len); /* calc the next A1 value */ | ^~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:153:25: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 153 | HMAC_Final(ctx,A1,&A1_len); | ^~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:159:9: warning: 'HMAC_CTX_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 159 | HMAC_CTX_free(ctx); | ^~~~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:160:9: warning: 'HMAC_CTX_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 160 | HMAC_CTX_free(ctx_tmp); | ^~~~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'HashMd4': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:204:9: warning: 'MD4' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 204 | MD4(src, size, dst); | ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:30: /opt/pkg/include/openssl/md4.h:53:38: note: declared here 53 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD4(const unsigned char *d, size_t n, | ^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Md5': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:216:9: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 216 | MD5(src, size, dst); | ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:29: /opt/pkg/include/openssl/md5.h:52:38: note: declared here 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, | ^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'NewMdEx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:334:17: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 334 | m->Ctx = HMAC_CTX_new(); | ^ /opt/pkg/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'SetMdKey': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:366:9: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 366 | if (HMAC_Init_ex(md->Ctx, key, key_size, md->Md, NULL) == false) | ^~ /opt/pkg/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'MdProcess': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:389:17: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 389 | if (HMAC_Init_ex(md->Ctx, NULL, 0, NULL, NULL) == false) | ^~ /opt/pkg/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:395:17: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 395 | if (HMAC_Update(md->Ctx, src, size) == false) | ^~ /opt/pkg/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:401:17: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 401 | if (HMAC_Final(md->Ctx, dest, &len) == false) | ^~ /opt/pkg/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'FreeMd': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:437:25: warning: 'HMAC_CTX_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 437 | HMAC_CTX_free(md->Ctx); | ^~~~~~~~~~~~~ /opt/pkg/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaPublicToBuf': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:663:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 663 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^~~ In file included from /opt/pkg/include/openssl/x509.h:29, from /opt/pkg/include/openssl/ssl.h:32: /opt/pkg/include/openssl/evp.h:1356:22: note: declared here 1356 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:663:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 663 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:669:9: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 669 | RSA_get0_key(rsa, &n, NULL, NULL); | ^~~~~~~~~~~~ In file included from /opt/pkg/include/openssl/x509.h:36: /opt/pkg/include/openssl/rsa.h:228:28: note: declared here 228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaVerifyEx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2324:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2324 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^~~ /opt/pkg/include/openssl/evp.h:1356:22: note: declared here 1356 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2324:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2324 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2336:9: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2336 | rsa_size = RSA_size(rsa); | ^~~~~~~~ /opt/pkg/include/openssl/rsa.h:215:27: note: declared here 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2341:9: warning: 'RSA_public_decrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2341 | if (RSA_public_decrypt(bits / 8, sign, decrypt_data, rsa, RSA_PKCS1_PADDING) <= 0) | ^~ /opt/pkg/include/openssl/rsa.h:299:5: note: declared here 299 | int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaSignEx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2386:9: warning: 'RSA_private_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2386 | if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) | ^~ /opt/pkg/include/openssl/rsa.h:296:5: note: declared here 296 | int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2386:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2386 | if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) | ^~ /opt/pkg/include/openssl/evp.h:1356:22: note: declared here 1356 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2386:58: warning: passing argument 4 of 'RSA_private_encrypt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2386 | if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/rsa.h:297:30: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'const struct rsa_st *' 297 | RSA *rsa, int padding); | ~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaCheck': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2459:17: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2459 | rsa = RSA_new(); | ^~~ /opt/pkg/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2460:17: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2460 | ret = RSA_generate_key_ex(rsa, bit, e, NULL); | ^~~ /opt/pkg/include/openssl/rsa.h:271:27: note: declared here 271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2474:17: warning: 'i2d_RSAPrivateKey_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2474 | i2d_RSAPrivateKey_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/x509.h:622:27: note: declared here 622 | OSSL_DEPRECATEDIN_3_0 int i2d_RSAPrivateKey_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2485:17: warning: 'i2d_RSA_PUBKEY_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2485 | i2d_RSA_PUBKEY_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/x509.h:626:27: note: declared here 626 | OSSL_DEPRECATEDIN_3_0 int i2d_RSA_PUBKEY_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2492:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2492 | RSA_free(rsa); | ^~~~~~~~ /opt/pkg/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaGen': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2542:17: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2542 | rsa = RSA_new(); | ^~~ /opt/pkg/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2543:17: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2543 | ret = RSA_generate_key_ex(rsa, bit, e, NULL); | ^~~ /opt/pkg/include/openssl/rsa.h:271:27: note: declared here 271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2557:17: warning: 'i2d_RSAPrivateKey_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2557 | i2d_RSAPrivateKey_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/x509.h:622:27: note: declared here 622 | OSSL_DEPRECATEDIN_3_0 int i2d_RSAPrivateKey_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2568:17: warning: 'i2d_RSA_PUBKEY_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2568 | i2d_RSA_PUBKEY_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/x509.h:626:27: note: declared here 626 | OSSL_DEPRECATEDIN_3_0 int i2d_RSA_PUBKEY_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2578:9: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2578 | RSA_free(rsa); | ^~~~~~~~ /opt/pkg/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'OpensslEngineToK': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:3222:5: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 3222 | ENGINE *engine = ENGINE_by_id(engine_name); | ^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:23: /opt/pkg/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:3223:5: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 3223 | ENGINE_init(engine); | ^~~~~~~~~~~ /opt/pkg/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:3225:5: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 3225 | pkey = ENGINE_load_private_key(engine, key_file_name, NULL, NULL); | ^~~~ /opt/pkg/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'NewCrypt': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4077:9: warning: 'RC4_set_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4077 | RC4_set_key(c->Rc4Key, size, (UCHAR *)key); | ^~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:28: /opt/pkg/include/openssl/rc4.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len, | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Encrypt': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4099:9: warning: 'RC4' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4099 | RC4(c->Rc4Key, size, src, dst); | ^~~ /opt/pkg/include/openssl/rc4.h:37:28: note: declared here 37 | OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len, | ^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Des3Encrypt2': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4114:9: warning: 'DES_ede3_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4114 | DES_ede3_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /opt/pkg/include/openssl/des.h:142:6: note: declared here 142 | void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesEncrypt': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4134:9: warning: 'DES_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4134 | DES_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~ /opt/pkg/include/openssl/des.h:89:6: note: declared here 89 | void DES_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Des3Decrypt2': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4152:9: warning: 'DES_ede3_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4152 | DES_ede3_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/des.h:142:6: note: declared here 142 | void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesEcbEncrypt': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4186:9: warning: 'DES_set_odd_parity' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4186 | DES_set_odd_parity(&key); | ^~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/des.h:176:28: note: declared here 176 | OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key); | ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4187:9: warning: 'DES_set_key_unchecked' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4187 | DES_set_key_unchecked(&key, &ks); | ^~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/des.h:192:6: note: declared here 192 | void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4189:9: warning: 'DES_ecb_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4189 | DES_ecb_encrypt(src, dst, &ks, 1); | ^~~~~~~~~~~~~~~ /opt/pkg/include/openssl/des.h:105:6: note: declared here 105 | void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesDecrypt': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4204:9: warning: 'DES_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4204 | DES_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~ /opt/pkg/include/openssl/des.h:89:6: note: declared here 89 | void DES_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesNewKeyValue': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4226:9: warning: 'DES_set_key_unchecked' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4226 | DES_set_key_unchecked(value, v->KeySchedule); | ^~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/des.h:192:6: note: declared here 192 | void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule); | ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'AesNewKey': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4262:9: warning: 'AES_set_encrypt_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4262 | AES_set_encrypt_key(data, size * 8, k->EncryptKey); | ^~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:34: /opt/pkg/include/openssl/aes.h:51:5: note: declared here 51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4263:9: warning: 'AES_set_decrypt_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4263 | AES_set_decrypt_key(data, size * 8, k->DecryptKey); | ^~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/aes.h:54:5: note: declared here 54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhCompute': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4481:9: warning: 'DH_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4481 | i = DH_compute_key(dst_priv_key, bn, dh->dh); | ^ In file included from /opt/pkg/include/openssl/dsa.h:31, from /opt/pkg/include/openssl/x509.h:37: /opt/pkg/include/openssl/dh.h:235:27: note: declared here 235 | OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key, | ^~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhNew': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4586:9: warning: 'DH_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4586 | dh->dh = DH_new(); | ^~ /opt/pkg/include/openssl/dh.h:210:27: note: declared here 210 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); | ^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4591:9: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4591 | DH_set0_pqg(dh->dh, dhp, NULL, dhg); | ^~~~~~~~~~~ /opt/pkg/include/openssl/dh.h:266:27: note: declared here 266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4598:9: warning: 'DH_generate_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4598 | DH_generate_key(dh->dh); | ^~~~~~~~~~~~~~~ /opt/pkg/include/openssl/dh.h:234:27: note: declared here 234 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); | ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4601:9: warning: 'DH_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4601 | DH_get0_key(dh->dh, &pub, &priv); | ^~~~~~~~~~~ /opt/pkg/include/openssl/dh.h:267:28: note: declared here 267 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, | ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhFree': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4625:9: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4625 | DH_free(dh->dh); | ^~~~~~~ /opt/pkg/include/openssl/dh.h:211:28: note: declared here 211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); | ^~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Internal_HMac': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4652:9: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4652 | m->Ctx = HMAC_CTX_new(); | ^ /opt/pkg/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ [ 24%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/FileIO.c.o [ 25%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/HTTP.c.o [ 26%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Internat.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c: In function 'UnixStrToUni': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:772:31: warning: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types] 772 | if (iconv((iconv_t)d, (char **)&inbuf, (size_t *)&insize, (char **)&outbuf, (size_t *)&outsize) == (size_t)(-1)) | ^~~~~~~~~~~~~~~ | | | char ** In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:22: /opt/pkg/include/iconv.h:82:48: note: expected 'const char **' but argument is of type 'char **' 82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft); | ~~~~~~~~~~~~~~^~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c: In function 'UnixUniToStr': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:845:31: warning: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types] 845 | if (iconv((iconv_t)d, (char **)&inbuf, (size_t *)&insize, (char **)&outbuf, (size_t *)&outsize) == (size_t)(-1)) | ^~~~~~~~~~~~~~~ | | | char ** /opt/pkg/include/iconv.h:82:48: note: expected 'const char **' but argument is of type 'char **' 82 | extern size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft); | ~~~~~~~~~~~~~~^~~~~ [ 26%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Kernel.c.o [ 27%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Mayaqua.c.o [ 28%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Memory.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'CrashNow': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:647:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 647 | UCHAR *c = (UCHAR *)r; | ^ [ 29%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Microsoft.c.o [ 30%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Network.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'NewCancelSpecial': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:10209:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 10209 | c->pipe_read = (int)hEvent; | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'keylog_cb_func': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16130:15: warning: passing argument 1 of 'Debug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 16130 | Debug(line); | ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:19: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:49:18: note: expected 'char *' but argument is of type 'const char *' 49 | void Debug(char *fmt, ...); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'NewSSLCtx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16145:17: warning: 'SSL_CTX_set_ssl_version' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16145 | SSL_CTX_set_ssl_version(ctx, SSLv23_server_method()); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /opt/pkg/include/openssl/ssl.h:2041:12: note: declared here 2041 | __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16149:17: warning: 'SSL_CTX_set_ssl_version' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16149 | SSL_CTX_set_ssl_version(ctx, SSLv23_client_method()); | ^~~~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/ssl.h:2041:12: note: declared here 2041 | __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16167:9: warning: 'SSL_CTX_set_tmp_dh_callback' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16167 | SSL_CTX_set_tmp_dh_callback(ctx, TmpDhCallback); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/ssl.h:2275:6: note: declared here 2275 | void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'GetOSSecurityLevel': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16200:9: warning: 'SSL_CTX_set_ssl_version' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16200 | security_level_set_ssl_version = SSL_CTX_set_ssl_version(ctx, SSLv23_server_method()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/ssl.h:2041:12: note: declared here 2041 | __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); | ^~~~~~~~~~~~~~~~~~~~~~~ [ 31%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/OS.c.o [ 32%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Object.c.o [ 32%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Pack.c.o [ 33%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Proxy.c.o [ 34%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Secure.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'SignSecByObject': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:343:73: warning: passing argument 5 of 'sec->Api->C_Sign' from incompatible pointer type [-Wincompatible-pointer-types] 343 | ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); | ^~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:343:73: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:347:81: warning: passing argument 5 of 'sec->Api->C_Sign' from incompatible pointer type [-Wincompatible-pointer-types] 347 | ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); | ^~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:347:81: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecKey': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:456:9: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 456 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:19: /opt/pkg/include/openssl/evp.h:1356:22: note: declared here 1356 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:456:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 456 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:464:9: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 464 | RSA_get0_key(rsa, &n, &e, &d); | ^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:20: /opt/pkg/include/openssl/rsa.h:228:28: note: declared here 228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:465:9: warning: 'RSA_get0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 465 | RSA_get0_factors(rsa, &p, &q); | ^~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/rsa.h:231:28: note: declared here 231 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r, | ^~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:466:9: warning: 'RSA_get0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 466 | RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); | ^~~~~~~~~~~~~~~~~~~ /opt/pkg/include/openssl/rsa.h:236:28: note: declared here 236 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r, | ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:525:90: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] 525 | if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:525:90: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecCert': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:732:90: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] 732 | if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:732:90: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'EnumSecObject': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:53: warning: passing argument 2 of 'sec->Api->C_FindObjects' from incompatible pointer type [-Wincompatible-pointer-types] 1238 | if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:53: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:100: warning: passing argument 4 of 'sec->Api->C_FindObjects' from incompatible pointer type [-Wincompatible-pointer-types] 1238 | if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) | ^~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:100: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecData': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1360:83: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] 1360 | if (sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1360:83: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSecSession': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1644:66: warning: passing argument 5 of 'sec->Api->C_OpenSession' from incompatible pointer type [-Wincompatible-pointer-types] 1644 | CKF_RW_SESSION | CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) | ^~~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1644:66: note: expected 'CK_SESSION_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1649:57: warning: passing argument 5 of 'sec->Api->C_OpenSession' from incompatible pointer type [-Wincompatible-pointer-types] 1649 | CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) | ^~~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1649:57: note: expected 'CK_SESSION_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSec': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1737:56: warning: passing argument 3 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] 1737 | if ((err = sec->Api->C_GetSlotList(true, NULL, &sec->NumSlot)) != CKR_OK || sec->NumSlot == 0) | ^~~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1737:56: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:46: warning: passing argument 2 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] 1747 | if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) | ~~~^~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:46: note: expected 'CK_SLOT_ID_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:60: warning: passing argument 3 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] 1747 | if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) | ^~~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:60: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'InitSecureDeviceList': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1885:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1885 | SECURE_DEVICE *dev = &SupportedList[i]; | ^ [ 35%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Str.c.o [ 36%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Table.c.o [ 37%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/TcpIp.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c: In function 'CorrectChecksum': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:1786:51: warning: taking address of packed member of 'struct PKT' may result in an unaligned pointer value [-Waddress-of-packed-member] 1786 | IPV6_HEADER_PACKET_INFO *v6info = &p->IPv6HeaderPacketInfo; | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c: In function 'ParsePacketIPv6': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:2641:35: warning: taking address of packed member of 'struct PKT' may result in an unaligned pointer value [-Waddress-of-packed-member] 2641 | if (ParsePacketIPv6Header(&p->IPv6HeaderPacketInfo, buf, size) == false) | ^~~~~~~~~~~~~~~~~~~~~~~~ [ 38%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tick64.c.o [ 38%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tracking.c.o [ 39%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Unix.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c: In function 'local_scandir': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:123:68: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types] 123 | qsort((void *)(*namelist), (size_t)i, sizeof(struct dirent *), compar); | ^~~~~~ | | | int (*)(const struct dirent **, const struct dirent **) In file included from /usr/include/stdlib.h:41, from /opt/pkg/include/openssl/crypto.h:25, from /opt/pkg/include/openssl/comp.h:22, from /opt/pkg/include/openssl/ssl.h:29, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:19: /usr/include/iso/stdlib_iso.h:147:43: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent **, const struct dirent **)' 147 | extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 40%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Win32.c.o [ 41%] Linking C shared library ../../libmayaqua.so [ 41%] Built target mayaqua [ 42%] Building hamcore.se2 archive file... hamcore.se2 builder Destination: "hamcore.se2" Source: "/home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/bin/hamcore" Done! [ 42%] Built target hamcore-archive-build [ 42%] Building C object src/Cedar/CMakeFiles/cedar.dir/Account.c.o [ 43%] Building C object src/Cedar/CMakeFiles/cedar.dir/Admin.c.o [ 44%] Building C object src/Cedar/CMakeFiles/cedar.dir/AzureClient.c.o [ 45%] Building C object src/Cedar/CMakeFiles/cedar.dir/Bridge.c.o [ 46%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeUnix.c.o [ 47%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeWin32.c.o [ 47%] Building C object src/Cedar/CMakeFiles/cedar.dir/CM.c.o [ 48%] Building C object src/Cedar/CMakeFiles/cedar.dir/Cedar.c.o [ 49%] Building C object src/Cedar/CMakeFiles/cedar.dir/Client.c.o [ 50%] Building C object src/Cedar/CMakeFiles/cedar.dir/Command.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'CheckThread1': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:318:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 318 | InputToNull((void *)check_thread_global_1); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'CheckMemory': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:608:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 608 | InputToNull((void *)(UINT)(((UCHAR *)pp[i])[j] = j % 256)); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PtGetPublicX25519': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:2733:54: warning: passing argument 4 of 'ParseCommandList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2733 | LIST *o = ParseCommandList(c, cmd_name, str, args, sizeof(args) / sizeof(args[0])); | ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:13: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Console.h:110:76: note: expected 'PARAM *' but argument is of type 'const PARAM *' 110 | LIST *ParseCommandList(CONSOLE *c, char *cmd_name, wchar_t *command, PARAM param[], UINT num_param); | ~~~~~~^~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'StrToPortList': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:7969:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 7969 | if (IsInList(o, (void *)n)) | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:7975:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 7975 | Add(o, (void *)n); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsClusterSettingMember': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:8052:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 8052 | t.Ports[i] = (UINT)LIST_DATA(ports, i); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'CmdEvalHostAndPort': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:8124:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 8124 | ret = ParseHostPort(tmp, NULL, NULL, (UINT)param); | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsWgkEnum': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10829:47: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10829 | key = CopyStrToUni(wgk->Key); | ~~~^~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10830:47: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10830 | hub = CopyStrToUni(wgk->Hub); | ~~~^~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10831:48: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10831 | user = CopyStrToUni(wgk->User); | ~~~^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsPortsUDPSet': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:23060:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 23060 | t.Ports[i] = (UINT)LIST_DATA(ports, i); | ^ [ 51%] Building C object src/Cedar/CMakeFiles/cedar.dir/Connection.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'SendKeepAlive': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:949:28: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 949 | Copy(seek, &port, sizeof(port)); | ^~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const USHORT *' {aka 'const short unsigned int *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'ConnectionReceive': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2232:73: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2232 | if (Cmp(keep_alive_buffer, UDP_NAT_T_PORT_SIGNATURE_IN_KEEP_ALIVE, nat_t_port_sig_size) == 0) | ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:196:15: note: expected 'void *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2253:73: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2253 | if (Cmp(keep_alive_buffer, UDP_NAT_T_IP_SIGNATURE_IN_KEEP_ALIVE, nat_t_ip_sig_size) == 0) | ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:196:15: note: expected 'void *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2258:85: warning: passing argument 2 of 'SetIP6' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2258 | SetIP6(&ip, keep_alive_buffer); | ^~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1277:28: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 1277 | void SetIP6(IP *ip, UCHAR *value); | ~~~~~~~^~~~~ [ 52%] Building C object src/Cedar/CMakeFiles/cedar.dir/Console.c.o [ 53%] Building C object src/Cedar/CMakeFiles/cedar.dir/DDNS.c.o [ 53%] Building C object src/Cedar/CMakeFiles/cedar.dir/Database.c.o [ 54%] Building C object src/Cedar/CMakeFiles/cedar.dir/EM.c.o [ 55%] Building C object src/Cedar/CMakeFiles/cedar.dir/EtherLog.c.o [ 56%] Building C object src/Cedar/CMakeFiles/cedar.dir/Hub.c.o [ 57%] Building C object src/Cedar/CMakeFiles/cedar.dir/IPC.c.o [ 58%] Building C object src/Cedar/CMakeFiles/cedar.dir/Layer3.c.o [ 59%] Building C object src/Cedar/CMakeFiles/cedar.dir/Link.c.o [ 59%] Building C object src/Cedar/CMakeFiles/cedar.dir/Listener.c.o [ 60%] Building C object src/Cedar/CMakeFiles/cedar.dir/Logging.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Logging.c: In function 'PacketLogParseProc': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Logging.c:1598:60: warning: taking address of packed member of 'struct PKT' may result in an unaligned pointer value [-Waddress-of-packed-member] 1598 | ICMPV6_HEADER_INFO *icmp = &p->ICMPv6HeaderPacketInfo; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [ 61%] Building C object src/Cedar/CMakeFiles/cedar.dir/NM.c.o [ 62%] Building C object src/Cedar/CMakeFiles/cedar.dir/Nat.c.o [ 63%] Building C object src/Cedar/CMakeFiles/cedar.dir/NativeStack.c.o [ 64%] Building C object src/Cedar/CMakeFiles/cedar.dir/NullLan.c.o [ 65%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoLog': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:32:43: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 32 | proto_name = CopyStrToUni(session->Impl->Name()); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoContainerCompare': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:84:35: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 84 | return StrCmpi(container_1->Name, container_2->Name); | ~~~~~~~~~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:84:54: warning: passing argument 2 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 84 | return StrCmpi(container_1->Name, container_2->Name); | ~~~~~~~~~~~^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:43:31: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoSessionNew': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:396:33: warning: passing argument 2 of 'CopyIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 396 | CopyIP(&session->SrcIp, src_ip); | ^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:26: note: expected 'IP *' but argument is of type 'const IP *' 1273 | void CopyIP(IP *dst, IP *src); | ~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:398:33: warning: passing argument 2 of 'CopyIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 398 | CopyIP(&session->DstIp, dst_ip); | ^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:26: note: expected 'IP *' but argument is of type 'const IP *' 1273 | void CopyIP(IP *dst, IP *src); | ~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoSetListenIP': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:447:45: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 447 | Copy(&proto->UdpListener->ListenIP, ip, sizeof(proto->UdpListener->ListenIP)); | ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:12: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoHandleConnection': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:502:47: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 502 | if (StrCmp(tmp->Name, protocol) == 0) | ~~~^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:502:55: warning: passing argument 2 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 502 | if (StrCmp(tmp->Name, protocol) == 0) | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:30: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:547:52: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 547 | proto_name = CopyStrToUni(container->Name); | ~~~~~~~~~^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:640:52: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 640 | wchar_t *proto_name = CopyStrToUni(impl->Name()); | ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ [ 65%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_EtherIP.c.o [ 66%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IKE.c.o [ 67%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IPsec.c.o [ 68%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IkePacket.c.o [ 69%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_L2TP.c.o [ 70%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_OpenVPN.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c: In function 'OvsIsPacketForMe': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c:107:57: warning: passing argument 1 of 'OvsParsePacket' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 107 | OPENVPN_PACKET *packet = OvsParsePacket(data, size); | ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.h:235:39: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'const void *' 235 | OPENVPN_PACKET *OvsParsePacket(UCHAR *data, UINT size); | ~~~~~~~^~~~ [ 71%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_PPP.c.o [ 71%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_SSTP.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c: In function 'NewSstpServer': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:1019:62: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1019 | StrCpy(s->ClientHostName, sizeof(s->ClientHostName), hostname); | ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:17: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:1020:66: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1020 | StrCpy(s->ClientCipherName, sizeof(s->ClientCipherName), cipher); | ^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ [ 72%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_Win7.c.o [ 73%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_WireGuard.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsOptionStringValue': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:56:20: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 56 | if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) | ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:56:57: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 56 | if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) | ^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsProcessDatagrams': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:248:49: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 248 | Copy(&session->IPLocal, &packet->DstIP, sizeof(session->IPLocal)); | ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:249:50: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 249 | Copy(&session->IPRemote, &packet->SrcIP, sizeof(session->IPRemote)); | ^~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsDetectMessageType': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:412:34: warning: passing argument 1 of 'IsZero' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 412 | if (IsZero(packet->Header.Reserved, sizeof(packet->Header.Reserved)) == false) | ~~~~~~~~~~~~~~^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:355:19: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 355 | bool IsZero(void *data, UINT size); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsMSS': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:435:19: warning: passing argument 1 of 'IsIP4' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 435 | if (IsIP4(&session->IPRemote)) | ^~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1274:16: note: expected 'IP *' but argument is of type 'const IP *' 1274 | bool IsIP4(IP *ip); | ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsIPCNew': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:475:60: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 475 | StrCpy(param.ClientName, sizeof(param.ClientName), WgsName()); | ^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsCreateTransportData': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:834:39: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 834 | Copy(ret->EncapsulatedPacket, data, size); | ^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const void *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsEncryptData': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:939:49: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 939 | Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const UINT64 *' {aka 'const long unsigned int *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsDecryptData': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:957:49: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 957 | Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); | ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const UINT64 *' {aka 'const long unsigned int *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsEphemeral': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1010:29: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1010 | Copy(ephemeral_dst, ephemeral_src, WG_KEY_SIZE); | ^~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsHKDF': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1021:22: warning: passing argument 2 of 'SetMdKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1021 | SetMdKey(md, chaining_key, WG_HASH_SIZE); | ^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:11: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Encrypt.h:440:29: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 440 | bool SetMdKey(MD *md, void *key, UINT key_size); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1024:31: warning: passing argument 3 of 'MdProcess' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1024 | MdProcess(md, secret, data, data_size); | ^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Encrypt.h:441:42: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 441 | UINT MdProcess(MD *md, void *dest, void *src, UINT size); | ~~~~~~^~~ [ 74%] Building C object src/Cedar/CMakeFiles/cedar.dir/Protocol.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ServerAccept': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:1612:84: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1612 | if (c->FirstSock != NULL && IsEmptyStr(c->FirstSock->SslVersion) == false) | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:1614:77: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1614 | c->SslVersion = CopyStr(c->FirstSock->SslVersion); | ~~~~~~~~~~~~^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:2116:72: warning: passing argument 1 of 'IsLocalHostIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2116 | if (s != NULL && IsLocalHostIP(&s->RemoteIP) == false) | ^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1282:24: note: expected 'IP *' but argument is of type 'const IP *' 1282 | bool IsLocalHostIP(IP *ip); | ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ClientConnect': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:4980:53: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 4980 | c->SslVersion = CopyStr(c->FirstSock->SslVersion); | ~~~~~~~~~~~~^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ [ 75%] Building C object src/Cedar/CMakeFiles/cedar.dir/Radius.c.o [ 76%] Building C object src/Cedar/CMakeFiles/cedar.dir/Remote.c.o [ 77%] Building C object src/Cedar/CMakeFiles/cedar.dir/SM.c.o [ 77%] Building C object src/Cedar/CMakeFiles/cedar.dir/SW.c.o [ 78%] Building C object src/Cedar/CMakeFiles/cedar.dir/Sam.c.o [ 79%] Building C object src/Cedar/CMakeFiles/cedar.dir/SeLowUser.c.o [ 80%] Building C object src/Cedar/CMakeFiles/cedar.dir/SecureNAT.c.o [ 81%] Building C object src/Cedar/CMakeFiles/cedar.dir/Server.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadConfigurationCfg': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:2792:70: warning: passing argument 2 of 'CfgGetFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2792 | FOLDER *f = CfgGetFolder(f9, name); | ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:44: note: expected 'char *' but argument is of type 'const char *' 100 | FOLDER *CfgGetFolder(FOLDER *parent, char *name); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:2796:84: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2796 | StrCpy(wgk->Key, sizeof(wgk->Key), name); | ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:36: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadProtoCfg': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:6386:55: warning: passing argument 2 of 'CfgGetFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 6386 | FOLDER *ff = CfgGetFolder(f, container->Name); | ~~~~~~~~~^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:44: note: expected 'char *' but argument is of type 'const char *' 100 | FOLDER *CfgGetFolder(FOLDER *parent, char *name); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiWriteProtoCfg': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:6448:58: warning: passing argument 2 of 'CfgCreateFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 6448 | FOLDER *ff = CfgCreateFolder(f, container->Name); | ~~~~~~~~~^~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:86:47: note: expected 'char *' but argument is of type 'const char *' 86 | FOLDER *CfgCreateFolder(FOLDER *parent, char *name); | ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiCalledDeleteIpTable': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7754:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 7754 | if (IsInList(h->IpTable, (void *)key)) | ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7756:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 7756 | IP_TABLE_ENTRY *e = (IP_TABLE_ENTRY *)key; | ^ [ 82%] Building C object src/Cedar/CMakeFiles/cedar.dir/Session.c.o [ 83%] Building C object src/Cedar/CMakeFiles/cedar.dir/UT.c.o [ 83%] Building C object src/Cedar/CMakeFiles/cedar.dir/UdpAccel.c.o [ 84%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanUnix.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/VLanUnix.c: In function 'UnixSetIfGroup': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/VLanUnix.c:668:1: error: number of arguments doesn't match prototype 668 | { | ^ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/VLanUnix.c:10: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/VLanUnix.h:65:6: error: prototype declaration 65 | void UnixSetIfGroup(int fd, const char *name, const char *group_name); | ^~~~~~~~~~~~~~ *** [src/Cedar/CMakeFiles/cedar.dir/VLanUnix.c.o] Error code 1 bmake[2]: stopped making "src/Cedar/CMakeFiles/cedar.dir/build" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 bmake[2]: 1 error bmake[2]: stopped making "src/Cedar/CMakeFiles/cedar.dir/build" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 *** [src/Cedar/CMakeFiles/cedar.dir/all] Error code 2 bmake[1]: stopped making "all" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 bmake[1]: 1 error bmake[1]: stopped making "all" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 *** [all] Error code 2 bmake: stopped making "all" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 bmake: 1 error bmake: stopped making "all" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/softether *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/softether