Tcl Source Code

View Ticket
Login
Ticket UUID: d2612a2fa193196787aab33bb57f69b1eef9e30c
Title: Build breaks because of gcc error
Type: Bug Version: 8.6.7
Submitter: pointsman Created on: 2017-08-22 09:53:34
Subsystem: None Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Critical
Status: Closed Last Modified: 2017-08-22 12:41:08
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2017-08-22 12:41:08
Description:
The tcl release 8.6.7, as shipped from https://prdownloads.sourceforge.net/tcl/tcl8.6.7-src.tar.gz doesn't build on CentOS 6.9. Build stops in 
tcl8.6.7/unix/tclUnixSock.c with

tcl8.6.7/unix/tclUnixSock.c: In function ‘IPv6AddressNeedsNumericRendering’:
tcl8.6.7/unix/tclUnixSock.c:716: error: #pragma GCC diagnostic not allowed inside functions
tcl8.6.7/unix/tclUnixSock.c:717: error: #pragma GCC diagnostic not allowed inside functions
tcl8.6.7/unix/tclUnixSock.c:719: error: #pragma GCC diagnostic not allowed inside functions
make: *** [tclUnixSock.o] Error 1

gcc --version:

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
User Comments: jan.nijtmans added on 2017-08-22 12:41:08:
Should be fixed now in core-8-6-branch and trunk.

Thanks for your report!