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