home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!dog.ee.lbl.gov!epb9.lbl.gov!envbvs
- From: envbvs@epb9.lbl.gov (Brian V. Smith)
- Newsgroups: gnu.gcc.help
- Subject: gcc2.0 for Vax Ultrix 4.2
- Keywords: __ultrix and __vax redefined
- Message-ID: <25480@dog.ee.lbl.gov>
- Date: 13 Aug 92 20:52:57 GMT
- Organization: lbl
- Lines: 31
- NNTP-Posting-Host: 128.3.12.98
-
- I have compiled gcc for Vax Ultrix (4.2) and all the while it was compiling
- it was generating warnings:
-
- ./gcc -g -O -Bstage2/ -B./ -J -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c enquire.c
- In file included from /usr/include/stdio.h:89, from enquire.c:370:
- /usr/include/ansi_compat.h:50: warning: `__ultrix' redefined
- *Initialization*:1: warning: this is the location of the previous definition
- /usr/include/ansi_compat.h:54: warning: `__unix' redefined
- *Initialization*:1: warning: this is the location of the previous definition
- /usr/include/ansi_compat.h:58: warning: `__bsd4_2' redefined
- *Initialization*:1: warning: this is the location of the previous definition
- /usr/include/ansi_compat.h:62: warning: `__vax' redefined
- *Initialization*:1: warning: this is the location of the previous definition
-
- I assumed that this could be ignored, and it indeed seemed to work fine.
-
- Later, when I tried to compile an X11 program I got the same messages (except
- without the __unix and __bsd4_2 warnings).
-
- In compiling gcc with the first pass, I noticed that -Dultrix=*** was passwd
- into the compiler, so I assume that those definitions are hard-wired into
- the compiler.
-
- How do I get rid of these warnings? It is pretty messy looking at all that
- warning output.
-
-
- --
- Brian V. Smith (bvsmith@lbl.gov)
- Lawrence Berkeley Laboratory
- I don't speak for LBL; they don't pay me enough for that.
-