From mint-bounce@lists.fishpool.fi  Fri Jun  2 00:45:56 2006
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Subject: Re: [MiNT] Freemint Failed Build
From: Alan Hourihane <alanh@fairlite.demon.co.uk>
To: Mark Duckworth <mduckworth@atari-source.com>
Cc: mint@fishpool.com
In-Reply-To: <1149199678.3276.23.camel@evil.atari-source.com>
References: <1149199678.3276.23.camel@evil.atari-source.com>
Content-Type: multipart/mixed; boundary="=-lHK3yuTW+LFwsmyWub4P"
Date: Thu, 01 Jun 2006 23:41:56 +0100
Message-Id: <1149201716.10568.55.camel@jetpack.demon.co.uk>
Mime-Version: 1.0
X-Mailer: Evolution 2.4.2.1 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: alanh@fairlite.demon.co.uk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00
X-Spam-Level: 


--=-lHK3yuTW+LFwsmyWub4P
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2006-06-01 at 18:07 -0400, Mark Duckworth wrote:
> Hey guys,
> 
> Just wanted to let you know that I haven't released any builds because
> it keeps failing at the same spot.  
> 
> gcc -I../rsc/english -O2 -fomit-frame-pointer -Wall -Wmissing-prototypes
> -Winline -Wshadow -Wpointer-arith -Wcast-qual -Waggregate-return
> -c ../list.c -o list.ogcc -I../rsc/english -O2 -fomit-frame-pointer
> -Wall -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual
> -Waggregate-return -c ../phstuff.c -o phstuff.o
> ../phstuff.c:35: parse error before `clear_cpu_caches'
> ../phstuff.c:35: warning: type defaults to `int' in declaration of
> `clear_cpu_caches'
> ../phstuff.c:35: warning: data definition has no type or storage class
> ../phstuff.c: In function `load_and_reloc':
> ../phstuff.c:149: `r' undeclared (first use in this function)
> ../phstuff.c:149: (Each undeclared identifier is reported only once
> ../phstuff.c:149: for each function it appears in.)
> make[5]: *** [phstuff.o] Error 1
> make[5]: Leaving directory
> `/f/root/build_host/freemint/tools/cops/.compile_english'
> make[4]: *** [_stmp_english] Error 2
> make[4]: Leaving directory `/f/root/build_host/freemint/tools/cops'
> make[3]: *** [english] Error 2
> make[3]: Leaving directory `/f/root/build_host/freemint/tools/cops'
> make[2]: *** [all-targets] Error 1
> make[2]: Leaving directory `/f/root/build_host/freemint/tools/cops'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/f/root/build_host/freemint/tools'
> make: *** [all-recursive] Error 1
> The build failed
> root@washi:/root/build_host>
> 
> If anyone could lend any suggestions as to why this is wrong or how come
> nobody has fixed it yet or whether or not my system is to blame, I would
> appreciate it.

On second thoughts, here's a patch as there's the other issue of 'r' not
being defined.

Apply this instead to fix both problems.

Alan.



--=-lHK3yuTW+LFwsmyWub4P
Content-Disposition: attachment; filename=cops.patch
Content-Type: text/x-patch; name=cops.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit

Index: phstuff.c
===================================================================
RCS file: /mint/freemint/tools/cops/phstuff.c,v
retrieving revision 1.5
diff -u -r1.5 phstuff.c
--- phstuff.c	12 Mar 2006 08:39:08 -0000	1.5
+++ phstuff.c	1 Jun 2006 23:11:28 -0000
@@ -30,6 +30,8 @@
 
 #include <mint/ssystem.h>
 
+#include "cops_rsc.h"
+
 #include "phstuff.h"
 
 extern LONG	clear_cpu_caches( void );
@@ -146,9 +148,7 @@
 	/* Programm geladen? */
 	if (addr)
 	{
-		r = Ssystem(-1, 0,NULL);
-	
-		if (!r)
+		if (!Ssystem(-1, 0, NULL));
 		{
 			/* flush cpu caches */
 			Ssystem(S_FLUSHCACHE, addr, TDB_len);

--=-lHK3yuTW+LFwsmyWub4P--


