Skip to content
Tcl Source Code History Of Ticket 1071701fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1071701fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1071701fffffffffffffffffffffffffffffffff

  1. Ticket change [a91070e533] (rid 99091) by lvirden on 2004-11-23 13:35:50:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I extracted the tcl 8.4.8 source this morning.
      I do the following:
      
      export CC=cc
      cd tcl8.4.8/unix
      ./configure --prefix=/tmp/tcl --enable-shared
      --enable-symbols --enable-stubs --enable-threads
      
      and the output I get I will attach to this report.
      
      The bottom line error is this:
      checking for readdir_r... yes
      configure: error: unknown number of args for readdir_r
      
      and in config.log I see:
      
      configure:5031: cc -c   conftest.c >&5
      "configure", line 5040: cannot find include file:
      <sys/dir.h>
      cc: acomp failed for conftest.c
      configure:5034: $? = 2
      configure: failed program was:
      | #line 5013 "configure"
      | /* confdefs.h.  */
      | 
      
      
      The man page for readdir_r on Solaris says this:
      
      NAME
           readdir, readdir_r - read directory
      
      SYNOPSIS
           #include <sys/types.h>
           #include <dirent.h>
      
           struct dirent *readdir(DIR *dirp);
      
           struct dirent *readdir_r(DIR *dirp, struct dirent
      *entry);
      
      POSIX
           cc [ flag ... ] file ...
      -D_POSIX_PTHREAD_SEMANTICS [ library ... ]
      
           int readdir_r(DIR *dirp, struct dirent *entry,
      struct dirent
           **result);
      
      
      
    4. foundin initialized to: "obsolete: 8.4.8"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "lvirden"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "--enable-threads fails on sparc solaris 8"
    11. type initialized to: "Bug"
  2. Ticket change [7e4006373e] (rid 97378) by lvirden on 2004-11-23 20:35:52:

    1. icomment:
      
      
      File Added - 109795: SparcSolaris8Suncc.txt
      
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  3. Add attachment "SparcSolaris8Suncc.txt" [8280c544cc] (rid 117245) by lvirden on 2004-11-23 20:35:52.

  4. Ticket change [2c5ce49ed4] (rid 118890) by lvirden on 2004-11-23 20:42:33:

    1. foundin changed to: "obsolete: 8.5a2"
  5. Ticket change [20db8393d8] (rid 130490) by lvirden on 2004-11-23 20:43:34:

    1. icomment:
      Logged In: YES 
      user_id=15949
      
      Note that I misspoke - it was not tcl 8.4.8, but the latest
      tcl 8.5a2 , that
      was failing.  I was thinking about working on 8.4.8 as I was
      updating
      my 8.5a2 build.
      
      Sorry for the misspoken comment above.
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  6. Ticket change [951242b3c5] (rid 106099) by dgp on 2004-11-25 05:00:46:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      confirmed on Solaris 9.
      
      Appears to be new failure
      resulting from the "fix"
      for 1001325.
      
      kbk's attempt to fix other
      breakage haven't yet solved
      this platform.
      
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [4fe2c7b08b] (rid 125892) by hobbs on 2004-11-25 06:00:41:

    1. foundin changed to: "obsolete: 8.4.8"
  8. Ticket change [5d436bdc10] (rid 115432) by hobbs on 2004-11-25 06:00:42:

    1. priority changed to: "9 Immediate"
  9. Ticket change [822afcc2fe] (rid 117182) by dkf on 2004-11-25 06:00:42:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Pasting from the chat...
      <jenglish>
      OK, wisdom according to Google indicates that the only
      reason "readdir()" is considered not-thread-safe is because
      "multiple threads using readdir() on the same DIRSTREAM may
      overwrite the return value".
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  10. Ticket change [6dcf15abad] (rid 128767) by mdejong on 2004-11-25 06:04:38:

    1. foundin changed to: "obsolete: 8.5a2"
  11. Ticket change [8395510514] (rid 117410) by mdejong on 2004-11-25 06:04:39:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      Could someone test out this new patch for the CVS HEAD?
      It should fix the problem.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "mdejong"
  12. Add attachment "readdir.patch" [bd24498e3e] (rid 101863) by mdejong on 2004-11-25 06:04:40.

  13. Ticket change [f5e43351a5] (rid 130195) by mdejong on 2004-11-25 06:04:40:

    1. icomment:
      
      
      File Added - 110017: readdir.patch
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  14. Ticket change [ab2417dacd] (rid 101050) by dgp on 2004-11-25 06:13:13:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      testing...
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  15. Ticket change [801276793b] (rid 97670) by dgp on 2004-11-25 06:27:24:

    1. assignee changed to: "mdejong"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      No joy.
      
      Although the configure script
      completes, the compile fails:
      
      cc -c -O   -KPIC -I. -I../unix -I../unix/../generic
      -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\"
      -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\"
      -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
      -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
      -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
      -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
      -DHAVE_SYS_PARAM_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1
      -DUSE_THREAD_STORAGE=1 -D_REENTRANT=1 -D_THREAD_SAFE=1
      -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_READDIR_R=1
      -DHAVE_TWO_ARG_READDIR_R=1
      -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DSTATIC_BUILD=1
      -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1
      -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1
      -DTCL_CFG_DEBUG=1 -DTCL_WIDE_INT_TYPE=long\ long
      -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1
      -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1
      -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1
      -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1
      -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1
      -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
      -DHAVE_TZNAME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1
      -DHAVE_MKTIME=1 -DHAVE_TIMEZONE_VAR=1
      -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1
      -Dstrtod=fixstrtod -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1
      -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1
      -DTCL_UNLOAD_DLLS=1 -DTCL_DBGX=       ../unix/tclUnixThrd.c
      "../unix/tclUnixThrd.c", line 888: prototype mismatch: 2
      args passed, 3 expected
      cc: acomp failed for ../unix/tclUnixThrd.c
      
      config.log attached.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  16. Ticket change [541b3a1e75] (rid 93881) by dgp on 2004-11-25 06:27:25:

    1. icomment:
      
      
      File Added - 110018: config.log
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Add attachment "config.log" [7cf14db5e1] (rid 97165) by dgp on 2004-11-25 06:27:25.

  18. Ticket change [971e4a6054] (rid 106452) by dgp on 2004-11-25 06:51:32:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      the difference is that when
      tclUnixThrd.c is compiled,
      -D_POSIX_PTHREAD_SEMANTICS
      is active, enabling the 3-argument
      form.
      
      During the configure testing, that
      macro is not defined, so the 2-argument
      form is configured for.
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  19. Add attachment "1071701.patch" [71ea8ff6ea] (rid 100767) by dgp on 2004-11-25 07:33:33.

  20. Ticket change [8093e15c3b] (rid 116893) by dgp on 2004-11-25 07:33:33:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      testing the attached patch...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  21. Ticket change [020662c67b] (rid 119576) by dgp on 2004-11-25 07:33:34:

    1. icomment:
      
      
      File Added - 110025: 1071701.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  22. Ticket change [47ff62ade1] (rid 99807) by dgp on 2004-11-25 08:00:07:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      yes, that patch does the trick.
      Committing for widespread testing...
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"
    7. username: "dgp"
  23. Ticket change [531b2ebaaf] (rid 126424) by dgp on 2004-11-25 08:00:08:

    1. closedate changed to: "2004-11-25T01:00:08"
    2. closer changed to: "dgp"
  24. Ticket change [4d83481231] (rid 127065) by dgp on 2004-11-25 08:17:44:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      ...and backported for 8.4.9
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"