Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Borland BC55 build problems

Closed / Out of Date1045093fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 18 years ago
Descriptionplain2004-10-12 06:56:09
The makefile for borland as supplied with the 8.4.7 
sources has been tested using the free borland compiler 
version 5.5.

Some errors in the makefile were identified and fixed. 
Further, some source files had to be updated in order to 
allow error free build. The attachment has the files 
included (as a zip archive). Lines which are changed are 
tagged with a "bc55" C-comment.

=== The changes as a list ===
* win/makefile.bc *
Line 324/8: OUT_DIR should be OUTDIR (this section had 
been rewritten compared to Giese's 8.3 original makefile).
Note: I have outcommented the "echo" since it appeared 
as concatenated to the mkdir command.
Line 495: I added a compile rule for tclWinPipe.obj since 
the following define was needed:
-DTCL_PIPE_DLL=\"$(TCLPIPEDLLNAME)\"

Line 546: The rule for all generic sources has been 
extended with -DWIN32, because tclThreadJoin refers to 
it. I believe that this is a workaround solution. Perhaps 
the #define of WIN32 should be altered in tcl.h. It is 
defined only, when __WIN32__ is not defined.

* win/tclWinFile.c *
Line 519: Variable initialization with another variable was 
complained.

* win/tclWinPort.h *
Line 61: The following line was added:
#  define _utimbuf utimbuf
because borland's utime.h does not have the underscore.

With these changes, tcl was build correctly. Note: the 
compiler reports warnings (variables not used, suspicious 
pointer conversions etc).
rmarisplain2004-10-12 13:56:09
File Added - 104791: tcl_bc55.zip
rmarisplain2004-10-12 14:07:22
Logged In: YES 
user_id=968757

The ZIP archive also contains two .rc files. Apparently, borland 
does not recognize "STRINGIFY". For the purpose of a 
successful build I replaced the function by a fixed string, since 
I am not familiar with .rc-syntax.
hobbsplain2005-10-05 07:23:54
Logged In: YES 
user_id=72656

See also [ 701723 ] Patch for Borland for Tcl 8.4 / 8.5
mdejong Ticket [1045093fff]: 1 change [History diff]2006-07-06 03:58:06
davygrvy Ticket [1045093fff]: 1 change [History diff]2006-07-06 04:13:01
dkf Ticket [1045093fff]: 1 change [History diff]2006-10-17 15:01:27
dkf Ticket [1045093fff]: 1 change [History diff]2007-01-18 18:51:43
dgpplain2007-06-05 21:32:14
Logged In: YES 
user_id=80530
Originator: NO


Since this is "Out of Date"
should it be Closed?
dkf Closed ticket [1045093fff]. [History diff]2008-07-19 16:15:07
Log in (anonymous is fine) to add a comment.

Attachments: