openssl-0.9.8 will not compile on MinGW

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

openssl-0.9.8 will not compile on MinGW

Frank Büttner-2
Hello, i have tryed to compile openssl but it stops with the error:
gcc -o out\md2test  tmp\md2test.o out\libssl.a out\libcrypto.a -lwsock32
-lgdi32
out\libcrypto.a(cryptlib.o)(.text+0x2b9):cryptlib.c: undefined reference to
`OPENSSL_ia32_cpuid'

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: openssl-0.9.8 will not compile on MinGW [u]

Andreas Jellinghaus-2
windows or linux?
for linux cross compiling with mingw see http://www.opensc.org/files/contrib/

Andreas
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: openssl-0.9.8 will not compile on MinGW [u]

Frank Büttner-2
Compiling for Windows unter Windows:)

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of Andreas Jellinghaus [c]
Sent: Wednesday, July 06, 2005 11:38 PM
To: [hidden email]
Subject: Re: openssl-0.9.8 will not compile on MinGW [u]

windows or linux?
for linux cross compiling with mingw see
http://www.opensc.org/files/contrib/

Andreas
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: openssl-0.9.8 will not compile on MinGW [u]

Andy Polyakov
> Compiling for Windows unter Windows:)

Mingw build was tested with Unix instructions. I personally tested it
under Cygwin with './Configure mingw [shared]; make' and there were
reports that Unix instructions work under MINGW itself too. Is it an
option? A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: openssl-0.9.8 will not compile on MinGW [u]

Frank Büttner-2
The pervious version will work. So i think it is a bug.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of Andy Polyakov
Sent: Thursday, July 07, 2005 8:09 PM
To: [hidden email]
Subject: Re: openssl-0.9.8 will not compile on MinGW [u]

> Compiling for Windows unter Windows:)

Mingw build was tested with Unix instructions. I personally tested it under
Cygwin with './Configure mingw [shared]; make' and there were reports that
Unix instructions work under MINGW itself too. Is it an option? A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: openssl-0.9.8 will not compile on MinGW [u]

Andy Polyakov
> The pervious version will work. So i think it is a bug.

Let me rephrase. Disregard mingw instructions in INSTALL.W32 and follow
Unix instructions instead [found in INSTALL]. Does it work then? If it
doesn't, provide details, such as exact configuration options and error
messages. If it fails, consider building under Cygwin.

In other words, we'd rather make sure it works with a procedure which is
exercised virtually daily, even though on another platform, than try to
patch something tested occasionally by somebody else.

> Mingw build was tested with Unix instructions. I personally tested it under
> Cygwin with './Configure mingw [shared]; make' and there were reports that
> Unix instructions work under MINGW itself too. Is it an option? A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: openssl-0.9.8 will not compile on MinGW [u]

Frank Büttner-2
perl Configure mingw:

Configuring for mingw
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-mdc2         [default]  OPENSSL_NO_MDC2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-shared       [default]
    no-zlib         [default]
    no-zlib-dynamic [default]
IsMK1MF=1
CC            =gcc
CFLAG         =-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
 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
EX_LIBS       =-lwsock32 -lgdi32
CPUID_OBJ     =x86cpuid-cof.o
BN_ASM        =bn86-cof.o co86-cof.o
DES_ENC       =dx86-cof.o yx86-cof.o
AES_ASM_OBJ   =ax86-cof.o
BF_ENC        =bx86-cof.o
CAST_ENC      =cx86-cof.o
RC4_ENC       =rx86-cof.o
RC5_ENC       =r586-cof.o
MD5_OBJ_ASM   =mx86-cof.o
SHA1_OBJ_ASM  =sx86-cof.o s512sse2-cof.o
RMD160_OBJ_ASM=rm86-cof.o
PROCESSOR     =
RANLIB        =true
ARFLAGS       =
PERL          =perl
THIRTY_TWO_BIT mode
DES_PTR used
DES_RISC1 used
DES_UNROLL used
BN_LLONG mode
RC4_INDEX mode
RC4_CHUNK is undefined

Configured for mingw.
Then maken will get this trash output:

C:\c++\OpenSSL\openssl-0.9.8>make
 Datenträger in Laufwerk C: ist Starten und System
 Volumeseriennummer: 2C6D-D0FE

 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8\crypto

07.07.2005  21:09    <DIR>          .
07.07.2005  21:09    <DIR>          ..
06.07.2005  13:18    <DIR>          aes
06.07.2005  13:18    <DIR>          asn1
06.07.2005  13:18    <DIR>          bf
06.07.2005  13:18    <DIR>          bio
06.07.2005  13:18    <DIR>          bn
06.07.2005  13:18    <DIR>          buffer
07.07.2005  21:09               388 buildinf.h
06.07.2005  13:18    <DIR>          cast
06.07.2005  13:18    <DIR>          comp
06.07.2005  13:18    <DIR>          conf
12.04.2005  18:15             4.066 cpt_err.c
05.07.2005  01:24            21.706 cryptlib.c
21.05.2005  15:19             4.433 cryptlib.h
01.06.2005  18:24            31.171 crypto-lib.com
08.05.2005  21:54            22.121 crypto.h
19.04.2004  20:09             4.248 cversion.c
06.07.2005  13:18    <DIR>          des
06.07.2005  13:18    <DIR>          dh
06.07.2005  13:18    <DIR>          dsa
06.07.2005  13:18    <DIR>          dso
30.10.2003  00:25            11.307 ebcdic.c
01.02.2000  04:21               540 ebcdic.h
06.07.2005  13:18    <DIR>          ec
06.07.2005  13:18    <DIR>          ecdh
06.07.2005  13:18    <DIR>          ecdsa
06.07.2005  13:18    <DIR>          engine
06.07.2005  13:18    <DIR>          err
06.07.2005  13:18    <DIR>          evp
19.04.2004  20:09            21.194 ex_data.c
06.07.2005  13:18    <DIR>          hmac
03.05.2005  23:05             2.571 ia64cpuid.S
06.07.2005  13:18    <DIR>          idea
24.03.2004  11:52             4.149 install.com
06.07.2005  13:18    <DIR>          krb5
06.07.2005  13:18    <DIR>          lhash
10.07.2004  15:16             1.722 LPdir_nyi.c
24.09.2004  00:11             3.681 LPdir_unix.c
24.09.2004  00:11             5.105 LPdir_vms.c
24.09.2004  00:11             4.346 LPdir_win.c
24.09.2004  00:11             1.558 LPdir_win32.c
24.09.2004  00:11             1.660 LPdir_wince.c
28.06.2005  11:10             8.099 Makefile
06.07.2005  13:18    <DIR>          md2
23.06.2005  23:27            18.567 md32_common.h
06.07.2005  13:18    <DIR>          md4
06.07.2005  13:18    <DIR>          md5
06.07.2005  13:18    <DIR>          mdc2
01.12.2003  14:06            12.986 mem.c
29.04.2005  16:27             3.121 mem_clr.c
05.07.2005  01:24            20.269 mem_dbg.c
06.07.2005  13:18    <DIR>          objects
06.07.2005  13:18    <DIR>          ocsp
07.07.2005  21:09             6.141 opensslconf.h
06.07.2005  22:40             6.141 opensslconf.h.bak
01.06.2004  05:18             4.630 opensslconf.h.in
05.07.2005  20:49             3.749 opensslv.h
17.05.2004  20:39             6.446 ossl_typ.h
03.08.2004  21:15             3.451 o_dir.c
10.07.2004  15:16             2.111 o_dir.h
10.07.2004  15:16             2.333 o_dir_test.c
13.01.2005  17:46             3.594 o_str.c
08.07.2004  10:32             3.001 o_str.h
19.07.2004  09:50             7.374 o_time.c
05.07.2001  12:20             2.917 o_time.h
06.07.2005  13:18    <DIR>          pem
06.07.2005  13:18    <DIR>          perlasm
06.07.2005  13:18    <DIR>          pkcs12
06.07.2005  13:18    <DIR>          pkcs7
06.07.2005  13:18    <DIR>          pqueue
06.07.2005  13:18    <DIR>          rand
06.07.2005  13:18    <DIR>          rc2
06.07.2005  13:18    <DIR>          rc4
06.07.2005  13:18    <DIR>          rc5
06.07.2005  13:18    <DIR>          ripemd
06.07.2005  13:18    <DIR>          rsa
06.07.2005  13:18    <DIR>          sha
03.05.2005  23:05             4.691 sparccpuid.S
06.07.2005  13:18    <DIR>          stack
06.07.2005  13:18    <DIR>          store
08.09.2004  10:13            19.456 symhacks.h
06.07.2005  13:18    <DIR>          threads
28.11.2003  15:10             7.527 tmdiff.c
29.10.2003  06:40             4.117 tmdiff.h
06.07.2005  13:18    <DIR>          txt_db
06.07.2005  13:18    <DIR>          ui
28.11.2003  15:10             3.190 uid.c
06.07.2005  13:18    <DIR>          x509
06.07.2005  13:18    <DIR>          x509v3
24.06.2005  18:34             3.795 x86cpuid.pl
20.06.2005  16:50             2.280 x86_64cpuid.pl
              42 Datei(en)        305.952 Bytes

 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8


 Verzeichnis von C:\c++\OpenSSL\openssl-0.9.8

Datei nicht gefunden
mingw32-make: *** [build_crypto] Error 1

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of Andy Polyakov
Sent: Thursday, July 07, 2005 8:46 PM
To: [hidden email]
Subject: Re: openssl-0.9.8 will not compile on MinGW [u]

> The pervious version will work. So i think it is a bug.

Let me rephrase. Disregard mingw instructions in INSTALL.W32 and follow Unix
instructions instead [found in INSTALL]. Does it work then? If it doesn't,
provide details, such as exact configuration options and error messages. If
it fails, consider building under Cygwin.

In other words, we'd rather make sure it works with a procedure which is
exercised virtually daily, even though on another platform, than try to
patch something tested occasionally by somebody else.

> Mingw build was tested with Unix instructions. I personally tested it
> under Cygwin with './Configure mingw [shared]; make' and there were
> reports that Unix instructions work under MINGW itself too. Is it an
option? A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]