问题主要出在编译openssl时报错,错误内容如下:
crypto/dso/dso_win32.c: In function 'win32_load':
crypto/dso/dso_win32.c:98:5: error: unknown type name 'HINSTANCE'
98 | HINSTANCE h = NULL, *p = NULL;
| ~~~~~
crypto/dso/dso_win32.c:98:19: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
98 | HINSTANCE h = NULL, *p = NULL;
| ~
crypto/dso/dso_win32.c:106:9: warning: implicit declaration of function 'LoadLibraryA' [-Wimplicit-function-declaration]
106 | h = LoadLibraryA(filename);
| ^~~~~~~~~~~
crypto/dso/dso_win32.c:107:11: warning: comparison between pointer and integer
107 | if (h == NULL) {
| ^~
crypto/dso/dso_win32.c:129:11: warning: comparison between pointer and integer
129 | if (h != NULL)
| ^~
crypto/dso/dso_win32.c:130:9: warning: implicit declaration of function 'FreeLibrary' [-Wimplicit-function-declaration]
130 | FreeLibrary(h);
| ~~~~~~~
crypto/dso/dso_win32.c: In function 'win32_unload':
crypto/dso/dso_win32.c:136:5: error: unknown type name 'HINSTANCE'
136 | HINSTANCE *p;
| ~~~~~
crypto/dso/dso_win32.c: In function 'win32_bind_func':
crypto/dso/dso_win32.c:163:5: error: unknown type name 'HINSTANCE'
163 | HINSTANCE ptr;
| ~~~~~
crypto/dso/dso_win32.c:166:9: error: unknown type name 'FARPROC'
166 | FARPROC f;
| ~~~
crypto/dso/dso_win32.c:182:13: warning: implicit declaration of function 'GetProcAddress' [-Wimplicit-function-declaration]
182 | sym.f = GetProcAddress(ptr, symname);
| ~~~~~~~~~~
crypto/dso/dso_win32.c:188:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
188 | return (DSO_FUNC_TYPE)sym.f;
| ^
In file included from crypto/dso/dso_win32.c:490:
/usr/include/w32api/tlhelp32.h: At top level:
/usr/include/w32api/tlhelp32.h:15:3: error: unknown type name 'HANDLE'
15 | HANDLE WINAPI CreateToolhelp32Snapshot(DWORD dwFlags,DWORD th32ProcessID);
| ~~
/usr/include/w32api/tlhelp32.h:15:17: error: expected '=', ',', ';', 'asm' or 'attribute' before 'CreateToolhelp32Snapshot'
15 | HANDLE WINAPI CreateToolhelp32Snapshot(DWORD dwFlags,DWORD th32ProcessID);
| ~~~~~~~~~~~~~~~~~~~~
/usr/include/w32api/tlhelp32.h:26:5: error: unknown type name 'SIZE_T'
26 | SIZE_T dwSize;
| ~~
/usr/include/w32api/tlhelp32.h:27:5: error: unknown type name 'DWORD'
27 | DWORD th32ProcessID;
| ~~
/usr/include/w32api/tlhelp32.h:28:5: error: unknown type name 'ULONG_PTR'
28 | ULONG_PTR th32HeapID;
| ^~~~~~~~
/usr/include/w32api/tlhelp32.h:29:5: error: unknown type name 'DWORD'
29 | DWORD dwFlags;
| ~~
/usr/include/w32api/tlhelp32.h:37:3: error: unknown type name 'WINBOOL'
37 | WINBOOL WINAPI Heap32ListFirst(HANDLE hSnapshot,LPHEAPLIST32 lphl);
| ^~~~~~
/usr/include/w32api/tlhelp32.h:37:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Heap32ListFirst'
37 | WINBOOL WINAPI Heap32ListFirst(HANDLE hSnapshot,LPHEAPLIST32 lphl);
| ~~~~~~~~~~~
/usr/include/w32api/tlhelp32.h:38:3: error: unknown type name 'WINBOOL'
38 | WINBOOL WINAPI Heap32ListNext(HANDLE hSnapshot,LPHEAPLIST32 lphl);
| ~~~
/usr/include/w32api/tlhelp32.h:38:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Heap32ListNext'
38 | WINBOOL WINAPI Heap32ListNext(HANDLE hSnapshot,LPHEAPLIST32 lphl);
| ~~~~~~~~~~
/usr/include/w32api/tlhelp32.h:41:5: error: unknown type name 'SIZE_T'
41 | SIZE_T dwSize;
| ~~
/usr/include/w32api/tlhelp32.h:42:5: error: unknown type name 'HANDLE'
42 | HANDLE hHandle;
| ~~
/usr/include/w32api/tlhelp32.h:43:5: error: unknown type name 'ULONG_PTR'
43 | ULONG_PTR dwAddress;
| ~~~~~
/usr/include/w32api/tlhelp32.h:44:5: error: unknown type name 'SIZE_T'
44 | SIZE_T dwBlockSize;
| ~~
/usr/include/w32api/tlhelp32.h:45:5: error: unknown type name 'DWORD'
45 | DWORD dwFlags;
| ~~
/usr/include/w32api/tlhelp32.h:46:5: error: unknown type name 'DWORD'
46 | DWORD dwLockCount;
| ^~~~
/usr/include/w32api/tlhelp32.h:47:5: error: unknown type name 'DWORD'
47 | DWORD dwResvd;
| ~~
/usr/include/w32api/tlhelp32.h:48:5: error: unknown type name 'DWORD'
48 | DWORD th32ProcessID;
| ^~~~
/usr/include/w32api/tlhelp32.h:49:5: error: unknown type name 'ULONG_PTR'
49 | ULONG_PTR th32HeapID;
| ~~~~~
/usr/include/w32api/tlhelp32.h:58:3: error: unknown type name 'WINBOOL'
58 | WINBOOL WINAPI Heap32First(LPHEAPENTRY32 lphe,DWORD th32ProcessID,ULONG_PTR th32HeapID);
| ~~~
/usr/include/w32api/tlhelp32.h:58:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Heap32First'
58 | WINBOOL WINAPI Heap32First(LPHEAPENTRY32 lphe,DWORD th32ProcessID,ULONG_PTR th32HeapID);
| ~~~~~~~
/usr/include/w32api/tlhelp32.h:59:3: error: unknown type name 'WINBOOL'
59 | WINBOOL WINAPI Heap32Next(LPHEAPENTRY32 lphe);
| ~~~
/usr/include/w32api/tlhelp32.h:59:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Heap32Next'
59 | WINBOOL WINAPI Heap32Next(LPHEAPENTRY32 lphe);
| ~~~~~~
/usr/include/w32api/tlhelp32.h:60:3: error: unknown type name 'WINBOOL'
60 | WINBOOL WINAPI Toolhelp32ReadProcessMemory(DWORD th32ProcessID,LPCVOID lpBaseAddress,LPVOID lpBuffer,SIZE_T cbRead,SIZE_T *lpNumberOfBytesRead);
| ~~~
/usr/include/w32api/tlhelp32.h:60:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Toolhelp32ReadProcessMemory'
60 | WINBOOL WINAPI Toolhelp32ReadProcessMemory(DWORD th32ProcessID,LPCVOID lpBaseAddress,LPVOID lpBuffer,SIZE_T cbRead,SIZE_T *lpNumberOfBytesRead);
| ~~~~~~~~~~~~~~~~~~~~~~~
In file included from crypto/dso/dso_win32.c:490:
/usr/include/w32api/tlhelp32.h:63:5: error: unknown type name 'DWORD'
63 | DWORD dwSize;
| ~~
/usr/include/w32api/tlhelp32.h:64:5: error: unknown type name 'DWORD'
64 | DWORD cntUsage;
| ^~~~
/usr/include/w32api/tlhelp32.h:65:5: error: unknown type name 'DWORD'
65 | DWORD th32ProcessID;
| ~~
/usr/include/w32api/tlhelp32.h:66:5: error: unknown type name 'ULONG_PTR'
66 | ULONG_PTR th32DefaultHeapID;
| ^~~~~~~~
/usr/include/w32api/tlhelp32.h:67:5: error: unknown type name 'DWORD'
67 | DWORD th32ModuleID;
| ~~
/usr/include/w32api/tlhelp32.h:68:5: error: unknown type name 'DWORD'
68 | DWORD cntThreads;
| ^~~~
/usr/include/w32api/tlhelp32.h:69:5: error: unknown type name 'DWORD'
69 | DWORD th32ParentProcessID;
| ~~
/usr/include/w32api/tlhelp32.h:70:5: error: unknown type name 'LONG'
70 | LONG pcPriClassBase;
| ^~~
/usr/include/w32api/tlhelp32.h:71:5: error: unknown type name 'DWORD'
71 | DWORD dwFlags;
| ~~
/usr/include/w32api/tlhelp32.h:72:5: error: unknown type name 'WCHAR'
72 | WCHAR szExeFile[MAX_PATH];
| ^~~~
/usr/include/w32api/tlhelp32.h:72:21: error: 'MAX_PATH' undeclared here (not in a function)
72 | WCHAR szExeFile[MAX_PATH];
| ~~~~
/usr/include/w32api/tlhelp32.h:77:3: error: unknown type name 'WINBOOL'
77 | WINBOOL WINAPI Process32FirstW(HANDLE hSnapshot,LPPROCESSENTRY32W lppe);
| ~~~
/usr/include/w32api/tlhelp32.h:77:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Process32FirstW'
77 | WINBOOL WINAPI Process32FirstW(HANDLE hSnapshot,LPPROCESSENTRY32W lppe);
| ~~~~~~~~~~~
/usr/include/w32api/tlhelp32.h:78:3: error: unknown type name 'WINBOOL'
78 | WINBOOL WINAPI Process32NextW(HANDLE hSnapshot,LPPROCESSENTRY32W lppe);
| ~~~
/usr/include/w32api/tlhelp32.h:78:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Process32NextW'
78 | WINBOOL WINAPI Process32NextW(HANDLE hSnapshot,LPPROCESSENTRY32W lppe);
| ~~~~~~~~~~
/usr/include/w32api/tlhelp32.h:81:5: error: unknown type name 'DWORD'
81 | DWORD dwSize;
| ~~
/usr/include/w32api/tlhelp32.h:82:5: error: unknown type name 'DWORD'
82 | DWORD cntUsage;
| ^~~~
/usr/include/w32api/tlhelp32.h:83:5: error: unknown type name 'DWORD'
83 | DWORD th32ProcessID;
| ~~
/usr/include/w32api/tlhelp32.h:84:5: error: unknown type name 'ULONG_PTR'
84 | ULONG_PTR th32DefaultHeapID;
| ^~~~~~~~
/usr/include/w32api/tlhelp32.h:85:5: error: unknown type name 'DWORD'
85 | DWORD th32ModuleID;
| ~~
/usr/include/w32api/tlhelp32.h:86:5: error: unknown type name 'DWORD'
86 | DWORD cntThreads;
| ^~~~
/usr/include/w32api/tlhelp32.h:87:5: error: unknown type name 'DWORD'
87 | DWORD th32ParentProcessID;
| ~~
/usr/include/w32api/tlhelp32.h:88:5: error: unknown type name 'LONG'
88 | LONG pcPriClassBase;
| ^~~
/usr/include/w32api/tlhelp32.h:89:5: error: unknown type name 'DWORD'
89 | DWORD dwFlags;
| ~~
/usr/include/w32api/tlhelp32.h:90:5: error: unknown type name 'CHAR'
90 | CHAR szExeFile[MAX_PATH];
| ^~~
/usr/include/w32api/tlhelp32.h:95:3: error: unknown type name 'WINBOOL'
95 | WINBOOL WINAPI Process32First(HANDLE hSnapshot,LPPROCESSENTRY32 lppe);
| ~~~
/usr/include/w32api/tlhelp32.h:95:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Process32First'
95 | WINBOOL WINAPI Process32First(HANDLE hSnapshot,LPPROCESSENTRY32 lppe);
| ~~~~~~~~~~
/usr/include/w32api/tlhelp32.h:96:3: error: unknown type name 'WINBOOL'
96 | WINBOOL WINAPI Process32Next(HANDLE hSnapshot,LPPROCESSENTRY32 lppe);
| ~~~
/usr/include/w32api/tlhelp32.h:96:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Process32Next'
96 | WINBOOL WINAPI Process32Next(HANDLE hSnapshot,LPPROCESSENTRY32 lppe);
| ~~~~~~~~~
/usr/include/w32api/tlhelp32.h:107:5: error: unknown type name 'DWORD'
107 | DWORD dwSize;
| ~~
/usr/include/w32api/tlhelp32.h:108:5: error: unknown type name 'DWORD'
108 | DWORD cntUsage;
| ^~~~
/usr/include/w32api/tlhelp32.h:109:5: error: unknown type name 'DWORD'
109 | DWORD th32ThreadID;
| ~~
/usr/include/w32api/tlhelp32.h:110:5: error: unknown type name 'DWORD'
110 | DWORD th32OwnerProcessID;
| ^~~~
/usr/include/w32api/tlhelp32.h:111:5: error: unknown type name 'LONG'
111 | LONG tpBasePri;
| ~
/usr/include/w32api/tlhelp32.h:112:5: error: unknown type name 'LONG'
112 | LONG tpDeltaPri;
| ^~~
/usr/include/w32api/tlhelp32.h:113:5: error: unknown type name 'DWORD'
113 | DWORD dwFlags;
| ~~
/usr/include/w32api/tlhelp32.h:118:3: error: unknown type name 'WINBOOL'
118 | WINBOOL WINAPI Thread32First(HANDLE hSnapshot,LPTHREADENTRY32 lpte);
| ^~~~~~
/usr/include/w32api/tlhelp32.h:118:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Thread32First'
118 | WINBOOL WINAPI Thread32First(HANDLE hSnapshot,LPTHREADENTRY32 lpte);
| ~~~~~~~~~
/usr/include/w32api/tlhelp32.h:119:3: error: unknown type name 'WINBOOL'
119 | WINBOOL WINAPI Thread32Next(HANDLE hSnapshot,LPTHREADENTRY32 lpte);
| ~~~
/usr/include/w32api/tlhelp32.h:119:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Thread32Next'
119 | WINBOOL WINAPI Thread32Next(HANDLE hSnapshot,LPTHREADENTRY32 lpte);
| ~~~~~~~~
/usr/include/w32api/tlhelp32.h:122:5: error: unknown type name 'DWORD'
122 | DWORD dwSize;
| ~~
/usr/include/w32api/tlhelp32.h:123:5: error: unknown type name 'DWORD'
123 | DWORD th32ModuleID;
| ^~~~
/usr/include/w32api/tlhelp32.h:124:5: error: unknown type name 'DWORD'
124 | DWORD th32ProcessID;
| ~~
/usr/include/w32api/tlhelp32.h:125:5: error: unknown type name 'DWORD'
125 | DWORD GlblcntUsage;
| ^~~~
/usr/include/w32api/tlhelp32.h:126:5: error: unknown type name 'DWORD'
126 | DWORD ProccntUsage;
| ~~
/usr/include/w32api/tlhelp32.h:127:5: error: unknown type name 'BYTE'
127 | BYTE *modBaseAddr;
| ^~~
/usr/include/w32api/tlhelp32.h:128:5: error: unknown type name 'DWORD'
128 | DWORD modBaseSize;
| ~~
/usr/include/w32api/tlhelp32.h:129:5: error: unknown type name 'HMODULE'
129 | HMODULE hModule;
| ^~~~~~
/usr/include/w32api/tlhelp32.h:130:5: error: unknown type name 'WCHAR'
130 | WCHAR szModule[MAX_MODULE_NAME32 + 1];
| ~~
/usr/include/w32api/tlhelp32.h:131:5: error: unknown type name 'WCHAR'
131 | WCHAR szExePath[MAX_PATH];
| ^~~~
/usr/include/w32api/tlhelp32.h:136:3: error: unknown type name 'WINBOOL'
136 | WINBOOL WINAPI Module32FirstW(HANDLE hSnapshot,LPMODULEENTRY32W lpme);
| ~~~
/usr/include/w32api/tlhelp32.h:136:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Module32FirstW'
136 | WINBOOL WINAPI Module32FirstW(HANDLE hSnapshot,LPMODULEENTRY32W lpme);
| ~~~~~~~~~~
/usr/include/w32api/tlhelp32.h:137:3: error: unknown type name 'WINBOOL'
137 | WINBOOL WINAPI Module32NextW(HANDLE hSnapshot,LPMODULEENTRY32W lpme);
| ~~~
/usr/include/w32api/tlhelp32.h:137:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Module32NextW'
137 | WINBOOL WINAPI Module32NextW(HANDLE hSnapshot,LPMODULEENTRY32W lpme);
| ~~~~~~~~~
/usr/include/w32api/tlhelp32.h:140:5: error: unknown type name 'DWORD'
140 | DWORD dwSize;
| ~~
/usr/include/w32api/tlhelp32.h:141:5: error: unknown type name 'DWORD'
141 | DWORD th32ModuleID;
| ^~~~
/usr/include/w32api/tlhelp32.h:142:5: error: unknown type name 'DWORD'
142 | DWORD th32ProcessID;
| ~~
/usr/include/w32api/tlhelp32.h:143:5: error: unknown type name 'DWORD'
143 | DWORD GlblcntUsage;
| ^~~~
/usr/include/w32api/tlhelp32.h:144:5: error: unknown type name 'DWORD'
144 | DWORD ProccntUsage;
| ~~
/usr/include/w32api/tlhelp32.h:145:5: error: unknown type name 'BYTE'
145 | BYTE *modBaseAddr;
| ^~~
/usr/include/w32api/tlhelp32.h:146:5: error: unknown type name 'DWORD'
146 | DWORD modBaseSize;
| ~~
/usr/include/w32api/tlhelp32.h:147:5: error: unknown type name 'HMODULE'
147 | HMODULE hModule;
| ^~~~~~
/usr/include/w32api/tlhelp32.h:154:3: error: unknown type name 'WINBOOL'
154 | WINBOOL WINAPI Module32First(HANDLE hSnapshot,LPMODULEENTRY32 lpme);
| ~~~
/usr/include/w32api/tlhelp32.h:154:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Module32First'
154 | WINBOOL WINAPI Module32First(HANDLE hSnapshot,LPMODULEENTRY32 lpme);
| ~~~~~~~~~
/usr/include/w32api/tlhelp32.h:155:3: error: unknown type name 'WINBOOL'
155 | WINBOOL WINAPI Module32Next(HANDLE hSnapshot,LPMODULEENTRY32 lpme);
| ~~~
/usr/include/w32api/tlhelp32.h:155:18: error: expected '=', ',', ';', 'asm' or 'attribute' before 'Module32Next'
155 | WINBOOL WINAPI Module32Next(HANDLE hSnapshot,LPMODULEENTRY32 lpme);
| ~~~~~~~~
crypto/dso/dso_win32.c:500:16: error: unknown type name 'WINAPI'
500 | typedef HANDLE(WINAPI *CREATETOOLHELP32SNAPSHOT) (DWORD, DWORD);
| ~~
crypto/dso/dso_win32.c:501:14: error: unknown type name 'WINAPI'
501 | typedef BOOL(WINAPI *CLOSETOOLHELP32SNAPSHOT) (HANDLE);
| ~~
crypto/dso/dso_win32.c:502:14: error: unknown type name 'WINAPI'
502 | typedef BOOL(WINAPI *MODULE32) (HANDLE, MODULEENTRY32 );
| ~~
crypto/dso/dso_win32.c: In function 'win32_pathbyaddr':
crypto/dso/dso_win32.c:506:5: error: unknown type name 'HMODULE'
506 | HMODULE dll;
| ~~~
crypto/dso/dso_win32.c:507:5: error: unknown type name 'HANDLE'
507 | HANDLE hModuleSnap = INVALID_HANDLE_VALUE;
| ~~
crypto/dso/dso_win32.c:507:26: error: 'INVALID_HANDLE_VALUE' undeclared (first use in this function)
507 | HANDLE hModuleSnap = INVALID_HANDLE_VALUE;
| ~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:507:26: note: each undeclared identifier is reported only once for each function it appears in
crypto/dso/dso_win32.c:509:5: error: unknown type name 'CREATETOOLHELP32SNAPSHOT'
509 | CREATETOOLHELP32SNAPSHOT create_snap;
| ~~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:510:5: error: unknown type name 'CLOSETOOLHELP32SNAPSHOT'
510 | CLOSETOOLHELP32SNAPSHOT close_snap;
| ~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:511:5: error: unknown type name 'MODULE32'; did you mean 'MODULEENTRY32'?
511 | MODULE32 module_first, module_next;
| ~~~~
| MODULEENTRY32
crypto/dso/dso_win32.c:523:11: warning: implicit declaration of function 'LoadLibrary' [-Wimplicit-function-declaration]
523 | dll = LoadLibrary(TEXT(DLLNAME));
| ~~~~~~~
crypto/dso/dso_win32.c:523:23: warning: implicit declaration of function 'TEXT' [-Wimplicit-function-declaration]
523 | dll = LoadLibrary(TEXT(DLLNAME));
| ~
crypto/dso/dso_win32.c:524:13: warning: comparison between pointer and integer
524 | if (dll == NULL) {
| ^~
gcc -I. -Iinclude -Icrypto/ec/curve448/arch_32 -Icrypto/ec/curve448 -m64 -Wall -O3 -g -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"C:/Program Files/Common Files/SSL\"" -DENGINESDIR="\"/D/OpenResty/openresty-1.17.8.2-source/openresty/objs/lib/openssl-1.1.1g/.openssl/lib/engines-1_1\"" -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -DNDEBUG -MMD -MF crypto/ec/curve448/scalar.d.tmp -MT crypto/ec/curve448/scalar.o -c -o crypto/ec/curve448/scalar.o crypto/ec/curve448/scalar.c
crypto/dso/dso_win32.c:529:20: error: 'CREATETOOLHELP32SNAPSHOT' undeclared (first use in this function)
529 | create_snap = (CREATETOOLHELP32SNAPSHOT)
| ^~~~~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:529:45: error: expected ';' before 'GetProcAddress'
529 | create_snap = (CREATETOOLHELP32SNAPSHOT)
| ^
| ;
530 | GetProcAddress(dll, "CreateToolhelp32Snapshot");
| ~~~~~~~~~
crypto/dso/dso_win32.c:531:21: warning: comparison between pointer and integer
531 | if (create_snap == NULL) {
| ^~
crypto/dso/dso_win32.c:541:19: error: 'CLOSETOOLHELP32SNAPSHOT' undeclared (first use in this function)
541 | close_snap = (CLOSETOOLHELP32SNAPSHOT) CloseHandle;
| ~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:541:43: error: expected ';' before 'CloseHandle'
541 | close_snap = (CLOSETOOLHELP32SNAPSHOT) CloseHandle;
| ~~~~~~~~
| ;
crypto/dso/dso_win32.c:543:21: error: 'MODULE32' undeclared (first use in this function); did you mean 'MODULEENTRY32'?
543 | module_first = (MODULE32) GetProcAddress(dll, "Module32First");
| ~~~~
| MODULEENTRY32
crypto/dso/dso_win32.c:543:30: error: expected ';' before 'GetProcAddress'
543 | module_first = (MODULE32) GetProcAddress(dll, "Module32First");
| ~~~~~~~~~~~
| ;
crypto/dso/dso_win32.c:544:29: error: expected ';' before 'GetProcAddress'
544 | module_next = (MODULE32) GetProcAddress(dll, "Module32Next");
| ~~~~~~~~~~~
| ;
crypto/dso/dso_win32.c:550:20: error: invalid type argument of unary '' (have 'int')
550 | hModuleSnap = (create_snap) (TH32CS_SNAPMODULE, 0);
| ~~~~~~~~
crypto/dso/dso_win32.c:559:11: error: invalid type argument of unary '' (have 'int')
559 | if (!(module_first) (hModuleSnap, &me32)) {
| ~~~~~~~~~
crypto/dso/dso_win32.c:560:10: error: invalid type argument of unary '' (have 'int')
560 | (close_snap) (hModuleSnap);
| ~~~~~~~
crypto/dso/dso_win32.c:570:14: error: invalid type argument of unary '' (have 'int')
570 | (close_snap) (hModuleSnap);
| ~~~~~~~
crypto/dso/dso_win32.c:602:15: error: invalid type argument of unary '' (have 'int')
602 | } while ((module_next) (hModuleSnap, &me32));
| ~~~~~~~~
crypto/dso/dso_win32.c:604:6: error: invalid type argument of unary '' (have 'int')
604 | (close_snap) (hModuleSnap);
| ~~~~~~~
crypto/dso/dso_win32.c: In function 'win32_globallookup':
crypto/dso/dso_win32.c:611:5: error: unknown type name 'HMODULE'
611 | HMODULE dll;
| ~~~
crypto/dso/dso_win32.c:612:5: error: unknown type name 'HANDLE'
612 | HANDLE hModuleSnap = INVALID_HANDLE_VALUE;
| ~~
crypto/dso/dso_win32.c:612:26: error: 'INVALID_HANDLE_VALUE' undeclared (first use in this function)
612 | HANDLE hModuleSnap = INVALID_HANDLE_VALUE;
| ~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:614:5: error: unknown type name 'CREATETOOLHELP32SNAPSHOT'
614 | CREATETOOLHELP32SNAPSHOT create_snap;
| ~~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:615:5: error: unknown type name 'CLOSETOOLHELP32SNAPSHOT'
615 | CLOSETOOLHELP32SNAPSHOT close_snap;
| ~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:616:5: error: unknown type name 'MODULE32'; did you mean 'MODULEENTRY32'?
616 | MODULE32 module_first, module_next;
| ~~~~
| MODULEENTRY32
crypto/dso/dso_win32.c:619:9: error: unknown type name 'FARPROC'
619 | FARPROC f;
| ~~~
crypto/dso/dso_win32.c:623:13: warning: comparison between pointer and integer
623 | if (dll == NULL) {
| ^~
crypto/dso/dso_win32.c:628:20: error: 'CREATETOOLHELP32SNAPSHOT' undeclared (first use in this function)
628 | create_snap = (CREATETOOLHELP32SNAPSHOT)
| ~~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:628:45: error: expected ';' before 'GetProcAddress'
628 | create_snap = (CREATETOOLHELP32SNAPSHOT)
| ^
| ;
629 | GetProcAddress(dll, "CreateToolhelp32Snapshot");
| ~~~~~~~~~
crypto/dso/dso_win32.c:630:21: warning: comparison between pointer and integer
630 | if (create_snap == NULL) {
| ^~
crypto/dso/dso_win32.c:640:19: error: 'CLOSETOOLHELP32SNAPSHOT' undeclared (first use in this function)
640 | close_snap = (CLOSETOOLHELP32SNAPSHOT) CloseHandle;
| ~~~~~~~~~~~~~~~~~~~
crypto/dso/dso_win32.c:640:43: error: expected ';' before 'CloseHandle'
640 | close_snap = (CLOSETOOLHELP32SNAPSHOT) CloseHandle;
| ~~~~~~~~
| ;
gcc -I. -Iinclude -m64 -Wall -O3 -g -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"C:/Program Files/Common Files/SSL\"" -DENGINESDIR="\"/D/OpenResty/openresty-1.17.8.2-source/openresty/objs/lib/openssl-1.1.1g/.openssl/lib/engines-1_1\"" -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -DNDEBUG -MMD -MF crypto/ec/ec2_oct.d.tmp -MT crypto/ec/ec2_oct.o -c -o crypto/ec/ec2_oct.o crypto/ec/ec2_oct.c
crypto/dso/dso_win32.c:642:21: error: 'MODULE32' undeclared (first use in this function); did you mean 'MODULEENTRY32'?
642 | module_first = (MODULE32) GetProcAddress(dll, "Module32First");
| ~~~~
| MODULEENTRY32
crypto/dso/dso_win32.c:642:30: error: expected ';' before 'GetProcAddress'
642 | module_first = (MODULE32) GetProcAddress(dll, "Module32First");
| ~~~~~~~~~~~
| ;
crypto/dso/dso_win32.c:643:29: error: expected ';' before 'GetProcAddress'
643 | module_next = (MODULE32) GetProcAddress(dll, "Module32Next");
| ~~~~~~~~~~~
| ;
crypto/dso/dso_win32.c:645:20: error: invalid type argument of unary '' (have 'int')
645 | hModuleSnap = (create_snap) (TH32CS_SNAPMODULE, 0);
| ~~~~~~~~
crypto/dso/dso_win32.c:654:11: error: invalid type argument of unary '' (have 'int')
654 | if (!(module_first) (hModuleSnap, &me32)) {
| ~~~~~~~~~
crypto/dso/dso_win32.c:655:10: error: invalid type argument of unary '' (have 'int')
655 | (close_snap) (hModuleSnap);
| ~~~~~~~
crypto/dso/dso_win32.c:662:14: error: invalid type argument of unary '' (have 'int')
662 | (close_snap) (hModuleSnap);
| ~~~~~~~
crypto/dso/dso_win32.c:666:15: error: invalid type argument of unary '' (have 'int')
666 | } while ((module_next) (hModuleSnap, &me32));
| ~~~~~~~~
crypto/dso/dso_win32.c:668:6: error: invalid type argument of unary '' (have 'int')
668 | (*close_snap) (hModuleSnap);
| ~~~~~~~