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