cURL / Mailing Lists / curl-users / Single Mail

curl-users

zlib & win32 (was: error with -k)

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Thu, 30 Jan 2003 08:28:07 -0500

I can confirm that Daniel's patch fixes the problem. Thanks!

On a related note - I can't seem to get zlib to show up with the Win32 native build. I adjusted the Makefile.m32's as listed in the patches below, and still can't quite seem to get it working. I downloaded zlib-1.1.4-lib.zip pre-built from http://sourceforge.net/project/showfiles.php?group_id=23617. It compiles and links without error (including -lz and -DHAVE_ZLIB_H) but curl -V doesn't list zlib...

(by the way - could someone place a link to the win32 build of zlib on the downloads page? Could someone also upload an openssl-0.9.x-dev package for win32?)

Thanks,
- Kevin

____________________________________________________________
Patch for lib/Makefile.m32:

--- Makefile.m32.old Thu Jan 30 08:00:50 2003
+++ Makefile.m32 Thu Jan 30 08:10:40 2003
@@ -13,7 +13,7 @@
 RANLIB = ranlib
 STRIP = strip -g
 OPENSSL_PATH = ../../openssl-0.9.6g
-ZLIB_PATH = ../../zlib-1.1.3
+ZLIB_PATH = ../../zlib-1.1.4
 
 ########################################################
 ## Nothing more to do below this line!
@@ -26,9 +26,9 @@
   DLL_LIBS = -L$(OPENSSL_PATH)/out -leay32 -lssl32 -lRSAglue
 endif
 ifdef ZLIB
- INCLUDES += -I"$(ZLIB_PATH)"
- CFLAGS += -DHAVE_ZLIB
- DLL_LIBS += -L$(ZLIB_PATH) -lz
+ INCLUDES += -I"$(ZLIB_PATH)/include"
+ CFLAGS += -DHAVE_ZLIB_H
+ DLL_LIBS += -L$(ZLIB_PATH)/lib -lz
 endif
 COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
 

___________________________________________________________
Patch for src/Makefile.m32:

--- Makefile.m32.old Thu Jan 30 08:04:25 2003
+++ Makefile.m32 Thu Jan 30 08:04:12 2003
@@ -13,7 +13,7 @@
 RM = rm -f
 STRIP = strip -s
 OPENSSL_PATH = ../../openssl-0.9.6g
-ZLIB_PATH = ../../zlib-1.1.3
+ZLIB_PATH = ../../zlib-1.1.4
 
 # We may need these someday
 # PERL = perl
@@ -46,7 +46,7 @@
   curl_LDADD += -L$(OPENSSL_PATH)/out -leay32 -lssl32 -lRSAglue
 endif
 ifdef ZLIB
- curl_LDADD += -L$(ZLIB_PATH) -lz
+ curl_LDADD += -L$(ZLIB_PATH)/lib -lz
 endif
 
 PROGRAMS = $(curl_PROGRAMS)

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com
Received on 2003-01-30