home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!wupost!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!vista.atmos.uiuc.edu!davidw
- From: davidw@vista.atmos.uiuc.edu (David Wojtowicz)
- Subject: Re: elm on RS/6000's running AIX v3.2
- References: <18r740INN4e3@agate.berkeley.edu>
- Message-ID: <BuHx8A.7Mz@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: Atmospheric Science at Univ of Ill at Urbana-Champaign
- Date: Sun, 13 Sep 1992 02:50:33 GMT
- Lines: 29
-
- In article <18r740INN4e3@agate.berkeley.edu> gezelter@sam.cchem.berkeley.edu (Dan Gezelter) writes:
- >
- >Yes, I know this is a FAQ. Yes, I've compiled elm before under AIX
- >v3.1, but we recently upgraded our machines to 3.2, and I recently
- >tried to recompile elm. I think people in this group should be aware
- >that the instructions in the FAQ are no longer correct. I.e. bsdcc
- >gives multiple errors at compile time. Try it out and see for
- >yourself.
- >
-
- I don't know what the FAQ says about this but the following compiler
- options worked for me under AIX3.2:
-
- -D_BSD -U__STR__
-
- (note that those are double underscores on each side of STR)
-
- I believe the compile errors you are getting are due to the fact that
- Elm explicitly declares some of the string functions (a no no, should
- use string.h instead) Under AIX3.2 the string functions (strcpy, etc)
- are macros that remap the functions to the new faster "inline"
- versions. Since you can't declare a macro, you get an error. The
- -U__STR__ turns off these macros.
-
- ---------------------------------------------------------------------
- David Wojtowicz, meteorological research programmer
- Atmospheric Sciences Dept, University of Illinois at Urbana-Champaign
- d-wojtowicz@uiuc.edu, davidw@vista.atmos.uiuc.edu
- ---------------------------------------------------------------------
-