cURL / Mailing Lists / curl-library / Single Mail

curl-library

Compiling cURL with borland

From: Matthew \ <tragic.descent_at_gmail.com>
Date: Mon, 13 Feb 2006 22:06:56 -0500

First off, let me do a little brown-nosing and say that after looking
into several other libraries curl is by far the best and easiest to work
with.

I run a Linux machine, but have a cross compile environment setup using
wine and borland as well as a compiling environment under qemu and
windows 98. I have compiled other programs using this setup and find
them to all work correctly under wine, emulated windows, as well as a
winXP machine.

Despite my best efforts and a lot of google searching, I cannot find a
solution to this error while trying to compile libcurl under borland for
windows:

//-- begin

> «[zashi_at_solidus:lib]» wine make -f Makefile.b32
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> bcc32 -c -I.;../include -q -5 -O2 -w-aus -w-ccc -w-csu -w-par
> -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM -DNDEBUG -DWIN32 -D_CONSOLE
> -D_MBCS -DBUILDING_LIBCURL file.c

// --- snip snip

//--- snip snip

>
> bcc32 -c -I.;../include -q -5 -O2 -w-aus -w-ccc -w-csu -w-par
> -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM -DNDEBUG -DWIN32 -D_CONSOLE
> -D_MBCS -DBUILDING_LIBCURL http.c
> http.c:
> bcc32 -c -I.;../include -q -5 -O2 -w-aus -w-ccc -w-csu -w-par
> -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM -DNDEBUG -DWIN32 -D_CONSOLE
> -D_MBCS -DBUILDING_LIBCURL sendf.c
> sendf.c:
> bcc32 -c -I.;../include -q -5 -O2 -w-aus -w-ccc -w-csu -w-par
> -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM -DNDEBUG -DWIN32 -D_CONSOLE
> -D_MBCS -DBUILDING_LIBCURL ftp.c
> ftp.c:
> Error E2450 sockaddr.h 30: Undefined structure 'sockaddr_storage'
> Error E2453 sockaddr.h 31: Size of the type 'Curl_sockaddr_storage' is
> unknown or zero
> Warning W8019 ftp.c 3179: Code has no effect in function ftp_perform
> *** 2 errors in Compile ***
>
> ** error 1 ** deleting ftp.obj

//-- end

Okay, so as you can see it does compile some things, then it runs into
an error in sockaddr.h. I tried altering the code in sockaddr.h but no
combination of commenting and uncommenting solved the problem.

Any information would be appreciated, even if it is that curl just will
not compile under borland, I will know to stop barking up that
particular tree.

~Matthew "Zashi" Hiles
Received on 2006-02-14