|
2004-10-29
| ||
| 00:11 | • Ticket [1001319fff] minor bug in threading code status still Closed with 5 o... artifact: 4f86de4974 user: dgp | |
|
2004-10-28
| ||
| 23:28 | • Ticket [1001319fff]: 4 changes artifact: 10131be9e9 user: dgp | |
| 23:28 | • Ticket [1001319fff]: 1 change artifact: 82c214d0ab user: dgp | |
| 23:13 | • Closed ticket [1001319fff]. artifact: dae5eda288 user: kennykb | |
|
2004-10-20
| ||
| 16:21 | • Ticket [1001319fff]: 5 changes artifact: 6a6f357e91 user: vasiljevic | |
|
2004-07-31
| ||
| 22:47 | • New ticket [1001319fff]. artifact: 79a05aaa4f user: nobody | |
minor bug in threading code
Closed / Fixed1001319fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-07-31 22:47:07
When compiling tcl 8.4.7 on IRIX 5.3 with --enable-threads one ends up with cfe: Error: ./../generic/../unix/tclUnixPort.h, line 568: redeclaration of 'TclpLocaltime'; previous declaration at line 515 in file './../generic/tclIntDecls.h' extern struct tm * TclpLocaltime(const TclpTime_t); --------------------------- ^ cfe: Error: ./../generic/../unix/tclUnixPort.h, line 568: Incompatible type for the function parameter extern struct tm * TclpLocaltime(const TclpTime_t); --------------------------- --------------^ cfe: Error: ./../generic/../unix/tclUnixPort.h, line 571: redeclaration of 'TclpGmtime'; previous declaration at line 517 in file './../generic/tclIntDecls.h' extern struct tm * TclpGmtime(const TclpTime_t); --------------------------- ^ cfe: Error: ./../generic/../unix/tclUnixPort.h, line 571: Incompatible type for the function parameter extern struct tm * TclpGmtime(const TclpTime_t); --------------------------- -----------^ *** Error code 1 (bu21) The reason is that TclpLocaltime and TclpGmtime are defined with a const argument at one point and without one at another.
vasiljevicplain2004-10-20 16:21:15
Logged In: YES user_id=95086 I have looked around and according to ChangeLog file, those have been modified by: 2004-05-14 Kevin B. Kenny <[email protected]> * generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h: So, I suggest, Kevin should take care of that. My first thought was to simple remove the CONST qualifier from the prototype declaraion in unix/tclUnixPort.h but I'm not sure if this is the right way.
kennykbplain2004-10-28 23:13:11
Logged In: YES user_id=99768 Hmm, never met a compiler that pedantic before. The param should be CONST throughout. Can someone check this out on Irix? The 8.4 branch tip appears to be ok on Linux, Solaris and Windows, but I haven't an Irix to test it.
dgp Ticket [1001319fff]: 1 change
[History diff]2004-10-28 23:28:14
dgpplain2004-10-28 23:28:15
Logged In: YES user_id=80530 I'll see what I can do about an Irix test.
dgpplain2004-10-29 00:11:50
Logged In: YES user_id=80530 Tcl 8.4.8 in a --enable-threads configuration builds fine on an IRIX64 6.5 system I have access to. `make test` shows only one failed test, clock-41.1. Apparently IRIX does not support the %k format.
Log in (anonymous is fine) to add a comment.