Artifacts Associated With Ticket 217959
Ticket change [66bc11f27d] (rid 102771) by nobody on 2000-10-26 00:46:38:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4211 RFE Version: 8.3 SubmitDate: '2000-02-22' LastModified: '2000-03-31' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 4234 OS: All Windows FixedDate: '2000-10-25' ClosedDate: '2000-03-31' Name: Jan Nijtmans ReproducibleScript: When compiling Tcl8.3.0 with gcc-2.95.2-mingw serveral problems show up. For some of which gcc is to blame, for others Tcl is to blame. The two most notable things are: - environ, hypot and exception require an underscore both for VC++ and mingw. - when compiling without msvcrt.dll, the functions _beginsthreadex() and _endthreades() are missing This patch fixes both of those problems. The use of CreateThread() and ExitThread() introduce memory leaks, but that's better than not compile at all. Patch: *** win/tclWinPort.h.origFri Oct 29 05:05:13 1999 --- win/tclWinPort.hSun Feb 20 10:13:22 2000 *************** *** 335,346 **** * EDEADLK as the same value, which confuses Tcl_ErrnoId(). */ ! #ifdef _MSC_VER # define environ _environ # define hypot _hypot # define exception _exception # undef EDEADLOCK ! #endif /* _MSC_VER */ /* *--------------------------------------------------------------------------- --- 335,351 ---- * EDEADLK as the same value, which confuses Tcl_ErrnoId(). */ ! #if defined (_MSC_VER) || defined (__MINGW32__) # define environ _environ # define hypot _hypot # define exception _exception # undef EDEADLOCK ! #endif /* _MSC_VER || __MINGW32__ */ ! ! #if defined (__MINGW32__) && !defined (__MSVCRT__) ! #define _beginthreadex(a,b,c,d,e,f) CreateThread(a,b,c,(DWORD *)d,e,(DWORD *)f) ! #define _endthreadex(a) ExitThread(a) ! #endif /* *--------------------------------------------------------------------------- PatchFiles: tclWinPort.h
- foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "75. Tutorial"
- title initialized to: "More fixes for gcc-2.95.2-mingw"
- type initialized to: "Bug"
Ticket change [2b168683eb] (rid 118677) by welch on 2000-10-26 08:10:56:
- closedate changed to: "2000-10-26T01:10:56"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [bfcafdc5ca] (rid 102308) by dgp on 2001-04-05 06:55:06:
- closedate changed to: "2001-04-04T23:55:06"
- closer changed to: "dgp"
- subsystem changed to: "53. Configuration and Build Tools"