+ 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%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/linux_features_aggregator.c.o [ 4%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_clang_gcc.c.o [ 5%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_msvc.c.o [ 5%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_aarch64.c.o [ 6%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_arm.c.o [ 7%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_mips.c.o [ 8%] Linking C static library liblibhamcore.a [ 9%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_x86.c.o [ 10%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_ppc.c.o [ 11%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/filesystem.c.o [ 11%] Built target libhamcore [ 12%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/hwcaps.c.o [ 13%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/main.c.o [ 13%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/stack_line_reader.c.o [ 14%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/string_view.c.o [ 15%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/FileSystem.c.o [ 16%] Linking C static library libcpu_features.a [ 17%] Linking C executable hamcorebuilder [ 17%] Built target cpu_features [ 18%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/list_cpu_features.dir/src/utils/list_cpu_features.c.o [ 18%] Built target hamcorebuilder [ 18%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Crypto/Key.c.o [ 19%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Cfg.c.o [ 20%] Building hamcore.se2 archive file... [ 21%] Linking C executable list_cpu_features /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); | ~~~~~~^~~ [ 22%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/DNS.c.o [ 22%] Built target list_cpu_features [ 23%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encoding.c.o hamcore.se2 builder Destination: "hamcore.se2" Source: "/home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/bin/hamcore" Done! [ 23%] Built target hamcore-archive-build [ 24%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encrypt.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); | ~~~~~~^~~~ [ 25%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/FileIO.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:1405:22: note: declared here 1405 | 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:1405:22: note: declared here 1405 | 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:1405:22: note: declared here 1405 | 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:635:27: note: declared here 635 | 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:639:27: note: declared here 639 | 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:635:27: note: declared here 635 | 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:639:27: note: declared here 639 | 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); | ^~~~~~~~~~~~ [ 26%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/HTTP.c.o [ 27%] 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: error: 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: error: 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); | ~~~~~~~~~~~~~~^~~~~ --- src/Mayaqua/CMakeFiles/mayaqua.dir/Internat.c.o --- *** [src/Mayaqua/CMakeFiles/mayaqua.dir/Internat.c.o] Error code 1 bmake[2]: stopped making "src/Mayaqua/CMakeFiles/mayaqua.dir/build" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 bmake[2]: 1 error bmake[2]: stopped making "src/Mayaqua/CMakeFiles/mayaqua.dir/build" in /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181 --- src/Mayaqua/CMakeFiles/mayaqua.dir/all --- *** [src/Mayaqua/CMakeFiles/mayaqua.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