Tcl 8.0 bug + patch for Linux: SIGIO == SIGLOST 
Author Message
 Tcl 8.0 bug + patch for Linux: SIGIO == SIGLOST

Under Linux the 2.0.30 kernel, and probably all Linux kernel releases in
modern history, SIGIO and SIGLOST are both equal to 29, causing a compilation
error in generic/tclPosixStr.c due to duplicate case statements.  I have
attached a fix below.

Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 205

+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."

Index: generic/tclPosixStr.c
===================================================================
RCS file: /usr/src.repository/repository/GUI/tk/interpreters/tcl/generic/tclPosixStr.c,v
retrieving revision 1.1.1.1
diff -c -2 -r1.1.1.1 tclPosixStr.c
*** tclPosixStr.c       1997/09/29 02:50:06     1.1.1.1
--- tclPosixStr.c       1997/09/29 20:53:49
***************
*** 975,979 ****
        case SIGKILL: return "SIGKILL";
  #endif
! #if defined(SIGLOST) && (!defined(SIGIOT) || (SIGLOST != SIGIOT)) && (!defined(SIGURG) || (SIGLOST != SIGURG)) && (!defined(SIGPROF) || (SIGLOST != SIGPROF))
        case SIGLOST: return "SIGLOST";
  #endif
--- 975,979 ----
        case SIGKILL: return "SIGKILL";
  #endif
! #if defined(SIGLOST) && (!defined(SIGIOT) || (SIGLOST != SIGIOT)) && (!defined(SIGURG) || (SIGLOST != SIGURG)) && (!defined(SIGPROF) || (SIGLOST != SIGPROF)) && (!defined(SIGIO) || (SIGLOST !=SIGIO))
        case SIGLOST: return "SIGLOST";
  #endif
***************
*** 1107,1111 ****
        case SIGKILL: return "kill signal";
  #endif
! #if defined(SIGLOST) && (!defined(SIGIOT) || (SIGLOST != SIGIOT)) && (!defined(SIGURG) || (SIGLOST != SIGURG))
        case SIGLOST: return "resource lost";
  #endif
--- 1107,1111 ----
        case SIGKILL: return "kill signal";
  #endif
! #if defined(SIGLOST) && (!defined(SIGIOT) || (SIGLOST != SIGIOT)) && (!defined(SIGURG) || (SIGLOST != SIGURG)) && (!defined(SIGIO) || (SIGLOST != SIGIO))
        case SIGLOST: return "resource lost";
  #endif



Fri, 17 Mar 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Tcl 7.5,7.6,8.0 BUG+PATCH: Write past end of array in tclUnixSock.c

2. Bug Found in Tcl 8.0/Tk 8.0

3. Img1.1 patched binary Tcl/Tk 8.0 release for win

4. Patch Release of TCL 8.0 ??

5. patched Tcl/Tk 8.0 ???

6. Tcl 8.0: patch to prevent memory corruption in format command

7. Tcl 8.0 patch for 64-bit Alpha

8. Python 1.5b1 and Tcl/Tk 8.0 on Linux

9. Extended TCl 8.0 on Linux

10. Problems with BLT2.3 with tcl/tk 8.0 (Linux)

11. HELP: Linux binaries of Tcl/Tk version 7.6/8.0

12. PATCHES: Patch Archive Updated http://www.cs.uoregon.edu/research/tcl/patch/

 

 
Powered by phpBB® Forum Software