Tcl Source Code

View Ticket
Login
Ticket UUID: 930862
Title: OSX warnings and errors (1)
Type: Bug Version: obsolete: 8.4.6
Submitter: tauvan Created on: 2004-04-07 05:31:37
Subsystem: 53. Configuration and Build Tools Assigned To: das
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-05-31 10:12:08
Resolution: Fixed Closed By: hobbs
    Closed on: 2005-05-31 03:12:08
Description:
I ran into a problem (acually more) in porting Tcl to MAC_OSX.
I will address each in baby steps so if one rejected we can go
on (hopefully). I make these suggestions believing that it will
help all not just my port.

Note: (1) added to title so if canned we, if you choose, can
continue with the other issues.

Now,
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5

Since I first tried using it "out of the box",
it worked, but with a ton of warnings and testing
had a ton of fails.

So I tried to start a setup that allowed process of
elimation. I hit a lot of obstacles.

My first suggestion is:

 locate all "#include "tcl.h"" directives
 place them as the topmost statement (it can be before or
    just after a #ifndef __FOO  #define __FOO)
    and just for cleanliness the surrounding #ifndef _TCL #endif
      are unnessary since it is part of "tcl.h"

 locate all "#include "tclInit.h"" directives
 place them as the topmost statement
 if a file has both #include "tcl.h" and #include "tclInit.h"
   delete the #include "tcl.h" since tclInit.h includes it.
   ditto with the cleanliness.

MAJOR EXECEPTION:
  tclStubLib.c MUST HAVE stub define at top (FIRST)

Thanks and I hope I am doing this "bug reporting" right.
Reason for suggestion:
  In debugging the configuration script and trying to track other
  problems, I created a defines.h, which was a cp of confdefs.h
  just before it was deleted by the configure script.
  I placed it, and still am using the defines.h, in tcl.h.
  However for it to work, the suggestion proposed must be in 
place.
  This makes it the same as the list of -D switches for the 
compiling.
  It helped me locate other problems and assured elimation of 
some.
User Comments: hobbs added on 2005-05-31 10:12:08:
Logged In: YES 
user_id=72656

working in 8.4 head

tauvan added on 2004-05-03 11:52:24:

File Added - 85905: c84b_OSX1.patch

Attachments: