Hi,
I'm trying to build from source stunnel-4.33 for W32 in a machine with Debian lenny following the guidelines provided in INSTALL.W32. First I received complains from the compiler about zlib.h not found. Then I copied the zlib headers from /usr/include in include directory under openssl tree. Now openssl 1.0 compiles smoothly but when I try to compile stunnel I received the following error:
i586-mingw32msvc-gcc -s -o stunnel.exe file.obj client.obj log.obj options.obj protocol.obj network.obj resolver.obj ssl.obj ctx.obj verify.obj sthreads.obj stunnel.obj gui.obj resources.obj -L/usr/src/openssl-1.0.0 -lzdll -lcrypto.dll -lssl.dll -lws2_32 -lgdi32 -mwindows /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lzdll collect2: ld returned 1 exit status make: *** [stunnel.exe] Error 1
Am I doing some basic mistake?
JF
JF wrote:
I'm trying to build from source stunnel-4.33 for W32 in a machine with Debian lenny following the guidelines provided in INSTALL.W32.
I forgot to update INSTALL.W32 with details required to build zlib:
| Download the recent zlib source from http://www.zlib.net/ | Update the PREFIX definition in win32/Makefile.gcc file to: | PREFIX = i586-mingw32msvc- | then build zlib with: | make -f win32/Makefile.gcc | and install it in mingw32 tree: | sudo BINARY_PATH=~/ \ | INCLUDE_PATH=/usr/i586-mingw32msvc/include/ \ | LIBRARY_PATH=/usr/i586-mingw32msvc/lib/ \ | make -f win32/Makefile.gcc install
Mike