How to get libeay32.dll and libssl32.dll?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get libeay32.dll and libssl32.dll?

Carsten Krüger
Hello,

how do I get libeay32.dll and libssl32.dll?

I've tried:

$ ./Configure mingw enable-rc5 enable-mdc2 shared
[...]
$ make depend
[...]
$ make
[...]
$ make test
$ make install


Build works and I get cryptoeay32-0.9.8.dll and ssleay32-0.9.8.dll.

I think
cryptoeay32-0.9.8.dll is libeay32.dll
ssleay32-0.9.8.dll is libssl32.dll

Renaming didn't work because the name are compiled in.

greetings
Carsten


______________________________________________________________________
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: How to get libeay32.dll and libssl32.dll?

Chris G.
I use Msys/Mingw to build the dlls using openssl-0.9.8.  However I have had to
remove line 910 [$IsMK1MF=1 if ($target eq "mingw" && ^O ne
"cygwin");] (as suggested in a different thread by Doug Kaufman) from
the Configure script.

At the moment I am having trouble getting the .dlls to work but the
problem is more then
likely caused by the application I am using and not on how the dlls
were created.

Here are the steps I am doing:

Under Msys:

Explode the tarball using xhf option inside of the openssl-0.9.8 directory:

perl util/mkdef.pl 32 libeay > ms/libeay32.def
perl util/mkdef.pl 32 ssleay > ms/ssleay32.def

 ./Configure mingw

Then I have to copy several *.h and * .c files into include/openssl
and test directories respectively due to the inabilty of msys and/or
mingw to support links.  These commands will copy the files (and
probably some that dont need to be copied).  If I have missed any you
will notice the missing files when you try and compile.

cp ./crypto/*/*.h ./include/openssl
cp ./crypto/*.h ./include/openssl
cp *.h ./include/openssl
cp ./ssl/*.h ./include/openssl
cp ./crypto/*/*.c ./test
cp ./ssl/*.c ./test

make

Then once make completes I execute: (commands below are all on one line).

dllwrap --dllname libeay32.dll --output-lib libeay32.a --def
ms/libeay32.def libcrypto.a -lwsock32 -lgdi32

dllwrap --dllname libssl32.dll --output-lib libssl32.a --def
ms/ssleay32.def libssl.a libeay32.a

On 7/12/05, Carsten Krüger <[hidden email]> wrote:

> Hello,
>
> how do I get libeay32.dll and libssl32.dll?
>
> I've tried:
>
> $ ./Configure mingw enable-rc5 enable-mdc2 shared
> [...]
> $ make depend
> [...]
> $ make
> [...]
> $ make test
> $ make install
>
>
> Build works and I get cryptoeay32-0.9.8.dll and ssleay32-0.9.8.dll.
>
> I think
> cryptoeay32-0.9.8.dll is libeay32.dll
> ssleay32-0.9.8.dll is libssl32.dll
>
> Renaming didn't work because the name are compiled in.
>
> greetings
> Carsten
>
>
> ______________________________________________________________________
> 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[2]: How to get libeay32.dll and libssl32.dll?

Carsten Krüger
Hi,

M> dllwrap --dllname libeay32.dll --output-lib libeay32.a --def
M> ms/libeay32.def libcrypto.a -lwsock32 -lgdi32

$ dllwrap --dllname libeay32.dll --output-lib libeay32.a --def ms/libeay32.def libcrypto.a -lwsock32 -lgdi32
libcrypto.a(bio_cb.o):bio_cb.c:(.text+0x1e2): undefined reference to `__imp___iob'
libcrypto.a(bss_file.o):bss_file.c:(.text+0x98): undefined reference to `__errno'
libcrypto.a(b_print.o):b_print.c:(.text+0x95b): undefined reference to `__imp___pctype'
libcrypto.a(b_print.o):b_print.c:(.text+0xbcb): undefined reference to `__imp___pctype'
libcrypto.a(b_print.o):b_print.c:(.text+0xd2c): undefined reference to `__isctype'
libcrypto.a(b_print.o):b_print.c:(.text+0xd77): undefined reference to `__isctype'
libcrypto.a(bn_print.o):bn_print.c:(.text+0x352): undefined reference to `__imp___pctype'
libcrypto.a(bn_print.o):bn_print.c:(.text+0x384): undefined reference to `__isctype'
libcrypto.a(bn_print.o):bn_print.c:(.text+0x582): undefined reference to `__imp___pctype'
libcrypto.a(bn_print.o):bn_print.c:(.text+0x5aa): undefined reference to `__isctype'
libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x497): undefined reference to `__imp___iob'
libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xa01): undefined reference to `__imp___iob'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x1447): undefined reference to `__imp___pctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x1472): undefined reference to `__imp___pctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x149f): undefined reference to `__isctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x14b2): undefined reference to `__isctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x14e2): undefined reference to `__imp___pctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x150a): undefined reference to `__isctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x1543): undefined reference to `__imp___pctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x1571): undefined reference to `__isctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x158b): undefined reference to `__imp___pctype'
libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x15b3): undefined reference to `__isctype'
libcrypto.a(pem_lib.o):pem_lib.c:(.text+0x65): undefined reference to `__imp___iob'
libcrypto.a(rsa_sign.o):rsa_sign.c:(.text+0x450): undefined reference to `__imp___iob'
libcrypto.a(txt_db.o):txt_db.c:(.text+0x258): undefined reference to `__imp___iob'
...

ideas?

greetings
Carsten

______________________________________________________________________
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: Re[2]: How to get libeay32.dll and libssl32.dll?

Chris G.
I had errors similar to yours (which I attributed to a typo I had
made) so I deleted the entire openssl-0.9.8 directory and then started
from scratch using the instructions I listed in my previous post and
everything worked under msys.



On 7/12/05, Carsten Krüger <[hidden email]> wrote:
...
[snip]
> $ dllwrap --dllname libeay32.dll --output-lib libeay32.a --def ms/libeay32.def libcrypto.a -lwsock32 -lgdi32
> libcrypto.a(bio_cb.o):bio_cb.c:(.text+0x1e2): undefined reference to `__imp___iob'
> libcrypto.a(bss_file.o):bss_file.c:(.text+0x98): undefined reference to `__errno'
> libcrypto.a(b_print.o):b_print.c:(.text+0x95b): undefined reference to `__imp___pctype'
[snip]
...
______________________________________________________________________
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[4]: How to get libeay32.dll and libssl32.dll?

Carsten Krüger
Hello MeeAGhost,

M> I had errors similar to yours (which I attributed to a typo I had
M> made) so I deleted the entire openssl-0.9.8 directory and then started
M> from scratch using the instructions I listed in my previous post and
M> everything worked under msys.

no typo: c&p, fresh tar extracted

greetings
Carsten

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