Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2019-02-02
18:12 • Closed ticket [f559bbde4e]: TclInt.h: tclUnixPort.h:162:13: fatal error: ../comp... artifact: 7076981e3b user: jan.nijtmans
2019-01-31
22:42
fix [f559bbde4e]: TclInt.h: tclUnixPort.h:162:13: fatal error: ../compat/unistd.h: No such file or d... check-in: 34f124f2b8 user: jan.nijtmans tags: core-8-branch
2019-01-29
17:51 • Ticket [f559bbde4e] TclInt.h: tclUnixPort.h:162:13: fatal error: ../compat/unist... artifact: 4e8e3908cd user: pooryorick
2019-01-28
22:26 • Ticket [f559bbde4e]: 3 changes artifact: c12c9d3710 user: jan.nijtmans
22:25 • Ticket [f559bbde4e]: 3 changes artifact: 87f7ce7ba8 user: jan.nijtmans
22:20
Fix for [f559bbde4e] (even though that's not really a bug) closed check-in: 52f9377326 user: jan.nijtmans tags: bug-f559bbde4e
11:28 • New ticket [f559bbde4e] TclInt.h: tclUnixPort.h:162:13: fatal error: ../compat/u... artifact: 7161b04849 user: pooryorick

TclInt.h: tclUnixPort.h:162:13: fatal error: ../compat/unistd.h: No such file or directory

Closed / Fixedf559bbde4ef691d8799604df9442d99143f3e429Created 8 years agoUpdated 8 years ago
Descriptionwiki2019-01-28 11:28:18
Building another program and including tclInt.h:

tclUnixPort.h:162:13: fatal error: ../compat/unistd.h: No such file or directory

Is tclInt.h designed to be included by other programs? If so, should it include tclConfig.h so that macros like HAVE_UNISTD_H are defined for files like tclInt.h/tclPort.h/tclUnixPort.h?

Referenced by2
  • 34f124f2b8fix [f559bbde4e]: TclInt.h: tclUnixPort.h:162:13: fatal error: ../compat/unistd.h: No such file or directory check-in2019-01-31 22:42:14
  • 52f9377326Fix for [f559bbde4e] (even though that's not really a bug) check-in2019-01-28 22:20:40
jan.nijtmanswiki2019-01-28 22:25:34

Actually, tclInt.h is not meant to be used by other programs.

That said, there is no C-compiler anymore which doesn't have <unistd.h>, so we can just assume HAVE_UNISTD_H to be true always. tclEpollNotfy.c already includes this header file always.

If there is no objection, I will merge the [bug-f559bbde4e] branch soon, in a few days. One less header-file to worry about ...

jan.nijtmans Ticket [f559bbde4e]: 3 changes [History diff]2019-01-28 22:26:11
pooryorickwiki2019-01-29 17:51:02

If tclInt.h is not intended for inclusion by other programs, why is there a "install-private-headers" target in the Makefile? Doesn't tclInt.decls exist in order to provide and interface to functions that, while unsupported, might be useful to clients of the Tcl API?

There's still one file in Tk , tkMacOSXNotify.c that includes tclInt.h. Expect includes it in places.

Here is an old reference to the same issue, TCLCORE TCLINT.H REQUIRES TCLPORT.H ?, Daniel A. Steffan, 2004.

Maybe the real solution would be to reform the headers so that things like tclPort.h aren't included when they aren't needed, and are instead obstacles.

jan.nijtmansplain2019-02-02 18:12:32
Merged to core-8-branch, so will be fixed in Tcl 8.7.
Log in (anonymous is fine) to add a comment.