TEA (tclconfig) Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Ticket UUID: 0d56ddedbebef31d6ed5f86f5d3c5816edae8f56
Title: CFLAGS broken at configure time
Type: Bug Version:
Submitter: pooryorick Created on: 2018-08-13 05:04:24
Subsystem: 70. Sample Extension Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2018-10-17 22:16:41
Resolution: None Closed By: nobody
    Closed on: 2018-08-13 12:47:03

autoconf uses CFLAGS at configure time when performing many checks. However, tcl.m4 adds the strings ${CFLAGS_DEFAULT} and ${CFLAGS_WARNING}. Because of this, any autoconf test that passes CFLAGS to the compiler at runtime fails. One example is AC_TYPE_OFF_T. On a Linux system this test currently fails, and autoconf erroneously configures the build as if there was no such type available. In one extension this leads to the error,

<command-line>: error: two or more data types in declaration specifiers

User Comments: jan.nijtmans added on 2018-10-17 22:16:41:
Since this change broke - somehow - tclsqlite and thread, I had to revert it. So, something better needs to be invented to fix this. Sorry!

jan.nijtmans added on 2018-08-13 10:32:01:
This - to me - looks like the right thing to do. Thanks!   +1

pooryorick added on 2018-08-13 09:46:40:
Fixed in [a413acb98d88a779].