Tk Source Code

View Ticket
Login
Ticket UUID: 3566106
Title: Tk 8.5.12 fails to build on Solaris 9/x86
Type: Bug Version: obsolete: 8.5.12
Submitter: rkeene Created on: 2012-09-09 18:13:45
Subsystem: 84. Unix Build Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2012-09-13 19:38:40
Resolution: Accepted Closed By: dgp
    Closed on: 2012-09-13 12:38:40
Description:
In working with the OpenCSW people about updating Tcl/Tk in OpenCSW (package distribution for Solaris) they ran into an issue with building Tk on Solaris 9/x86.

They provided this patch:
      http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/tcl85/trunk/files/0002-Fix-linking-issues-and-enable-building-on-Solaris-9-.patch

They indicate that "amd64" isn't part of the platform specification on Solaris 9 (Solaris 10+ only) and so the check should also include a check for "i386" only.

Additionally there were some places where a single digit minor version wasn't checked for.
User Comments: dgp added on 2012-09-13 19:38:40:

allow_comments - 1

Applied to trunks of Tcl and Tk.

Anything of value needing to go into TEA is left to others.

rkeene added on 2012-09-13 06:55:19:
The branch tip is correct

dkf added on 2012-09-13 06:30:48:
The branch tip is now at what I *believe* the outcome of the discussion was.

dgp added on 2012-09-13 03:13:55:
Will someone please update the bug-3566106
branches to whatever solution the discussion has
settled on?

dkf added on 2012-09-12 02:28:41:
Overall, changes 1-4 are either Harmless or Good. Change 5 is in a non-Solaris-specific part, so it's harder to gauge what effects it would have. They'd probably be OK, but only probably. (Linkers are terribly finicky.)

dkf added on 2012-09-12 02:23:17:
I was specifically reviewing https://core.tcl.tk/tk/ci/69579b44a7?sbs=0

dkf added on 2012-09-12 02:21:48:
This patch consists of 5 changes to tcl.m4. I'll comment on them in order:

1) Comment-only change. Meh.
2) This is probably critical; I'm guessing that the old version of the test never worked at all. It would be *really* nice to know what Solaris on amd64 actually reports of the architecture. But this change definitely does not make things worse.
3) I believe this change has no effect; the first part of the pattern subsumes the (added) second part of the pattern.
4) This might be important (it adds an extra flag, though I'm a little surprised that the dynamic linker needs a -L flag; could be necessary though, and if not it will be Mostly Harmless).
5) This might be important (it moves the flags set at change 4 to earlier in the command line; some linkers might need that).

dgp added on 2012-09-11 21:01:05:
Patches committed on bug-3566106 for both Tcl and Tk.
Review and merge requested.

rkeene added on 2012-09-11 20:56:23:
This is only a problem for Tk (it may be coincidental though, since Tk relies on a different set of libraries for Solaris 9 and Solaris 10 but Tcl relies on the same set of libraries for Solaris 9 and Solaris 10).

There was once a Tk release that did work correctly, but it may not have been Tk 8.5.  It may have been many years since it was tested on Solaris 9.

dgp added on 2012-09-11 19:16:52:
Are these problems only for Tk, or does the tcl.m4
file in Tcl need revision too?

Does this patch represent correcting a regression
in Tcl?  That is, was there once a Tcl release that
did build on this system, and we made changes
that broke that?  Or does this patch make us support
this system correctly for the first time?