Artifacts Associated With Ticket 1071701fffffffffffffffffffffffffffffffff
Ticket change [a91070e533] (rid 99091) by lvirden on 2004-11-23 13:35:50:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- 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); - foundin initialized to: "obsolete: 8.4.8"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lvirden"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "--enable-threads fails on sparc solaris 8"
- type initialized to: "Bug"
Ticket change [7e4006373e] (rid 97378) by lvirden on 2004-11-23 20:35:52:
- icomment:
File Added - 109795: SparcSolaris8Suncc.txt
- login: "lvirden"
- mimetype: "text/plain"
- username: "lvirden"
- icomment:
Add attachment "SparcSolaris8Suncc.txt" [8280c544cc] (rid 117245) by lvirden on 2004-11-23 20:35:52.
Ticket change [2c5ce49ed4] (rid 118890) by lvirden on 2004-11-23 20:42:33:
- foundin changed to: "obsolete: 8.5a2"
Ticket change [20db8393d8] (rid 130490) by lvirden on 2004-11-23 20:43:34:
- 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.
- login: "lvirden"
- mimetype: "text/plain"
- username: "lvirden"
- icomment:
Ticket change [951242b3c5] (rid 106099) by dgp on 2004-11-25 05:00:46:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [4fe2c7b08b] (rid 125892) by hobbs on 2004-11-25 06:00:41:
- foundin changed to: "obsolete: 8.4.8"
Ticket change [5d436bdc10] (rid 115432) by hobbs on 2004-11-25 06:00:42:
- priority changed to: "9 Immediate"
Ticket change [822afcc2fe] (rid 117182) by dkf on 2004-11-25 06:00:42:
- 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".
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [6dcf15abad] (rid 128767) by mdejong on 2004-11-25 06:04:38:
- foundin changed to: "obsolete: 8.5a2"
Ticket change [8395510514] (rid 117410) by mdejong on 2004-11-25 06:04:39:
- icomment:
Logged In: YES user_id=90858 Could someone test out this new patch for the CVS HEAD? It should fix the problem.
- login: "mdejong"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- username: "mdejong"
- icomment:
Add attachment "readdir.patch" [bd24498e3e] (rid 101863) by mdejong on 2004-11-25 06:04:40.
Ticket change [f5e43351a5] (rid 130195) by mdejong on 2004-11-25 06:04:40:
- icomment:
File Added - 110017: readdir.patch
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Ticket change [ab2417dacd] (rid 101050) by dgp on 2004-11-25 06:13:13:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 testing...
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [801276793b] (rid 97670) by dgp on 2004-11-25 06:27:24:
- assignee changed to: "mdejong"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [541b3a1e75] (rid 93881) by dgp on 2004-11-25 06:27:25:
- icomment:
File Added - 110018: config.log
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "config.log" [7cf14db5e1] (rid 97165) by dgp on 2004-11-25 06:27:25.
Ticket change [971e4a6054] (rid 106452) by dgp on 2004-11-25 06:51:32:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1071701.patch" [71ea8ff6ea] (rid 100767) by dgp on 2004-11-25 07:33:33.
Ticket change [8093e15c3b] (rid 116893) by dgp on 2004-11-25 07:33:33:
- icomment:
Logged In: YES user_id=80530 testing the attached patch...
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [020662c67b] (rid 119576) by dgp on 2004-11-25 07:33:34:
- icomment:
File Added - 110025: 1071701.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [47ff62ade1] (rid 99807) by dgp on 2004-11-25 08:00:07:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 yes, that patch does the trick. Committing for widespread testing...
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
Ticket change [531b2ebaaf] (rid 126424) by dgp on 2004-11-25 08:00:08:
- closedate changed to: "2004-11-25T01:00:08"
- closer changed to: "dgp"
Ticket change [4d83481231] (rid 127065) by dgp on 2004-11-25 08:17:44:
- icomment:
Logged In: YES user_id=80530 ...and backported for 8.4.9
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: