View Ticket
2019-11-15
16:37 Closed ticket [b81e949a58]: build-fail on Solaris 11.2 with gcc plus 2 other changes artifact: 4298ea9f05 user: rkeene
2019-11-14
00:57 Fixed ticket [b81e949a58]. artifact: 4bed522203 user: rkeene
2019-11-08
15:28 Ticket [b81e949a58]: 5 changes artifact: 1c17ed56de user: avl42
15:11 New ticket [b81e949a58]. artifact: 2e233c9467 user: avl42

Ticket Hash: b81e949a588a822c5995de72eeb60dee57cce074
Title: build-fail on Solaris 11.2 with gcc
Status: Closed Type: Build Problem
Severity: Important Priority: Low
Subsystem: Resolution: Fixed
Last Modified: 2019-11-15 16:37:44
Version Found In: 1.7.19
User Comments:
avl42 added on 2019-11-08 15:11:41:
In this constellation (Solaris 11.2 with gcc), configure runs successfully to end, but compilation fails.

The problem is, that file  "tls.tcl.h"  is severely borked: the first few lines of it:
0x      2, 0x30, 0xa2, 0x32, 0x04, 0x36, 0xf7, 0x07, 0x97, 0x26, 0x96, 0x76, 0x87, 0x42, 0x02, 0x84, 3
0x      2, 0x92, 0x03, 0x13, 0x93, 0x93, 0x72, 0xd3, 0x23, 0x03, 0x03, 0x02, 0x04, 0xd6, 0x17, 0x47, 4
0x      2, 0x04, 0xe6, 0x57, 0x76, 0xd6, 0x16, 0xe2, 0x03, 0xc6, 0xd6, 0x17, 0x47, 0x44, 0x06, 0xe6, f

The whitespace after first "0x" is really a \t char.

The compiler then complains about each "0x":  invalid suffix "x" on integer constant
and where the last item is in [a-f] there's also an "error: `a' undeclared (first use in this function)"

avl42 added on 2019-11-08 15:28:40:
for analysis, this is what the interims files for tls.tcl.h look like:

$ od -A n -v -t xC < './tls.tcl' > tls.tcl.h.new.1
$ head tls.tcl.h.new.1  | cat -vte
^I 23 0a 23 20 43 6f 70 79 72 69 67 68 74 20 28 43$
^I 29 20 31 39 39 37 2d 32 30 30 30 20 4d 61 74 74$
^I 20 4e 65 77 6d 61 6e 20 3c 6d 61 74 74 40 6e 6f$
^I 76 61 64 69 67 6d 2e 63 6f 6d 3e 20 0a 23 0a 6e$
^I 61 6d 65 73 70 61 63 65 20 65 76 61 6c 20 74 6c$
^I 73 20 7b 0a 20 20 20 20 76 61 72 69 61 62 6c 65$
^I 20 6c 6f 67 63 6d 64 20 74 63 6c 4c 6f 67 0a 20$
^I 20 20 20 76 61 72 69 61 62 6c 65 20 64 65 62 75$
^I 67 20 30 0a 20 0a 20 20 20 20 23 20 44 65 66 61$
^I 75 6c 74 20 66 6c 61 67 73 20 70 61 73 73 65 64$
$ sed 's@  *@@g;s@..@0x&, @g' < tls.tcl.h.new.1 > tls.tcl.h.new.2
$ head tls.tcl.h.new.2  | cat -vte
0x^I2, 0x30, 0xa2, 0x32, 0x04, 0x36, 0xf7, 0x07, 0x97, 0x26, 0x96, 0x76, 0x87, 0x42, 0x02, 0x84, 3$
0x^I2, 0x92, 0x03, 0x13, 0x93, 0x93, 0x72, 0xd3, 0x23, 0x03, 0x03, 0x02, 0x04, 0xd6, 0x17, 0x47, 4$
0x^I2, 0x04, 0xe6, 0x57, 0x76, 0xd6, 0x16, 0xe2, 0x03, 0xc6, 0xd6, 0x17, 0x47, 0x44, 0x06, 0xe6, f$
0x^I7, 0x66, 0x16, 0x46, 0x96, 0x76, 0xd2, 0xe6, 0x36, 0xf6, 0xd3, 0xe2, 0x00, 0xa2, 0x30, 0xa6, e$
0x^I6, 0x16, 0xd6, 0x57, 0x37, 0x06, 0x16, 0x36, 0x52, 0x06, 0x57, 0x66, 0x16, 0xc2, 0x07, 0x46, c$
0x^I7, 0x32, 0x07, 0xb0, 0xa2, 0x02, 0x02, 0x02, 0x07, 0x66, 0x17, 0x26, 0x96, 0x16, 0x26, 0xc6, 5$
0x^I2, 0x06, 0xc6, 0xf6, 0x76, 0x36, 0xd6, 0x42, 0x07, 0x46, 0x36, 0xc4, 0xc6, 0xf6, 0x70, 0xa2, 0$
0x^I2, 0x02, 0x02, 0x07, 0x66, 0x17, 0x26, 0x96, 0x16, 0x26, 0xc6, 0x52, 0x06, 0x46, 0x56, 0x27, 5$
0x^I6, 0x72, 0x03, 0x00, 0xa2, 0x00, 0xa2, 0x02, 0x02, 0x02, 0x02, 0x32, 0x04, 0x46, 0x56, 0x66, 1$
0x^I7, 0x56, 0xc7, 0x42, 0x06, 0x66, 0xc6, 0x16, 0x77, 0x32, 0x07, 0x06, 0x17, 0x37, 0x36, 0x56, 4$

(The sed-line beats me)

rkeene added on 2019-11-14 00:57:12:
This should be fixed by [b9af6e4772]