home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / mail / elm / 2352 < prev    next >
Encoding:
Text File  |  1992-09-12  |  1.8 KB  |  41 lines

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