Tk Source Code

View Ticket
Login
Ticket UUID: 849173
Title: configure sets HAVE_STRUCT_DIRENT64 when readdir64 unavail
Type: Bug Version: obsolete: 8.4.5
Submitter: dcd Created on: 2003-11-25 18:48:58
Subsystem: 84. Unix Build Assigned To: stwo
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-09-23 11:48:59
Resolution: Out of Date Closed By: jan.nijtmans
    Closed on: 2026-09-23 11:48:59
Description:
After running configure in tcl8.4.5 and tk8.4.5 I get a
link error
at the end of make because readdir64 is not defined.

I edited the Makefile and tkConfig.sh (tclConfig.sh on
the tcl side)
to remove the HAVE_STRUCT_DIRENT64 and was able to
complete the make/install (and run tkdiff as a
testcase)

I'm using linux 2.4.23-rc with libc5.4.44
gcc version egcs-2.91.66.1
User Comments: jan.nijtmans added on 2026-09-23 11:48:59:

Thanks!

Closing


serhiy.storchaka added on 2026-09-21 14:17:09:

Tk has no readdir() calls; HAVE_STRUCT_DIRENT64 only matters for Tcl (TclOSreaddir in tclUnixPort.h). The configure check in tcl.m4 is still a compile test for struct dirent64 only, but no libc in use has the struct without readdir64(); the affected libc5 is long gone.