Hi Eystein, > typedef struct _STRING { > USHORT Length; > USHORT MaximumLength; > PCHAR Buffer; > } STRING, *PSTRING; That looks like a UNICODE_STRING (or less commonly LSA_STRING) to me. I don't ever recall seeing Microsoft defining it as a STRING. Perhaps mingw/ntdef.h is the culprit.
Jeff On 9/17/09, Eystein Måløy Stenberg <eystein.stenb...@gmail.com> wrote: > HI all, > I'm using OpenSSL version 1.0.0 beta3 on Windows through MinGW. > The reason for using the beta version is that I get errors compiling > stable versions (openssl-0.9.8h); "./Configure mingw && make" gives: > --- > Configured for mingw. > making all in crypto... > make[1]: Entering directory `/home/Admin/openssl-0.9.8h/crypto' > ( echo "#ifndef MK1MF_BUILD"; \ > echo ' /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \ > echo ' #define CFLAGS "gcc -DOPENSSL_THREADS -DDSO_WIN32 -mno-cygwin > -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall > -D_WIN32_WINNT=0x333 -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 > -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM"'; \ > echo ' #define PLATFORM "mingw"'; \ > echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \ > echo '#endif' ) >buildinf.h > make[1]: *** No rule to make target `../include/openssl/crypto.h', > needed by `cryptlib.o'. Stop. > make[1]: Leaving directory `/home/Admin/openssl-0.9.8h/crypto' > make: *** [build_crypto] Error 1 > --- > > While in 1.0.0 beta3, everything builds just fine. > However, safestack.h, line 113 says "typedef char *STRING;", which > collides with /mingw/include/ntdef.h, line 35: > typedef struct _STRING { > USHORT Length; > USHORT MaximumLength; > PCHAR Buffer; > } STRING, *PSTRING; > > I.e. the two header files safestack.h and ntdef.h both define STRING. > I don't find this STRING definition in the stable releases, hopefully > it is just temporary in the beta release? > I believe that header files should not use such generic names (e.g. > OSSLSTRING would be better). > > Do you know if this will be fixed or could you point out what's wrong > when I'm trying to build the stable version? > > Thank you! > > Best regards, > Eystein Stenberg > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org