home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / help / 1903 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.8 KB

  1. 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
  2. From: envbvs@epb9.lbl.gov (Brian V. Smith)
  3. Newsgroups: gnu.gcc.help
  4. Subject: gcc2.0 for Vax Ultrix 4.2
  5. Keywords: __ultrix and __vax redefined
  6. Message-ID: <25480@dog.ee.lbl.gov>
  7. Date: 13 Aug 92 20:52:57 GMT
  8. Organization: lbl
  9. Lines: 31
  10. NNTP-Posting-Host: 128.3.12.98
  11.  
  12. I have compiled gcc for Vax Ultrix (4.2) and all the while it was compiling
  13. it was generating warnings:
  14.  
  15. ./gcc    -g -O -Bstage2/ -B./  -J  -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c enquire.c
  16. In file included from /usr/include/stdio.h:89, from enquire.c:370:
  17. /usr/include/ansi_compat.h:50: warning: `__ultrix' redefined
  18. *Initialization*:1: warning: this is the location of the previous definition
  19. /usr/include/ansi_compat.h:54: warning: `__unix' redefined
  20. *Initialization*:1: warning: this is the location of the previous definition
  21. /usr/include/ansi_compat.h:58: warning: `__bsd4_2' redefined
  22. *Initialization*:1: warning: this is the location of the previous definition
  23. /usr/include/ansi_compat.h:62: warning: `__vax' redefined
  24. *Initialization*:1: warning: this is the location of the previous definition
  25.  
  26. I assumed that this could be ignored, and it indeed seemed to work fine.
  27.  
  28. Later, when I tried to compile an X11 program I got the same messages (except
  29. without the __unix and __bsd4_2 warnings).
  30.  
  31. In compiling gcc with the first pass, I noticed that -Dultrix=*** was passwd
  32. into the compiler, so I assume that those definitions are hard-wired into 
  33. the compiler.
  34.  
  35. How do I get rid of these warnings?  It is pretty messy looking at all that
  36. warning output.
  37.  
  38.  
  39. -- 
  40. Brian V. Smith    (bvsmith@lbl.gov)
  41. Lawrence Berkeley Laboratory
  42. I don't speak for LBL; they don't pay me enough for that.
  43.