Tcl Source Code

View Ticket
Login
Ticket UUID: 1870456
Title: build glitches on WinXP
Type: Bug Version: obsolete: 8.5.1
Submitter: kennykb Created on: 2008-01-13 18:44:25
Subsystem: 35. TclOO Package Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-01-18 17:37:19
Resolution: Fixed Closed By: dkf
    Closed on: 2008-01-18 10:37:19
Description:
I just updated the 'oo' package to the HEAD, and I'm
tripping over a few build troubles.

(1) Using mingw [gcc.exe (GCC) 3.4.2 (mingw-special)]
I'm finding that 'ld' is crashing trying to link the
DLL.  If anyone else is seeing this and has anything
to offer by way of a workaround, I'd be grateful.

(2) So I switched to CC=cl configure ...etc....
(The 'cl' in question comes from VC2005SP1.)
The next problem is that there is a fair amount of
noise from the compiler complaining (incorrectly)
about mismatched 'const'ness of function parameters.
The attached patch silences the complaints.

(3) The next issue is that the configurator correctly
puts in RC=rc, but passes 'rc' command-line flags
that are appropriate to 'windres'.  Sorry, I don't
have a patch for this one, I just did
'make RC=windres' to get around it.
(Also, 'cl' complains that the '-o' option is
deprecated and will be removed in a future release.
I just ignored that complaint.)
User Comments: dkf added on 2008-01-18 17:37:19:
Logged In: YES 
user_id=79902
Originator: NO

I believe I've fixed issue (3) and got manifest building done right too, but I don't have the toolchain to test either.

The design of this fix involved looking at changes suggested by Andreas Kupries as well. Without that, I'd have had tremendous problems making the changes to the resource compiler. (Not sure if what I've done there is particularly elegant though...)

dkf added on 2008-01-16 17:48:40:
Logged In: YES 
user_id=79902
Originator: NO

Applied patch to resolve (2)

dkf added on 2008-01-16 16:31:22:
Logged In: YES 
user_id=79902
Originator: NO

Re (1) I'm using the same and can't duplicate. :-(

kennykb added on 2008-01-14 05:46:08:
Logged In: YES 
user_id=99768
Originator: YES

Oh, also, with the VC2005 build, I had to run 'mt' manually prior to
'make install', or the dratted library wouldn't load:

mt -manifest TclOO01a0.dll.manifest -outputresource:TclOO01A0.dll;2

kennykb added on 2008-01-14 01:44:26:

File Added - 262038: tclOO20080113.patch

Attachments: