cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Building libcurl with Borland BCC5.5 compiler

From: Jon Torrey <ntox101_at_gmail.com>
Date: Fri, 9 May 2014 10:18:37 -0400

Steve & Daniel,

After playing around and experimenting with the Makefile, I was able to
successfully build. Just to make sure, I saved Makefile.b32, deleted the
curl-master, and did a make again. I did this just to make sure my process
still works even after a fresh extract.

I pastebin'd the changes so you either of you can take a look :
http://pastebin.com/FuGGL6iS ( expires in 2 weeks )

Line 56 does need to be edited back to it's default state which is without
-HTTP_ONLY and -DCURL_STATICLIB defines

I do believe some changes were not needed since after creating the
.\BCC_obj\vtls directory, no files are placed inside of it during the make
process.

I will leave this up to the real developers ( you guys ) to decide on what
to do with this.

Thank you for your generosity and the kick ass library you have put
together.

Regards,

JT

On Fri, May 9, 2014 at 9:08 AM, Jon Torrey <ntox101_at_gmail.com> wrote:

> I have followed yours and Daniel's advice further and have edited lines
> 145 by adding :
>
> $(OBJDIR):
> @-$(RMDIR) $(OBJDIR)
> @-$(MKDIR) $(OBJDIR)
> @-$(MKDIR) $(OBJDIR)/vtls
>
> *>> Do you know where openssl.obj, gtls.obj, vtls.obj etc... are being
> created?*
>
> Prior to these changes and after the changes, all .obj, even openssl.obj
> and .objs associated with \lib\vtls are all created and placed inside
> \lib\BCC_obj *without* subdirectory \vtls. \vtls gets created but no
> .objs are placed inside of it.
>
> *>> I would hope they are in .\BCC_obj\vtl\* or .\BCC_obj\* but I don’t
> think either that is happening... or if it is, the path that we are
> passing to the linker isn't the correct path as it contains a forward
> slashes and not backslashes!!*
>
> I tried using both types of slashes (just in case), results did not
> change. We do however need to use @-$(MKDIR) $(OBJDIR)\vtls to have the
> make process create the vtls subdirectory inside BCC_obj. It needed a
> backslash.
>
> With changes to line 145 AND 97 I restarted the build and got this output
> : (Last line of BCC included for reference)
>
> bcc32 -q -c -5 -O2 -tWM -w -w-aus -w-ccc -w-dup -w-prc -w-pro
> -w-rch -w-
> sig -w-spa -w-inl -w-pia -w-pin -Dinline=__inline -o.\BCC_objs\gskit.obj
> .\BCC_o
> bjs\gskit.int
> .\BCC_objs\gskit.int:
> tlib /C /P32 libcurl.lib @MAKE0000.@@@
> TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
> +./file.obj &
> Warning: unknown command line switch 'f' ignored
>
> Error: unexpected char 'i' in command line
>
> ** error 1 ** deleting libcurl.lib
>
> ** error 1 ** deleting borland
>
> Hence the first line, +./file.obj & is executed by TLIB and crashes.
> After removing changes made to 97 and reverting back to
>
> NOHYPHEN = $(CSOURCES:-=_)
>
> I get the following output which is the same output stated in my previous
> response :
>
> +vtls/openssl.obj &
> Warning: unknown command line switch 'o' ignored
>
> Error: unexpected char 'p' in command line
>
> ** error 1 ** deleting libcurl.lib
>
> ** error 1 ** deleting borland
>
>
>
>
> - The problem I think is that TLIB is looking inside BCC)obj/vtls but
> there is nothing inside of it, it is empty. However, openssl.obj is inside
> /BCC_obj.
>
>
>
>
>
> On Thu, May 8, 2014 at 4:06 PM, Steve Holme <steve_holme_at_hotmail.com>wrote:
>
>> On Thu, 8 May 2014, Jon Torrey wrote:
>>
>> > Thank you for the speedy reply and I apologize for not
>> > getting back with you earlier.
>> >
>> > Daniel - I was not sure where exactly in Makefile.b32 to add
>> > your snippet of code so I will hold off until further notice.
>>
>> Daniel's suggested fix was at line 145 by adding:
>>
>> @-$(MKDIR) $(OBJDIR)/vtls
>>
>> So that:
>>
>> $(OBJDIR):
>> @-$(RMDIR) $(OBJDIR)
>> @-$(MKDIR) $(OBJDIR)
>>
>> Reads:
>>
>> $(OBJDIR):
>> @-$(RMDIR) $(OBJDIR)
>> @-$(MKDIR) $(OBJDIR)
>> @-$(MKDIR) $(OBJDIR)/vtls
>>
>> > Making the following change resolved my problem, but created
>> > another :(
>>
>> I thought it might... but at least it got a little further and is
>> hopefully generating the *.int and *.obj files for the vtls directory ;-)
>>
>> The problem is it doesn't understand the path when trying to link those
>> *.obj files :(
>>
>> Do you know where openssl.obj, gtls.obj, vtls.obj etc... are being
>> created?
>>
>> I would hope they are in .\BCC_obj\vtl\* or .\BCC_obj\* but I don’t
>> think either that is happening... or if it is, the path that we are
>> passing to the linker isn't the correct path as it contains a forward
>> slashes and not backslashes!!
>>
>> My makefile syntax knowledge isn't that great but I think we can change
>> the line 97:
>>
>> NOHYPHEN = $(CSOURCES:-=_)
>>
>> Into:
>>
>> OBJS1 = ./$(CSOURCES:.c=.obj)
>> OBJS2 = $(OBJS1:vtls/=)
>> NOHYPHEN = $(OBJS2:-=_)
>>
>> Similar to what Makefile.watcome does ;-)
>>
>> Kind Regards
>>
>> Steve
>>
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-library
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-05-09