Skip to content
Tcl Source Code History Of Ticket 1874521fffffffff
Login

History Of Ticket 1874521fffffffff

Artifacts Associated With Ticket 1874521fffffffff

  1. Ticket change [033c6931c8] (rid 119791) by nobody on 2008-01-18 10:47:09:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl, both shipping with Cent OS 5, and when built from the www.tcl.tk source files fails to glob 64bit NFS file shares. Looking at the output of configure this is due to it failing to find dirent64.
      
      Behaviour:
      
      Mount an NFS share from a 64bit file server, eg Mac OS X 10.4 serving out a 11TB volume.
      tclsh
      cd /mylargevolume
      set files [glob "*"]
      
      gives the error, 'no files matched glob pattern "*"'
      
      Looking at tcl.m4, autoconf is looking for 'struct dirent64' in <sys/dirent.h>, however on Cent OS (RHEL 5) this file doesn't exist. The 'dirent64' structure is defined in /usr/include/dirent.h, so modifying tcl.m4 to '#include <dirent.h>' allows configuration to complete correctly and the built binaries ARE able to glob the directory structure on the NFS share.
      
      [email protected]
      
    4. foundin initialized to: "obsolete: 8.4.17"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "53. Configuration and Build Tools"
    11. title initialized to:
      Configure fails to find dirent64 on CentOS 5 and Fedora
      
    12. type initialized to: "Bug"
  2. Ticket change [53bcdd3e5d] (rid 93807) by nobody on 2008-01-18 18:06:30:

    1. icomment:
      Logged In: NO 
      
      Forgot to mention, this is on a 32-bit machine
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  3. Ticket change [19d8b69d6c] (rid 122859) by nobody on 2008-01-18 18:43:36:

    1. icomment:
      Logged In: NO 
      
      The following patch fixes it on CentOS 5, and also looks OK on Solaris 9.
      
      --- tcl.m4.orig2008-01-18 11:41:28.000000000 +0000
      +++ tcl.m42008-01-18 11:16:11.000000000 +0000
      @@ -2765,6 +2765,7 @@
       # Now check for auxiliary declarations
       AC_CACHE_CHECK([for struct dirent64], tcl_cv_struct_dirent64,[
           AC_TRY_COMPILE([#include <sys/types.h>
      +#include <dirent.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
      
      
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  4. Ticket change [787f50d10e] (rid 89972) by dkf on 2008-01-21 07:36:05:

    1. assignee changed to: "hobbs"
  5. Ticket change [d1c76c7333] (rid 113413) by nobody on 2008-01-21 19:48:53:

    1. icomment:
      Logged In: NO 
      
      Don't know why the patch works, as the equivalent applied to tk fails with a file not found error due to the remaining <sys/dirent.h> #include. I'm guessing there are some platforms out there that require the <sys/dirent.h> and some that require <dirent.h>, but I don't know enough about autoconf to come up with a patch that works properly everywhere.
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  6. Ticket change [15d9d81951] (rid 124634) by nobody on 2008-03-11 23:52:51:

    1. icomment:
      Logged In: NO 
      
      I've just checked, this is still broken in tcl 8.4.18 and 8.5.1.
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  7. Ticket change [f49bad6df6] (rid 244624) by chrstphrchvz on 2025-08-26 03:28:20:

    1. assignee changed to: "aku"
    2. closedate changed to: "2460913.64467641"
    3. closer changed to: "chrstphrchvz"
    4. comment changed to:
      Tcl, both shipping with Cent OS 5, and when built from the www.tcl.tk source files fails to glob 64bit NFS file shares. Looking at the output of configure this is due to it failing to find dirent64.
      
      Behaviour:
      
      Mount an NFS share from a 64bit file server, eg Mac OS X 10.4 serving out a 11TB volume.
      tclsh
      cd /mylargevolume
      set files [glob "*"]
      
      gives the error, 'no files matched glob pattern "*"'
      
      Looking at tcl.m4, autoconf is looking for 'struct dirent64' in <sys/dirent.h>, however on Cent OS (RHEL 5) this file doesn't exist. The 'dirent64' structure is defined in /usr/include/dirent.h, so modifying tcl.m4 to '#include <dirent.h>' allows configuration to complete correctly and the built binaries ARE able to glob the directory structure on the NFS share.
      
      [email protected]
      
    5. icomment:
      Closing; this issue was eventually fixed after being reported again as [32afa6e256].
      
    6. login: "chrstphrchvz"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Duplicate"
    9. severity changed to: "Minor"
    10. status changed to: "Closed"