home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / utils / bug / 2284 < prev    next >
Encoding:
Text File  |  1992-12-31  |  5.2 KB  |  210 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!amsg.ARnet.COM!robertl
  3. From: robertl@amsg.ARnet.COM (Robert Lipe)
  4. Subject: Screen 3.2b fixes for SCO and MIPS
  5. Message-ID: <9212310327.AA06614@raisin-nut>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 30 Dec 1992 03:29:46 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 197
  12.  
  13. Some notes and comments about screen 3.2b on SCO UNIX 3.2v4.0 and
  14. on RISCOS 4.52b2.
  15.  
  16. ...minor whining....
  17.  
  18. SCO Defines M_XENIX, but already has it's own typdefs for pid_t,
  19. gid_t, and uid_t.  This means 166-169 screen.h fail becuase
  20. they're re-typedeffing those values.  I just commented them out.
  21.  
  22. Something about the TIOCPKT handlers in RISC/OS 4.52b2 must not
  23. be right.  If I turn that code off, screen works on it.  I just
  24. added an #undef PIOCPKT at line 85 of screen.h  My days of 4.52b2
  25. are numbered - MIPS has been promising me 5.0.1 "any day now"
  26. since October (sigh).   Another screen user on 4.52b2 has seen
  27. this same behaviour.
  28.  
  29. ...and the biggie....
  30.  
  31. While I won't apologize or try to rationalize it, SCO UNIX 3.2v4
  32. with SCO TCP/IP 1.2 installed throws screen 3.2-3.2b an
  33. unexpected curve.
  34.  
  35. SCO includes one set of pseudo devices with the core OS for
  36. things like their mscreen facility and the mouse driver (the vty 
  37. driver).  When you install TCP/IP 1.2, you get another set of 
  38. pseudo-devices for the networking facilities. (the mpt and spt
  39. drivers).   While either of these devices both work with screen,
  40. it by default will grab the ones from the vty driver.  This means
  41. by default, screen can only control the 8 vty devices.  If you've
  42. done a mkdev ptty after TCP/IP was installed, you raised the number 
  43. of devices in the mpt/spt pair.  What this means in my case was
  44. that, while I had 40 pseudos (mpt/spt), screen complained that it couldn't
  45. open them.
  46.  
  47. Since the naming of the devices differs (vty is ttyp0[1-8], mpt/spt
  48. is ttyp[0-9] ttyp[1-9][0-9]) I wimped out and took the patch of 
  49. least resistance.  I convinced screen to use ttyp in the mask and
  50. rip through the pseudo's 10 and up.
  51.  
  52. It works.  A better solution for SCO would be to sprintf the
  53. decimal number with and without leading zero.    If you dudes
  54. have beta sights running screen, I'll help you any way I can to 
  55. make these changes work with and without TCP/ip and  on the
  56. various combinations of  OS versions and TCP/IP versions.
  57.  
  58. Thanx for an excellent product!
  59. Robert Lipe,
  60. Sr. Software Engr,
  61. Arnet Corp.
  62.  
  63. --------------------- changes ---------------------------------------
  64.  
  65. Diffs to Makefile
  66.     Turn on SCO specific code
  67.  
  68. 28c28
  69. < CFLAGS =  -DSCO=1
  70. ---
  71. > CFLAGS = 
  72.  
  73. Diffs to config.h
  74.     SCO with TCP/IP installed uses names in the form ttyp[0-9][0-9]
  75.  
  76. 335,339d333
  77. < #ifdef SCO
  78. < #define PTY_FIRST_CHARS "0123456789"
  79. < #define PTY_SECOND_CHARS "0123456789"
  80. < #endif
  81.  
  82. Diffs to screen.c
  83.     SCO with TCP/IP installed uses names in the form ttyp[0-9][0-9]
  84.  
  85.  
  86. 230,233c229
  87. < #if SCO
  88. < static char PtyProto[] = "/dev/ptypXY";
  89. < static char TtyProto[] = "/dev/ttypXY";
  90. < #else
  91. ---
  92. 243d238
  93. < #endif /* SCO */
  94.  
  95. From lucio@proxima.alt.za Wed Dec 30 10:42:21 1992
  96. Return-Path: <lucio@proxima.alt.za>
  97. Received: from daisy.ee.und.ac.za by life.ai.mit.edu (4.1/AI-4.10) id AA05145; Wed, 30 Dec 92 10:41:59 EST
  98. Received: from proxima.Alt.ZA (nuustak.UUCP (user proxima)) by
  99.     daisy.ee.und.ac.za (smail3.1.22+apb920812#178) with uucp-bsmtp id
  100.     m0n75YJ-0000NSC; Wed, 30 Dec 1992 10:41:47 -0500 (EST)
  101. Received: by proxima.ALT.ZA (Smail3.1.28.1 #3)
  102.     id m0n75ly-0000D3C; Wed, 30 Dec 92 15:55 GMT
  103. Message-Id: <m0n75ly-0000D3C@proxima.ALT.ZA>
  104. From: lucio@proxima.alt.za (Lucio de Re)
  105. Subject: G++ exception handling
  106. To: bug-g++@prep.ai.mit.edu
  107. Date: Wed, 30 Dec 1992 15:55:46 +0000 (GMT)
  108. Reply-To: lucio@proxima.alt.za (Lucio de Re)
  109. X-Mailer: ELM [version 2.4 PL13]
  110. Content-Type: text
  111. Content-Length: 1461      
  112.  
  113. Hi,
  114.  
  115. the following program:
  116.  
  117. > #include    <stdio.h>
  118. > x()
  119. > {
  120. >     try
  121. >     {
  122. >         fprintf (stderr, "fred\n");
  123. >         throw "haloo";
  124. >     }
  125. >     catch (char *p)
  126. >     {
  127. >         fprintf (stderr, p);
  128. >     }
  129. > }
  130. > main ()
  131. > {
  132. >     x();
  133. > }
  134.  
  135. when compiled as follows:
  136.  
  137. > g++ -fhandle-exceptions -c prog.C
  138.  
  139. or
  140.  
  141. > g++ -fansi-exceptions -c prog.C
  142.  
  143. produces the following:
  144.  
  145. > prog.C: In function `int  x ()':
  146. > prog.C:6: Internal compiler error.
  147. > prog.C:6: Please report this to `bug-g++@prep.ai.mit.edu'.
  148.  
  149. I'm using the binary files for the AT&T 3B2 uploaded by Greg Gulik.
  150.  
  151. It is g++ version 2.3.2 and I'm not sure of the significance of the
  152. specs file, so I include it below:
  153.  
  154. > *asm:
  155. > *asm_final:
  156. > *cpp:
  157. > *cc1:
  158. > *cc1plus:
  159. > *endfile:
  160. > crtn.o%s
  161. > *link:
  162. > *lib:
  163. > %{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}
  164. > *startfile:
  165. > %{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}
  166. > *switches_need_spaces:
  167. > *signed_char:
  168. > %{!fsigned-char:-D__CHAR_UNSIGNED__}
  169. > *predefines:
  170. > -Dwe32000 -Du3b -Dunix
  171. > *cross_compile:
  172. > 0
  173.  
  174. We found remarkably little information regarding exception handling and it
  175. is difficult for us to produce printable text from the TeX files.  Would
  176. it be a great burden to provide us with a brief extract (?) in plain text
  177. format of the pertinent documentation?
  178.  
  179. My congratulations on what is in all respects a marvellous product.
  180.  
  181. -- 
  182. Lucio de Re (lucio@proxima.Alt.ZA) - tab stops at four.
  183.  
  184.