home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / mail / elm / 3858 < prev    next >
Encoding:
Text File  |  1992-12-25  |  3.3 KB  |  78 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!math.fu-berlin.de!fub!obh.in-berlin.de!aeon.in-berlin.de!thomas
  3. From: thomas@aeon.in-berlin.de (Thomas Wolfram)
  4. Subject: Re: Elm 2.4dev PL17, SIGWINCH on ISC 3.0
  5. Message-ID: <BzuEyG.1J7@aeon.in-berlin.de>
  6. Keywords: Elm2.4dev,PL17,SIGWINCH,ISC
  7. Organization: Cities in Dust
  8. References: <BzrpJC.CG@aeon.in-berlin.de> <1hdm3vINN58b@dsinc.dsi.com>
  9. Date: Sat, 26 Dec 1992 01:32:40 GMT
  10. Lines: 66
  11.  
  12. In <1hdm3vINN58b@dsinc.dsi.com> syd@dsi.com (Syd Weinstein) writes:
  13. [...]
  14. >>BTW, is 2.4dev PL17 the last version? What means that "dev"?
  15. >this is a two year out of date development version that bears
  16. >little resemblence to 2.4PL17 except for the fact that its
  17. >17 patches from a base file.
  18.  
  19. Argh :-( I got the first file with "2.4" and "17" from a neighbour
  20. uucp site I saw...
  21.  
  22. >Please start over with a more proper version.
  23.  
  24. I did it. (Now real 2.4 PL17...) Here is the story (ISC 3.0):
  25. At first I was happy, I used "-lc_s -linet -lnls" and all seemed
  26. to work. As for the problem with TIOCGWINSZ in 2.4dev: using of <termio.h>
  27. was prepared.
  28.  
  29. All the trouble started when the compiler didn't found setlocale().
  30. This symbol is only in libcposix.a and hence I added -lcposix to
  31. the libraries. I re-ran the Configure script - maybe a bad idea -
  32. and the script found also the posix signal functions (I noticed that
  33. later) and I had that <termios.h> again. Ok, I changed that in config.sh
  34. back to <termio.h> and typed 'make' again... and got a parser error in
  35. editmsg.c. Problem: since I had now "POSIX_SIGNALS" defined JMP_BUF was
  36. set to "sigjmp_buf". This type is defined in <setjmp.h> but only
  37. for _POSIX_SOURCE (and _XOPEN_SOURCE I should mention) and I didn't set
  38. this. Ok, now I used "gcc -posix -fpcc...".
  39.  
  40. Bad... Now "S_IF*" defines were undeclared at first in can_access.c.
  41. Problem: <sys/stat.h> defines these as "S_IS*" for _POSIX_SOURCE. Ok,
  42. I looked around and found that "_XOPEN_SOURCE" would be better... Now
  43. "gcc -D_XOPEN_SOURCE -fpcc...". Re-ran Configure script... (Not to
  44. forget changing <termios.h> to <termio.h>.)
  45.  
  46. No luck. Neither I_TIME nor I_SYSTIME were defined and the compiler
  47. complained about a incomplete type at first in getarpdate.c. I looked
  48. around and found that having not "__STDC__" would be better. Now
  49. "gcc -traditional -D_XOPEN_SOURCE -fpcc...". A lot of warnings about
  50. conflicting types for built-in function `strlen' but I ignored that and...
  51.  
  52. Errors... Some symbols (setchrclass, signal, sighold, etc.) which
  53. are in libc_s.a as well as in libcposix.a are also used in some objects
  54. of -lcposix elm needed and since I used "-lc_s -lcposix ..." they
  55. were multiply defined.
  56.  
  57. Ok, to shorten it now (I played around with extracting these objects from
  58. libcposix.a) I ended up with using -lcposix alone since I thought
  59. that using posix signal stuff is better.
  60. But without shared C library elm binary is ~80k bigger (after stripping
  61. and applying mcs -d.)
  62.  
  63. Summary for ISC 3.0:
  64.  1. gcc -traditional -D_XOPEN_SOURCE -fpcc-struct-return
  65.  2. -linet -lcposix -lnls
  66.  3. changing to <termio.h> in config.sh by hand (d_termio='define'/
  67.     d_termios='undef')
  68.  
  69. It seems to work but I didn't check all yet.
  70.  
  71. Maybe there is a better way. E.g. don't using posix signal stuff and extracting
  72. only setlocale.o from the libcposix.a)
  73. But I think I'll go to bed now.
  74. regards, Thomas
  75. -- 
  76. Thomas Wolfram, thomas@aeon.in-berlin.de
  77. EANTC, TU Berlin, wolf@prz.tu-berlin.de, +49 030 31421294
  78.