From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 396F53EA1A for ; Mon, 11 Mar 2002 19:49:53 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g2C0nqF14340 for ; Mon, 11 Mar 2002 19:49:52 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g2C0nqD06289 for axp-list@listman.redhat.com; Mon, 11 Mar 2002 19:49:52 -0500 Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g2C0nqR06285 for ; Mon, 11 Mar 2002 19:49:52 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g2C0nqF14336 for ; Mon, 11 Mar 2002 19:49:52 -0500 Received: from ellpspace.math.ualberta.ca (ellpspace.math.ualberta.ca [129.128.207.67]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g2C0mUc27721 for ; Mon, 11 Mar 2002 19:48:30 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.11.6/8.11.6) id g2C0niP07384 for axp-list@redhat.com; Mon, 11 Mar 2002 17:49:44 -0700 Date: Mon, 11 Mar 2002 17:49:44 -0700 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: error logs RE: compiling X with ccc Message-ID: <20020311174944.A7347@ellpspace.math.ualberta.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from voodoo@alphadriven.org on Mon, Mar 11, 2002 at 05:24:27PM -0500 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Mon, Mar 11, 2002 at 05:24:27PM -0500, Peter Petrakis wrote: > cc: Info: imake.c, line 1610: In this statement, the unsigned expression > "fwrite(...)" is being compared with an equality operator to a constant > whose value is negative. This might not be what you intended. > (questcompare1) > if (fwrite(buf, sizeof(char), cnt, fd) == -1) > ------------^ Picky, picky! But C compiler is supposed to do a type promotion. 'fwrite' indeed has a return type size_t so you can do if (fwrite(buf, sizeof(char), cnt, fd) == (size_t)(-1)) if you want to avoid this whining. > cc: Info: imake.c, line 259: This top level include file appears to be > unused. (unusedtop) > #include > -^ This is weird. So from where they picked up a declartion of 'fwrite'? It _should_ be in . Anyway, this is a compiler overenthusiastic on warnings and format of these is a gret PITA if you work from Unix editors and want a help with positioning your cursor. > imake.o: In function `get_libc_version': > :1010: undefined reference to `alloca' > :1010: undefined reference to `alloca' > :1010: undefined reference to `alloca' 'make -Dalloca=malloc' or add this define to your compilation flags. This will create leaks so if ccc _really_ does not provide 'alloca' (this is really a compiler dependent as this is an allocation on stack but carefuly check ccc docs) then for anything running longer, like X, you will have to fix sources. Great fun as that means that you have to track every possible way to exit callers. 'alloca()' is faster, and quietly frees your memory, although it allows you to mess up your stack quite effectively. :-) Michal