Artifacts Associated With Ticket 1001325fffffffff
Ticket change [be743f2c16] (rid 102074) by nobody on 2004-07-31 22:55:41:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When compiling tcl 8.4.7 on IRIX 5.3 with --enable-threads one ends up with cfe: Error: ./../unix/tclUnixThrd.c, line 837: The number of arguments doesn't agree with the number in the declaration. if (readdir_r (dir, ent, &ent) != 0) { ------------------^ *** Error code 1 (bu21) This is because on IRIX 5.3 readdir_r() is struct dirent *readdir_r (DIR *dirp, struct dirent *res); unix/tclUnixThrd.c thushas to be changed on IRIX 5.3 into #ifdef HAVE_READDIR_R ent = &tsdPtr->rdbuf.ent; /* if (TclOSreaddir_r(dir, ent, &ent) != 0) { ent = NULL; } */ ent=TclOSreaddir_r(dir, ent); #else /* !HAVE_READDIR_R */ ideally the configure tools should detect which version of readdir_r is being used on a given platform. - foundin initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "49. Threading"
- title initialized to: "readdir_r() is different on IRIX 5.3"
- type initialized to: "Bug"
Add attachment "readdir_r.patch" [385c9fd88c] (rid 112195) by mdejong on 2004-09-24 13:17:00.
Ticket change [e0541d140b] (rid 115170) by mdejong on 2004-09-24 13:17:00:
- icomment:
File Added - 102636: readdir_r.patch Logged In: YES user_id=90858 Could someone with an IRIX 5.3 system try this patch? It should detect the 2 or 3 arg version of readdir_r, but it has had no testing.
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Ticket change [74fe252a5c] (rid 105317) by gschwarz on 2004-11-18 06:40:01:
- icomment:
Logged In: YES user_id=951222 I've applied that patch to 8.4.7, and it now compiles on IRIX 5.3.
- login: "gschwarz"
- mimetype: "text/plain"
- username: "gschwarz"
- icomment:
Ticket change [a477395af1] (rid 110212) by mdejong on 2004-11-23 05:40:46:
- closedate changed to: "2004-11-22T22:40:46"
- closer changed to: "mdejong"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Add attachment "1001325.patch" [bc6d481ccf] (rid 101747) by kennykb on 2004-11-25 01:13:50.
Ticket change [73b507b2f5] (rid 105085) by kennykb on 2004-11-25 01:13:50:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=99768 Mo's change breaks an ordinary Linux-IA32 build, because NULL is undefined unless <stdlib.h> is included. Don, could you rerun autoconf with the attached 1001325.patch? (I don't have 2.13 to and at the moment.)
- login: "kennykb"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "kennykb"
Ticket change [49bda49376] (rid 100096) by kennykb on 2004-11-25 01:13:51:
- icomment:
File Added - 109993: 1001325.patch
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [73b06788ac] (rid 105081) by dgp on 2004-11-25 01:41:56:
- assignee changed to: "kennykb"
- icomment:
File Added - 109995: autoconf.patch Logged In: YES user_id=80530 new patch includes outcome of running autoconf-2.13.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Add attachment "autoconf.patch" [bc11db9e6f] (rid 129596) by dgp on 2004-11-25 01:41:56.
Ticket change [4c4ececfe6] (rid 126865) by kennykb on 2004-11-25 03:22:45:
- closedate changed to: "2004-11-24T20:22:45"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 Correction applied to both HEAD and 8.4 branch
- login: "kennykb"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "kennykb"
Ticket change [b73f297718] (rid 125551) by dgp on 2004-11-25 05:00:37:
- status changed to: "Open"
Ticket change [61b44783c7] (rid 92287) by dgp on 2004-11-25 05:00:38:
- icomment:
Logged In: YES user_id=80530 See 1071701. Things are still broken.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [9ffe91ac43] (rid 96731) by kennykb on 2004-11-29 22:55:39:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=99768 I see that you closed 1071701 - is this bug now fixed also?
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
Ticket change [90f059076e] (rid 120542) by dgp on 2004-11-29 22:58:04:
- icomment:
Logged In: YES user_id=80530 It would be best for someone with and IRIX 5.3 system to say for sure.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [70987dfaa4] (rid 100512) by dgp on 2004-11-29 22:58:55:
- priority changed to: "9 Immediate"
Ticket change [0e5df3f1bb] (rid 94602) by jenglish on 2004-11-30 00:45:18:
- icomment:
Logged In: YES user_id=68433 A suggestion: don't use readdir_r() at all, unless it can be demonstrated that readdir() is in fact broken on the host platform. On most systems (including IRIX 5.3 AFAICT), readdir() is perfectly thread-safe as long as you don't share the same DIR * across multiple threads (which Tcl doesn't do).
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"
- icomment:
Ticket change [a3969391ce] (rid 110065) by dgp on 2004-12-02 08:17:56:
- closedate changed to: "2004-12-02T01:17:56"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 unless someone says otherwise, I believe this is fixed for Tcl 8.4.9. jenglish''s suggestion is a good one to explore in 8.5 development.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"