home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 8937 < prev    next >
Encoding:
Text File  |  1992-11-16  |  3.3 KB  |  72 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!mcsun!chsun!hslrswi!aut!nbladt
  3. From: nbladt@autelca.ascom.ch (Norbert Bladt)
  4. Subject: Re: XView - how much of it is available?
  5. Message-ID: <1992Nov16.125013.23135@autelca.ascom.ch>
  6. Organization: Ascom Autelca AG, Guemligen, Switzerland
  7. References: <1992Nov10.172651.23663@Urmel.Informatik.RWTH-Aachen.DE> <1992Nov11.152527.18329@tinman.mke.ab.com>
  8. Date: Mon, 16 Nov 1992 12:50:13 GMT
  9. Lines: 61
  10.  
  11. tdphette@mke.ab.com (Thad Phetteplace x4461) writes:
  12.  
  13. >kuku@acds.physik.rwth-aachen.de (Christoph Kukulies) writes:
  14. [questions about XView and availability for 386BSD deleted - NB]
  15.  
  16. >I managed to port the props program (executed by the Properties menu
  17. >selection) a few weeks ago.  I'm currently working on the termsw bug
  18. >(suggestions welcome).  I'll put the modified props source code and
  19. >executable on my ftp server tinman.mke.ab.com sometime tommorow.  It
  20. >will be in the /pub/386bsd/ports directory.  I will put my ported
  21. >version of pcomm in there as well.  I will make an attempt at
  22. >compiling xlock tonight and if that works I will finish porting
  23. >Xlockup.
  24. Hello everybody !
  25.  
  26. Yesterday I managed to get the xview client
  27.     textedit
  28. to run without a crash !
  29. It seems to me that the bug you are looking for is not in the textsw part of
  30. the xview library. In fact, there seems to be a bug in the optimization of the
  31. GNU C-compiler included in the stock-386BSD, I think.
  32.  
  33. What I did to get textedit to run without a crash was:
  34.     I undefined #OS_HAS_LOCALE (after a suggestion from the net).
  35.     I compiled all the stuff, yes, the whole libxview.a with the "-g"
  36.     option to be able to debug it with the wonderful X-debugger "ups"
  37.     (thanks for this very nice and useful application whoever did it).
  38.  
  39. Imagine what happened, after I finished linking the textedit.o file (compiled
  40. with "-g", too) and the libraries.
  41. I started "ups textedit" for debugging textedit. I loaded a file into textedit
  42. (that's where it crashed before) and it didn't crash this time !!
  43. So, I thought, nothing new for me. I did see several applications run fine
  44. with a debugger but not without it. So, I started textedit from the commandline.
  45. Again, no crash while loading a file. I didn't test it a lot, but it seems to
  46. work for me. I will try to compile the whole libxview.a library with "-O"
  47. flag except the textsw (and perhaps the ttysw) part of it.
  48.  
  49. The "ups" debugger reported a "segmentation violation" in one of the
  50. textsw functions in the version of the libxview.a compiled without "-g".
  51. That's what I found out before I compiled all the stuff with "-g" (which will
  52. disable optimization).
  53.  
  54. Oh yes, I am still using the gcc which was included in stock-386BSD.
  55. I just have gcc 2.2.2 but didn't spend any time on porting it (or applying the
  56. patches for 386bsd and just compile it) because now we have gcc 2.3.1 and I
  57. will use that, anyway.
  58.  
  59. One thing is still bad. Trying to link "cmdtool" with the large (about 18MB)
  60. libxview.a resulted in
  61.     ld: got signal 10 (or something like this).
  62. I have to work on this, too, I guess.
  63.  
  64. That's a report of my intermediate result.
  65. Hope this saves somebody else at least some time.
  66.  
  67. Norbert.
  68. -- 
  69. Norbert Bladt, Ascom Autelca AG, Worbstr. 201, CH-3073 Guemligen, Switzerland
  70. Phone: +41 31 999 65 52            FAX: +41 31 999 65 44
  71. Mail: nbladt@autelca.ascom.ch   UUCP: ..!uunet!mcsun!chsun!hslrswi!aut!nbladt
  72.