-Q1O- How do I port Tcl and Tk to a Sequent?

From: -I- Questions on building Tcl and friends on your system
 
A1R.  From Andrew Swan <aswan@soda.berkeley.edu> we find:

> For both Tcl and Tk, I used gcc rather than the Sequent cc which is
> not ansi.
> 
> For Tcl, there were a couple of problems with the math library.  First,
> the Sequent math library doesn't include the 'fmod' function.  I got
> the source for fmod from ftp.uu.net, put it in the compat subdirectory,
> and added it to the Makefile.  fmod also wanted functions 'isnan' and
> 'finite' but I just commented those out since I don't believe tcl
> supports infinity and nan.
> 
> The other problem with the math library was that it has two copies
> of the 'tanh' function in it.  This is easy to fix by using "ar"
> to separate the library in to object files and then reconstruct
> it, leaving one of the copies of tanh out.
> 
> With those changes, Tcl compiled cleanly and passed all the tests
> except the scanning tests.  Apparently, the *scanf functions are
> broken in Dynix.  The problem is with recognizing the end of octal
> numbers, and I just let this problem go.  Fixing it would probably
> involve finding source to the *scanf functions and including it.
> 
> To compile Tk, I had to make a new version of stddef.h including
> things like wchar_t.  I just copied it in to another include directory
> and put that directory first and then tweaked the copy.  Tk also had
> the math library problem (tanh).  Other than those, however, everything
> compiled cleanly and passed all the tests.

Parent document is top of "FAQ: comp.lang.tcl Tk Toolkit Usage Questions And Answers (1/1)"
Previous document is "-Q1N- How do I add BLT to a TclX/Tk ?"
Next document is "-Q1P- Why do I get invalid command name when I start wish?"