I went back and uninstalled cygwin, as I inherited the cygwin
environment VM from someone else. I added the crosscompile patch
successfully, I managed to get the "./config fipscanisterbuild"
completed successfully, but when I go to do make, I get this series of
errors:

gcc -I. -I.. -I../include -D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS
-DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -DL_ENDIAN -fomit-frame-pointer
-O3 -march
PENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM   -c -o cryptlib.o
cryptlib.c
In file included from cryptlib.c:312:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:35:
error: expected specifier-qualifier-list before `DWORD'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:41:
error: expected specifier-qualifier-list before `DWORD'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:52:
error: expected specifier-qualifier-list before `DWORD'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:64:
error: expected specifier-qualifier-list before `DWORD'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:76:
error: expected specifier-qualifier-list before `DWORD'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:85:
error: expected specifier-qualifier-list before `DWORD'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:97:
error: expected specifier-qualifier-list before `DWORD'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:108:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:109:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:110:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:111:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:112:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:113:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:114:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:115:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:116:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:117:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:118:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:119:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:120:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:121:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:122:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/tlhelp32.h:123:
error: expected `=', `,', `;', `asm' or `__attribute__' before
`WINAPI'
make[1]: *** [cryptlib.o] Error 1
make[1]: Leaving directory `/cygdrive/d/openssl-fips-1.2/crypto'
make: *** [build_crypto] Error 1

I'm using the cross-compile instructions in the user's guide, but
there is nothing that talks about this kind of issue.  I looked at the
differences between tlhelp32 in the "cygwin/usr/include/w32api" and
/cygdrive/d/openssl-fips-1.2/ms directories, and I exchanged the one
in the "ms" directory for the one in the w32api, but I still received
the same error as above.  Removing it altogether just causes the build
to fail at the last "gcc" command above.

Is there a way to get around this?  It doesn't seem to matter using
gcc3 or gcc4, I still get the same issue, but only worse using gcc3,
see below:

gcc -I. -I.. -I../include -D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS
-DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -DL_ENDIAN -fomit-frame-pointer
-O3 -march=i486 -Wall -DO
PENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM   -c -o cryptlib.o
cryptlib.c
In file included from cryptlib.c:312:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:35:
error: parse error before "DWORD"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:37:
error: parse error before "th32HeapID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:38:
error: parse error before "dwFlags"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:41:
error: parse error before "DWORD"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:43:
error: parse error before "dwAddress"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:44:
error: parse error before "dwBlockSize"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:45:
error: parse error before "dwFlags"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:46:
error: parse error before "dwLockCount"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:47:
error: parse error before "dwResvd"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:48:
error: parse error before "th32ProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:49:
error: parse error before "th32HeapID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:52:
error: parse error before "DWORD"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:54:
error: parse error before "th32ProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:55:
error: parse error before "th32DefaultHeapID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:56:
error: parse error before "th32ModuleID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:57:
error: parse error before "cntThreads"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:58:
error: parse error before "th32ParentProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:59:
error: parse error before "pcPriClassBase"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:60:
error: parse error before "dwFlags"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:61:
error: parse error before "szExeFile"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:61:
error: `MAX_PATH' undeclared here (not in a function)
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:62:
error: parse error before '}' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:64:
error: parse error before "DWORD"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:66:
error: parse error before "th32ProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:67:
error: parse error before "th32DefaultHeapID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:68:
error: parse error before "th32ModuleID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:69:
error: parse error before "cntThreads"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:70:
error: parse error before "th32ParentProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:71:
error: parse error before "pcPriClassBase"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:72:
error: parse error before "dwFlags"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:73:
error: parse error before "szExeFile"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:74:
error: parse error before '}' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:76:
error: parse error before "DWORD"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:78:
error: parse error before "th32ThreadID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:79:
error: parse error before "th32OwnerProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:80:
error: parse error before "tpBasePri"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:81:
error: parse error before "tpDeltaPri"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:82:
error: parse error before "dwFlags"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:85:
error: parse error before "DWORD"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:87:
error: parse error before "th32ProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:88:
error: parse error before "GlblcntUsage"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:89:
error: parse error before "ProccntUsage"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:90:
error: parse error before '*' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:91:
error: parse error before "modBaseSize"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:92:
error: parse error before "hModule"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:93:
error: parse error before "szModule"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:94:
error: parse error before "szExePath"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:95:
error: parse error before '}' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:97:
error: parse error before "DWORD"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:99:
error: parse error before "th32ProcessID"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:100:
error: parse error before "GlblcntUsage"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:101:
error: parse error before "ProccntUsage"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:102:
error: parse error before '*' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:103:
error: parse error before "modBaseSize"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:104:
error: parse error before "hModule"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:105:
error: conflicting types for 'szModule'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:93:
error: previous declaration of 'szModule' was here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:107:
error: parse error before '}' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:108:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:109:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:110:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:111:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:112:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:113:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:114:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:115:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:116:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:117:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:118:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:119:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:120:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:121:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:122:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:123:
error: parse error before "WINAPI"
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:61:
error: storage size of `szExeFile' isn't known
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:73:
error: storage size of `szExeFile' isn't known
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:94:
error: storage size of `szExePath' isn't known
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/tlhelp32.h:106:
error: storage size of `szExePath' isn't known
make[1]: *** [cryptlib.o] Error 1
make[1]: Leaving directory `/cygdrive/d/openssl-fips-1.2/crypto'
make: *** [build_crypto] Error 1


Am I missing anything?  I realized that ActiveState perl caused an
error that caused "./config fipscanisterbuild"
 to fail when it got to the fips/aes directory, so I took that out of
my $PATH, and it does run ./config, but the above errors are coming
from "make".  Can't use another make, as I am following the User
Guide.

I did write this around 11:30pm my time, so I might have left
something out.  If you have questions, please ask.

Thanks
Bryan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to