Hi,

I am trying to compile last version(0.9.8m) on a msys/mingw environment
using compiler from mingw-64 project(32bits) but I get many errors : 

SM   -c -o err_all.o err_all.c
In file included from ../../include/openssl/engine.h:91,
                 from err_all.c:92:
../../include/openssl/store.h:390: error: expected identifier or '('
before 'LPC
STR'
../../include/openssl/store.h:390: error: expected ')' before numeric
constant
../../include/openssl/store.h:397: error: expected declaration specifiers
or '..
.' before '(' token
../../include/openssl/store.h:405: error: expected declaration specifiers
or '..
.' before '(' token
In file included from err_all.c:95:
../../include/openssl/ocsp.h:156: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:195: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:207: error: expected specifier-qualifier-list
befor
e '(' token
../../include/openssl/ocsp.h:351: error: expected specifier-qualifier-list
befor
e '(' token
../../include/openssl/ocsp.h:405: error: expected identifier or '(' before
'LPCS
TR'
../../include/openssl/ocsp.h:405: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:406: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:408: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:414: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:418: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:420: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:422: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:423: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:425: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:425: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:426: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:428: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:435: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:436: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:454: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:461: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:462: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:467: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:468: error: expected identifier or '(' before
'LPCS
TR'
../../include/openssl/ocsp.h:468: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:490: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:492: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:493: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:494: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:495: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:496: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:497: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:498: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:499: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:501: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:542: error: expected identifier or '(' before
'LPCS
TR'
../../include/openssl/ocsp.h:542: error: expected ')' before numeric
constant
In file included from err_all.c:95:
../../include/openssl/ocsp.h:542:1: error: pasting ")" and "_new" does not
give
a valid preprocessing token
../../include/openssl/ocsp.h:542: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:542:1: error: pasting ")" and "_free" does
not give
 a valid preprocessing token
../../include/openssl/ocsp.h:542: error: expected identifier or '(' before
'LPCS
TR'
../../include/openssl/ocsp.h:542: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:542:1: error: pasting "d2i_" and "(" does not
give
a valid preprocessing token
../../include/openssl/ocsp.h:542:1: error: pasting "i2d_" and "(" does not
give
a valid preprocessing token
../../include/openssl/ocsp.h:542: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:542: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:542: error: 'i2d_' declared as function
returning a
 function
../../include/openssl/ocsp.h:542: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:542:1: error: pasting ")" and "_it" does not
give a
 valid preprocessing token
../../include/openssl/ocsp.h:546: error: expected identifier or '(' before
'LPCS
TR'
../../include/openssl/ocsp.h:546: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:546:1: error: pasting ")" and "_new" does not
give
a valid preprocessing token
../../include/openssl/ocsp.h:546: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:546:1: error: pasting ")" and "_free" does
not give
 a valid preprocessing token
../../include/openssl/ocsp.h:546: error: expected identifier or '(' before
'LPCS
TR'
../../include/openssl/ocsp.h:546: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:546:1: error: pasting "d2i_" and "(" does not
give
a valid preprocessing token
../../include/openssl/ocsp.h:546:1: error: pasting "i2d_" and "(" does not
give
a valid preprocessing token
../../include/openssl/ocsp.h:546: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:546: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:546: error: 'i2d_' declared as function
returning a
 function
../../include/openssl/ocsp.h:546: error: expected ')' before numeric
constant
../../include/openssl/ocsp.h:546:1: error: pasting ")" and "_it" does not
give a
 valid preprocessing token
../../include/openssl/ocsp.h:556: error: expected declaration specifiers
or '...
' before '(' token
../../include/openssl/ocsp.h:557: error: expected declaration specifiers
or '...
' before '(' token
make[2]: *** [err_all.o] Error 1
make[2]: Leaving directory `/home/Vincent/openssl-0.9.8m/crypto/err'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/Vincent/openssl-0.9.8m/crypto'
make: *** [build_crypto] Error 1

This first series can be fixed by undefining some windows
constants(X509_NAME, ...) in rand.h:

#if defined(OPENSSL_SYS_WINDOWS)
#include <windows.h>
#undef X509_NAME
#undef X509_EXTENSIONS
#undef X509_CERT_PAIR
#undef PKCS7_ISSUER_AND_SERIAL
#undef OCSP_REQUEST
#undef OCSP_RESPONSE
#endif


Now I have a second series of error:

In file included from ../include/openssl/ssl.h:189,
                 from ssl_locl.h:139,
                 from t1_lib.c:64:
../include/openssl/pem.h:157: error: expected specifier-qualifier-list
before '(
' token
In file included from ../include/openssl/ssl.h:189,
                 from ssl_locl.h:139,
                 from t1_lib.c:64:
../include/openssl/pem.h:644: error: expected identifier or '(' before
'LPCSTR'
../include/openssl/pem.h:644: error: expected ')' before numeric constant
In file included from ../include/openssl/ssl.h:189,
                 from ssl_locl.h:139,
                 from t1_lib.c:64:
../include/openssl/pem.h:644:1: error: pasting "PEM_read_bio_" and "("
does not
give a valid preprocessing token
../include/openssl/pem.h:644: error: expected identifier or '(' before
'LPCSTR'
../include/openssl/pem.h:644: error: expected ')' before numeric constant
../include/openssl/pem.h:644:1: error: pasting "PEM_read_" and "(" does
not give
 a valid preprocessing token
../include/openssl/pem.h:644:1: error: pasting "PEM_write_bio_" and "("
does not
 give a valid preprocessing token
../include/openssl/pem.h:644: error: expected declaration specifiers or
'...' be
fore '(' token
../include/openssl/pem.h:644: error: expected declaration specifiers or
'...' be
fore '(' token
../include/openssl/pem.h:644: error: 'PEM_write_bio_' declared as function
retur
ning a function
../include/openssl/pem.h:644:1: error: pasting "PEM_write_" and "(" does
not giv
e a valid preprocessing token
../include/openssl/pem.h:644: error: expected declaration specifiers or
'...' be
fore '(' token
../include/openssl/pem.h:644: error: expected declaration specifiers or
'...' be
fore '(' token
../include/openssl/pem.h:644: error: 'PEM_write_' declared as function
returning
 a function
In file included from ssl_locl.h:139,
                 from t1_lib.c:64:
../include/openssl/ssl.h:1046: error: expected specifier-qualifier-list
before '
(' token
t1_lib.c: In function 'ssl_add_clienthello_tlsext':
t1_lib.c:242: error: 'SSL' has no member named 'tlsext_ocsp_exts'
t1_lib.c:244: error: 'SSL' has no member named 'tlsext_ocsp_exts'
t1_lib.c:271: error: 'SSL' has no member named 'tlsext_ocsp_exts'
t1_lib.c: In function 'ssl_add_serverhello_tlsext':
t1_lib.c:325: error: 'SSL' has no member named 'tlsext_ticket_expected'
t1_lib.c: In function 'ssl_parse_clienthello_tlsext':
t1_lib.c:562: error: 'SSL' has no member named 'tlsext_ocsp_exts'
t1_lib.c:565: error: 'SSL' has no member named 'tlsext_ocsp_exts'
t1_lib.c: In function 'ssl_parse_serverhello_tlsext':
t1_lib.c:645: error: 'SSL' has no member named 'tlsext_ticket_expected'
t1_lib.c: In function 'ssl_check_clienthello_tlsext':
t1_lib.c:728: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:728: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:729: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:729: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:747: error: 'SSL' has no member named 'tlsext_ocsp_resp'
t1_lib.c: In function 'ssl_check_serverhello_tlsext':
t1_lib.c:786: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:786: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:787: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:787: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:799: error: 'SSL' has no member named 'tlsext_ocsp_resp'
t1_lib.c:801: error: 'SSL' has no member named 'tlsext_ocsp_resp'
t1_lib.c:802: error: 'SSL' has no member named 'tlsext_ocsp_resp'
t1_lib.c:804: error: 'SSL' has no member named 'tlsext_ocsp_resplen'
t1_lib.c: In function 'tls1_process_ticket':
t1_lib.c:893: error: 'SSL' has no member named 'tlsext_ticket_expected'
t1_lib.c: In function 'tls_decrypt_ticket':
t1_lib.c:915: error: 'SSL' has no member named 'initial_ctx'
t1_lib.c:985: error: 'SSL' has no member named 'tlsext_ticket_expected'
t1_lib.c:992: error: 'SSL' has no member named 'tlsext_ticket_expected'
make[1]: *** [t1_lib.o] Error 1
make[1]: Leaving directory `/home/Vincent/openssl-0.9.8m/ssl'
make: *** [build_ssl] Error 1


I am investigating but if you have any idea ...
If you want to reproduce easily you can install EasyMingw 
a msys installer I am working on with mingw-w64 toolchain.
(http://www.smartmobili.com/content/view/50/41/lang,english/)


http://www.smartmobili.com/Downloads/EasyMingw-0.1-setup.exe

Then download the following package and move them in /mingw32
http://www.smartmobili.com/Downloads/gcc-full_4.4.4-0_mingw32.tar.lzma
http://www.smartmobili.com/Downloads/autoconf_2.64-0_mingw32.tar.lzma
http://www.smartmobili.com/Downloads/automake_1.11.1-0_mingw32.tar.lzma

Go to Windows Start Menu->EasyMingw 0x->Shell
cd /mingw32
for i in *.tar.lzma; do echo working on $i; tar xvf $i ; done

Now you can go to your home directory and try to compile openssl :
cd
tar xvf openssl-0.9.8m.tar.gz
cd openssl-0.9.8m
./Configure mingw


THERE IS SMALL BUG you need to comment on line once it's configured:
#$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin" && !is_msys());
then run configure again.

now you can reproduce compilation errors

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to