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