home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14511 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.1 KB

  1. Xref: sparky comp.windows.x:14511 comp.windows.x.apps:653 alt.sources:1776
  2. Newsgroups: comp.windows.x,comp.windows.x.apps,alt.sources
  3. Path: sparky!uunet!wupost!darwin.sura.net!mips!sdd.hp.com!think.com!paperboy.osf.org!meissner
  4. From: meissner@osf.org (Michael Meissner)
  5. Subject: Re: XPaint 2.0 Beta 2 Release Information
  6. In-Reply-To: william@lanai.cs.ucla.edu's message of Tue, 28 Jul 92 04:37:10 GMT
  7. Message-ID: <MEISSNER.92Jul28154617@tiktok.osf.org>
  8. Sender: news@osf.org (USENET News System)
  9. Organization: Open Software Foundation
  10. References: <l76c4kINNa20@spim.mips.com> <1992Jul28.043710.11803@cs.ucla.edu>
  11. Date: 28 Jul 92 15:46:17
  12. Lines: 32
  13.  
  14. In article <1992Jul28.043710.11803@cs.ucla.edu>
  15. william@lanai.cs.ucla.edu (William Cheng) writes:
  16.  
  17. | When I try to compile this on a SPARC running SunOS 4.1.1 with version
  18. | 2.2.2 of gcc, I get the following error messages when compiling Options.c:
  19. |   gcc -g -ansi   -c Operation.c 
  20. |   In file included from Operation.c:18:
  21. |   /usr/include/stdlib.h:18: conflicting types for `abort'
  22. |   <built-in>:0: previous declaration of `abort'
  23. |   /usr/include/stdlib.h:26: conflicting types for `exit'
  24. |   <built-in>:0: previous declaration of `exit'
  25. |   Operation.c: In function `OperationInit':
  26. |   Operation.c:201: warning: assignment makes integer from pointer without a cast
  27. |   Operation.c:222: warning: passing arg 3 of `XtAddCallback' from incompatible
  28. |       pointer type
  29. |   make: *** [Operation.o] Error 1
  30. | The only line I changed in Makefile is to add 'CC=gcc'.  What am I doing
  31. | wrong?  Thanks in advance!
  32.  
  33. Gcc knows about a number of functions builtin type (exit and abort
  34. among them).  I suspect that GCC and stdlib.h disagree about the
  35. types.  You can use the -fno-builtin switch to disable all builtins
  36. (note you need to use at least 2.2.2, since the behavior of
  37. -fno-builtin in previous releases did not affect exit and abort).  You
  38. might also want to complain on the gcc bug mailing lists.
  39. --
  40. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  41. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  42.  
  43. You are in a twisty little passage of standards, all conflicting.
  44.