cURL / Mailing Lists / curl-library / Single Mail

curl-library

building curl 7.10.6 under MSVC 6

From: David Byron <DByron_at_everdreamcorp.com>
Date: Thu, 31 Jul 2003 14:57:40 -0700

Wish I would have gotten to this before 7.10.6 arrived, but so be it.

I'm trying to build curl 7.10.6 from source. I'm running cygwin, but I want
to build a native app using MSVC, with ssl support from openssl-0.9.7a. I'd
be happy for now just using the openssl binaries from
http://curl.haxx.se/download/openssl-0.9.7a-win32-bin.zip, but that archive
doesn't have the header files, so I need to build openssl as well. Got the
source from http://www.openssl.org/source/openssl-0.9.7a.tar.gz and followed
the instructions. Building the DLLs failed with a couple of unresolved
externs that I couldn't fix, but the static libraries seemed to build fine
(ms/nt.mak) which in the end is better for me.

For now, I'm leaving a few intermediate details. I get the lib directory to
build all the way through. In the src directory, I ran into these problems:

1. make couldn't find hugehelp.c.cvs, already discussed, and patched in cvs.
2. the compiler couldn't find zlib.h. I think I've got that covered. See
the attached patch.
3. a couple of unresolved externs because the linker didn't look in
zlib.lib. Also solved I think by the patch.
4. the linker couldn't find RSAglue.lib. The patch removes it from the
Makefile.
5. unresolved externs for some stuff in http_ntlm.c. Also discussed
already, and patched in cvs.

Happily, I now get:

$ curl -V
curl 7.10.6 (win32) libcurl/7.10.6 OpenSSL/0.9.7a
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: SSL NTLM

and it even seems to work!

Not related to the above, I also changed the default for OPENSSL_PATH to
point to version 0.9.7a. It's been long enough that I forget what I did to
keep make from recompiling hugehelp, writeout, urlglob, and main each time.
I can dig up that work too if Daniel or someone closer to cvs can't find it
and is still interested.

I'm not sure if this is what folks had in mind for zlib support. The patch
is against rev 1.13 of src/Makefile.vc6.

To be complete, docs/INSTALL needs some new text as well. I've attached a
patch that contains my attempt.

-DB

--
David Byron                   dbyron_at_everdream.com
Everdream                     http://www.everdream.com
6591 Dumbarton Circle         voice:(510)818-5550
Fremont, CA  94555            fax:(510)818-5510


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

Received on 2003-08-01