Skip to content
Tcl Source Code History Of Ticket 32afa6e256
Login

History Of Ticket 32afa6e256

Artifacts Associated With Ticket 32afa6e256

  1. Ticket change [223c8377bf] (rid 132565) by anonymous on 2013-06-28 18:44:42:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      This check, defined in tcl.m4 is incorrect:
      
      	# Now check for auxiliary declarations
      	AC_CACHE_CHECK([for struct dirent64], tcl_cv_struct_dirent64,[
      	    AC_TRY_COMPILE([#include <sys/types.h>
      #include <sys/dirent.h>],[struct dirent64 p;],
      		tcl_cv_struct_dirent64=yes,tcl_cv_struct_dirent64=no)])
      	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
      	    AC_DEFINE(HAVE_STRUCT_DIRENT64, 1, [Is 'struct dirent64' in <sys/types.h>?])
      	fi
      
      The header file is incorrect, it should be:
      
      #include <dirent.h>
      
      From the readdir() man page:
      
      
      READDIR(3)                 Linux Programmer's Manual                READDIR(3)
      
      NAME
             readdir - read a directory
      
      SYNOPSIS
             #include <sys/types.h>
             #include <dirent.h>
      
             struct dirent *readdir(DIR *dir);
      
      DESCRIPTION ...
      
      ---------
      
      This was discovered using  32-bit linux build, which had a failure with [glob *] used during package discovery in the init phase.  Basically, tclsh utterly failed to find any packages because readdir() failed.  Readdir() failed because it was using the 32-bit struct and readdir could not store the inode values in the dirent struct.
      
      Ultimately traced back to the build configure not doing the right thing for a large filesystem aware OS.
      
    5. foundin initialized to: "8.5"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "b80f46c1123ce4c80dc91b0c46319f6a27235f6a"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "53. Configure and Build Tools"
    15. title initialized to: "dirent64 check is incorrect in tcl.m4"
    16. type initialized to: "Bug"
  2. Ticket change [39fb4c36ac] (rid 132584) by jan.nijtmans on 2013-07-02 07:19:14:

    1. closedate changed to: "2456475.80502813"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Fixed in core-8-5-branch [f8d461fd57] and trunk [a3ae798ed1].
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"