OpenSSL for Mingw

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

OpenSSL for Mingw

Sascha Kiefer
Hi.
Is it possible to compile OpenSSL for mingw?
I tried it, but get an error:

In file included from cversion.c:62:
buildinf.h:6:4: #error "Windows builds (PLATFORM=mingw) use mk1mf.pl-created
Makefiles"
make[1]: *** [cversion.o] Error 1
make[1]: Leaving directory `/d/Eigene
Dateien/Downloads/openssl-0.9.8a/crypto'
make: *** [build_crypto] Error 1


Any idea?
--esskar

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

RE: OpenSSL for Mingw

Sascha Kiefer
Ah, okay. I have to call that .bat file on the cmd, not in the mingw-shell

--sak

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Kiefer, Sascha
> Sent: Mittwoch, 8. Februar 2006 23:58
> To: [hidden email]
> Subject: OpenSSL for Mingw
>
>
> Hi.
> Is it possible to compile OpenSSL for mingw?
> I tried it, but get an error:
>
> In file included from cversion.c:62:
> buildinf.h:6:4: #error "Windows builds (PLATFORM=mingw) use
> mk1mf.pl-created Makefiles"
> make[1]: *** [cversion.o] Error 1
> make[1]: Leaving directory `/d/Eigene
> Dateien/Downloads/openssl-0.9.8a/crypto'
> make: *** [build_crypto] Error 1
>
>
> Any idea?
> --esskar
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>

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

Re: OpenSSL for Mingw

Dr. Stephen Henson
On Thu, Feb 09, 2006, Kiefer, Sascha wrote:

> Ah, okay. I have to call that .bat file on the cmd, not in the mingw-shell
>

From the msys shell you should be able to just do:

./config
make

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: OpenSSL for Mingw

Sascha Kiefer
No, that did not work.
See the first mail for the error.

--esskar

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Dr.
> Stephen Henson
> Sent: Donnerstag, 9. Februar 2006 01:14
> To: [hidden email]
> Subject: Re: OpenSSL for Mingw
>
>
> On Thu, Feb 09, 2006, Kiefer, Sascha wrote:
>
> > Ah, okay. I have to call that .bat file on the cmd, not in the
> > mingw-shell
> >
>
> From the msys shell you should be able to just do:
>
> ./config
> make
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see
> homepage OpenSSL project core developer and freelance
> consultant. Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>

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

Re: OpenSSL for Mingw

Dr. Stephen Henson
On Thu, Feb 09, 2006, Kiefer, Sascha wrote:

> No, that did not work.
> See the first mail for the error.
>

In the "Configure" script try commenting out the line:

$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin");

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: OpenSSL for Mingw

Sascha Kiefer
Looked better (now ./config copied the .h files and so on) but still
error's:

$ make
making all in crypto...
make[1]: Entering directory `/d/Eigene
Dateien/Downloads/openssl-0.9.8a/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 `/d/Eigene
Dateien/Downloads/openssl-0.9.8a/crypto'
make: *** [build_crypto] Error 1

Why is it '../include/openssl/crypto.h' . It should be './include/....',
right ?

--esskar

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Dr.
> Stephen Henson
> Sent: Donnerstag, 9. Februar 2006 19:04
> To: [hidden email]
> Subject: Re: OpenSSL for Mingw
>
>
> On Thu, Feb 09, 2006, Kiefer, Sascha wrote:
>
> > No, that did not work.
> > See the first mail for the error.
> >
>
> In the "Configure" script try commenting out the line:
>
> $IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin");
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see
> homepage OpenSSL project core developer and freelance
> consultant. Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>

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

Re: OpenSSL for Mingw

Dr. Stephen Henson
On Thu, Feb 09, 2006, Kiefer, Sascha wrote:

> Looked better (now ./config copied the .h files and so on) but still
> error's:
>
> $ make
> making all in crypto...
> make[1]: Entering directory `/d/Eigene
> Dateien/Downloads/openssl-0.9.8a/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 `/d/Eigene
> Dateien/Downloads/openssl-0.9.8a/crypto'
> make: *** [build_crypto] Error 1
>
> Why is it '../include/openssl/crypto.h' . It should be './include/....',
> right ?
>

Try tomorrow's snapshot. That worked fine for me from MSYS with that one
changed to Configure.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: OpenSSL for Mingw

Cesc Santa
Hi,

Yesterday i managed to compile openssl-0.9.8a, provided a patch
(credit to Mikael Magnusson). I attach the patch.
Cross-compilation from a debian etch (testing), using mingw32.
As for the configure line:

./Configure --prefix=$CROSS_COMPILE_FOLDER threads shared mingwx

I don't know exactly the story of the patch, neither i have tried
building any other version of openssl with mingw than 0.9.8a. But if
it is possible, i think this patch may be good to be merged into the
code.

Regards,

Cesc

On 2/9/06, Dr. Stephen Henson <[hidden email]> wrote:

> On Thu, Feb 09, 2006, Kiefer, Sascha wrote:
>
> > Looked better (now ./config copied the .h files and so on) but still
> > error's:
> >
> > $ make
> > making all in crypto...
> > make[1]: Entering directory `/d/Eigene
> > Dateien/Downloads/openssl-0.9.8a/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 `/d/Eigene
> > Dateien/Downloads/openssl-0.9.8a/crypto'
> > make: *** [build_crypto] Error 1
> >
> > Why is it '../include/openssl/crypto.h' . It should be './include/....',
> > right ?
> >
>
> Try tomorrow's snapshot. That worked fine for me from MSYS with that one
> changed to Configure.
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
> OpenSSL project core developer and freelance consultant.
> Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>

patch-openssl-0.9.8a-mingwx-mikma.diff (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: OpenSSL for Mingw

Sascha Kiefer
In reply to this post by Dr. Stephen Henson
Not any better.
But i detected an error: Not all h-files are copied to ./include
Copying all of them (by hand, or by a script) let me compile almost
everything (by calling ./config and make)
but at the end i still get an error that there is no target for 'sha256t.o'
. Can i disable sha256t somehow ?

The thing why i want to compile under mingw (i actually have a native win32
version up and running) is the need
of building gwenhywfar and libchipcard under mingw

--esskar



> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Dr.
> Stephen Henson
> Sent: Donnerstag, 9. Februar 2006 19:32
> To: [hidden email]
> Subject: Re: OpenSSL for Mingw
>
>
> On Thu, Feb 09, 2006, Kiefer, Sascha wrote:
>
> > Looked better (now ./config copied the .h files and so on) but still
> > error's:
> >
> > $ make
> > making all in crypto...
> > make[1]: Entering directory `/d/Eigene
> > Dateien/Downloads/openssl-0.9.8a/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 `/d/Eigene
> > Dateien/Downloads/openssl-0.9.8a/crypto'
> > make: *** [build_crypto] Error 1
> >
> > Why is it '../include/openssl/crypto.h' . It should be
> > './include/....', right ?
> >
>
> Try tomorrow's snapshot. That worked fine for me from MSYS
> with that one changed to Configure.
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see
> homepage OpenSSL project core developer and freelance
> consultant. Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>

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

Re: OpenSSL for Mingw

Dr. Stephen Henson
On Sun, Feb 12, 2006, Kiefer, Sascha wrote:

> Not any better.
> But i detected an error: Not all h-files are copied to ./include
> Copying all of them (by hand, or by a script) let me compile almost
> everything (by calling ./config and make)
> but at the end i still get an error that there is no target for 'sha256t.o'
> . Can i disable sha256t somehow ?
>

Did you change that one line in Configure? I just tried the last snapshot and
it compiled fine.

I haven't changed that line yet in the current snapshots. I'll look into why
it has changed.

If you still can't get it to work please post the output of ./config and make.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: OpenSSL for Mingw

Sascha Kiefer
Reinstalled my MinGW and it works now. :)

--sk

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Dr.
> Stephen Henson
> Sent: Sonntag, 12. Februar 2006 02:20
> To: [hidden email]
> Subject: Re: OpenSSL for Mingw
>
>
> On Sun, Feb 12, 2006, Kiefer, Sascha wrote:
>
> > Not any better.
> > But i detected an error: Not all h-files are copied to ./include
> > Copying all of them (by hand, or by a script) let me compile almost
> > everything (by calling ./config and make) but at the end i
> still get
> > an error that there is no target for 'sha256t.o' . Can i disable
> > sha256t somehow ?
> >
>
> Did you change that one line in Configure? I just tried the
> last snapshot and it compiled fine.
>
> I haven't changed that line yet in the current snapshots.
> I'll look into why it has changed.
>
> If you still can't get it to work please post the output of
> ./config and make.
>
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see
> homepage OpenSSL project core developer and freelance
> consultant. Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>

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