To whom It may concern While building the openssl-1.0.0b for windows (using the mingw compiler) I get the following build error :
making all in crypto/dso... make[2]: Entering directory `/cygdrive/f/openssl-1.0.0a/crypto/dso' gcc -I.. -I../.. -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_MT -DD SO_WIN32 -mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 - march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_AS M_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DW HIRLPOOL_ASM -c -o dso_win32.o dso_win32.c dso_win32.c: In function `win32_load': dso_win32.c:173: error: `HINSTANCE' undeclared (first use in this function) dso_win32.c:173: error: (Each undeclared identifier is reported only once dso_win32.c:173: error: for each function it appears in.) dso_win32.c:173: error: parse error before "h" dso_win32.c:182: error: `h' undeclared (first use in this function) dso_win32.c:182: warning: implicit declaration of function `LoadLibraryA' dso_win32.c:189: error: `p' undeclared (first use in this function) dso_win32.c:189: error: parse error before ')' token dso_win32.c:211: warning: implicit declaration of function `FreeLibrary' dso_win32.c: In function `win32_unload': dso_win32.c:217: error: `HINSTANCE' undeclared (first use in this function) dso_win32.c:217: error: `p' undeclared (first use in this function) dso_win32.c: In function `win32_bind_var': dso_win32.c:248: error: `HINSTANCE' undeclared (first use in this function) dso_win32.c:248: error: `ptr' undeclared (first use in this function) dso_win32.c:267: warning: implicit declaration of function `GetProcAddress' dso_win32.c:267: warning: assignment makes pointer from integer without a cast dso_win32.c: In function `win32_bind_func': dso_win32.c:279: error: `HINSTANCE' undeclared (first use in this function) dso_win32.c:279: error: `ptr' undeclared (first use in this function) dso_win32.c:298: warning: assignment makes pointer from integer without a cast In file included from dso_win32.c:675: /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h: At top le vel: /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:35: error: parse error before "DWORD" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:37: error: parse error before "th32HeapID" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:38: error: parse error before "dwFlags" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:41: error: parse error before "DWORD" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:43: error: parse error before "dwAddress" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:44: error: parse error before "dwBlockSize" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:45: error: parse error before "dwFlags" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:46: error: parse error before "dwLockCount" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:47: error: parse error before "dwResvd" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:48: error: parse error before "th32ProcessID" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:49: error: parse error before "th32HeapID" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:52: error: parse error before "DWORD" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:54: error: parse error before "th32ProcessID" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:55: error: parse error before "th32DefaultHeapID" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:56: error: parse error before "th32ModuleID" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:57: error: parse error before "cntThreads" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:58: error: parse error before "th32ParentProcessID" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:59: error: parse error before "pcPriClassBase" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:60: error: parse error before "dwFlags" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:61: error: parse error before "szExeFile" /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:61: error: `MAX_PATH' undeclared here (not in a function) /usr/lib/gcc/i686-pc-msys/3.4.4/../../../../include/w32api/tlhelp32.h:62: error: .....etc I have fixed the error by adding two header includes to the dso_win32.c file line 63. #include "windef.h" #include "winbase.h" This seems to fix the problem. Is this a valid fix ? Kind regards Kumaran Moodley Senior Engineer Altech UEC (Pty) Ltd UEC House, 1 Montgomery Drive Mount Edgecombe 4300, South Africa +27 (0) 31 508 2954 (direct) +27 (0) 31 502 4463 (fax) [email protected] www.uec.co.za Leading Technologies: Touching Lives ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
