home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / alt / lucidem / help / 416 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  2.6 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!fido!shankar
  2. From: shankar@wpd.sgi.com (Shankar Unni)
  3. Newsgroups: alt.lucid-emacs.help
  4. Subject: Re: compiling lucid 19.2 on HP 7x0
  5. Message-ID: <pnssj44@fido.asd.sgi.com>
  6. Date: 11 Sep 92 22:41:41 GMT
  7. References: <9209101349.AA21434@amil.co.il>
  8. Sender: news@fido.asd.sgi.com (Usenet News Admin)
  9. Organization: Silicon Graphics, Inc.
  10. Lines: 51
  11. X-Newsreader: Tin 1.1 PL5
  12.  
  13. Danny Bar-Dov (danny@amil.co.il) wrote:
  14.  
  15. > 1. Lucid specifies an ansi C compiler. Not having gcc - I tried to
  16. > use HP's cc with the ansi mode flag (-Aa). After complaints about
  17. > errors in header files (HP's) I tried the HP CC (C++) compiler -
  18. > same problems. The c89 (another flavor of HP ansi compiler) yielded
  19. > same results.  To make a long story short I've found out that you
  20. > must define _INCLUDE_POSIX_SOURCE _INCLUDE_HPUX_SOURCE
  21. > _INCLUDE_XOPEN_SOURCE to make it work.
  22.  
  23. Don't define the _INCLUDE_* names here - just define _HPUX_SOURCE.
  24. This will cause all three names above to get defined.  This is a
  25. standard HP FAQ.
  26.  
  27. Better still, use the flag combination "-Aa +e" (the +e flag defines
  28. _HPUX_SOURCE and enables a couple of hp extensions to C that should
  29. not affect any programs not using them, like asm(), etc)..
  30.  
  31. (The short version is that when you turn on -Aa in HP's C compiler,
  32. you get a *PURE* ANSI C namespace - i.e. names that are not explicitly
  33. in the ANSI C standard do not get defined in the headers. To get these
  34. back, you need to define one of three possible "name-space" defines -
  35.  
  36.   _POSIX_SOURCE <= _XOPEN_SOURCE <= _HPUX_SOURCE
  37.  
  38. (i.e. each of these names is a subset of the one to its right)).
  39.  
  40. > 2. HP do not provide Xmu & Xaw include files. Also they do not
  41. > give these libraries in both archive & shared library formats -
  42. > one is provided only as a shared lib. the other as an archive.
  43. > - solution - I compiled against X11R5 native distribution.
  44.  
  45. The compiled X11R4 libs and headers are on "hpcvaaz.cv.hp.com" (use
  46. anonymous ftp - I don't remember the exact directory).
  47.  
  48. > 3. (This was partly mentioned in lucid-19.3 announcement) There are
  49. > some mathematic functions missing under the HP platform
  50. > some are called differently (i.e. remainder() is called fabs())
  51. > others (i.e. atanh) are totally missing. I simply closed all these
  52. > references with #ifndef HPUX
  53.  
  54. That's "fmod()", not "fabs()".
  55.  
  56. Jamie - very few systems have implemented the remainder() function
  57. (which seems to be something out of IEEE754).  Could you convert all
  58. such references to the more common ANSI C function "fmod()"?
  59.  
  60.  
  61. --
  62. Shankar Unni                E-Mail:    shankar@sgi.com
  63. Silicon Graphics Inc.            Phone:    +1-415-390-2072
  64.