1 |
578 |
markom |
This file contains a collection of notes that various people have
|
2 |
|
|
provided about porting Tk to various machines and operating systems.
|
3 |
|
|
I don't have personal access to any of these machines, so I make
|
4 |
|
|
no guarantees that the notes are correct, complete, or up-to-date.
|
5 |
|
|
If you see the word "I" in any explanations, it refers to the person
|
6 |
|
|
who contributed the information, not to me; this means that I
|
7 |
|
|
probably can't answer any questions about any of this stuff. In
|
8 |
|
|
some cases, a person has volunteered to act as a contact point for
|
9 |
|
|
questions about porting Tcl to a particular machine; in these
|
10 |
|
|
cases the person's name and e-mail address are listed. I'm very
|
11 |
|
|
interested in getting new porting information to add to the file;
|
12 |
|
|
please mail updates to "john.ousterhout@eng.sun.com".
|
13 |
|
|
|
14 |
|
|
This file reflects information provided for Tk 4.0 and later releases.
|
15 |
|
|
If there is no information for your configuration in this file, check
|
16 |
|
|
the file "porting.old" too; it contains information that was
|
17 |
|
|
submitted for Tk 3.6 and earlier releases, and some of that information
|
18 |
|
|
may still be valid.
|
19 |
|
|
|
20 |
|
|
A new porting database has recently become available on the Web at
|
21 |
|
|
the following URL:
|
22 |
|
|
http://www.sunlabs.com/cgi-bin/tcl/info.4.0
|
23 |
|
|
This page provides information about the platforms on which Tcl 7.4
|
24 |
|
|
and Tk 4.0 have been compiled and what changes were needed to get Tcl
|
25 |
|
|
and Tk to compile. You can also add new entries to that database
|
26 |
|
|
when you install Tcl and Tk on a new platform. The Web database is
|
27 |
|
|
likely to be more up-to-date than this file.
|
28 |
|
|
|
29 |
|
|
RCS: @(#) $Id: porting.notes,v 1.1.1.1 2002-01-16 10:26:01 markom Exp $
|
30 |
|
|
|
31 |
|
|
--------------------------------------------
|
32 |
|
|
Solaris, various versions
|
33 |
|
|
--------------------------------------------
|
34 |
|
|
|
35 |
|
|
1. If typing "make test" results in an error message saying that
|
36 |
|
|
there are no "*.test" files, or you get lots of globbing errors,
|
37 |
|
|
it's probably because your system doesn't have cc installed and
|
38 |
|
|
you used gcc. In order for this to work, you have to set your
|
39 |
|
|
CC environment variable to gcc and your CPP environment variable
|
40 |
|
|
to "gcc -E" before running the configure script.
|
41 |
|
|
|
42 |
|
|
2. Make sure that /usr/ucb is not in your PATH or LD_LIBRARY_PATH
|
43 |
|
|
environment variables; this will cause confusion between the new
|
44 |
|
|
Solaris libraries and older UCB versions (Tk will expect one version
|
45 |
|
|
and get another).
|
46 |
|
|
|
47 |
|
|
3. On 486 PCs with Solaris 2.4, when compiling with gcc 2.6.0,
|
48 |
|
|
tkMessage.c appears to hang gcc. If the -O switch is removed
|
49 |
|
|
then it compiles fine.
|
50 |
|
|
|
51 |
|
|
--------------------------------------------
|
52 |
|
|
486 PCs, Solaris 2.4
|
53 |
|
|
--------------------------------------------
|
54 |
|
|
|
55 |
|
|
When compiling with gcc 2.6.0, tkMessage.c appears to hang gcc.
|
56 |
|
|
If the -O switch is removed then it compiles fine.
|
57 |
|
|
|
58 |
|
|
--------------------------------------------
|
59 |
|
|
SGI machines, IRIX 5.2, 5.3, IRIX64 6.0.1
|
60 |
|
|
--------------------------------------------
|
61 |
|
|
|
62 |
|
|
1. Add "-D_BSD_TIME" to CFLAGS in Makefile. This avoids type conflicts
|
63 |
|
|
in the prototype for the gettimeofday procedure.
|
64 |
|
|
|
65 |
|
|
2. If you're running under Irix 6.x and wish dumps core, try
|
66 |
|
|
removing -O from the CFLAGS in Makefile and recompiling; compiler
|
67 |
|
|
optimizations seem to cause problems on some machines.
|
68 |
|
|
|
69 |
|
|
--------------------------------------------
|
70 |
|
|
QNX 4.22
|
71 |
|
|
--------------------------------------------
|
72 |
|
|
|
73 |
|
|
All of the source files built as is. All I had to do was edit the
|
74 |
|
|
Makefile generated by ./configure to specify where the X11 libraries
|
75 |
|
|
were (ie, I added in -L/usr/X11/lib)
|
76 |
|
|
|
77 |
|
|
--------------------------------------------
|
78 |
|
|
HP-UX
|
79 |
|
|
--------------------------------------------
|
80 |
|
|
|
81 |
|
|
There are problems compiling Tk gcc (version 2.7.2) and the HP assembler.
|
82 |
|
|
The problem is that if static functions are called using a pointer reference,
|
83 |
|
|
double arguments are not transferred correctly into the function. That can
|
84 |
|
|
be fixed by making all those functions global. This happens with the
|
85 |
|
|
ScaleXxx() and TranslateXxx() functions for all canvas item types.
|
86 |
|
|
The simplest fix is configure gcc to use the GNU assembler.
|