[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] almost there..... Newbie trying to compile Mint v1.17...



On Fri, 2011-02-11 at 06:33 -0800, WongCK wrote:
> Ok, the latest patch works until another error:
> 
> make buildkernel kernel=060
> make[1]: Entering directory `/e/dev/freemint-1_17_0/sys'
> Making all in arch
> make[2]: Entering directory `/e/dev/freemint-1_17_0/sys/arch'
> Making all in magic
> make[3]: Entering directory `/e/dev/freemint-1_17_0/sys/arch/magic'
> make[3]: Leaving directory `/e/dev/freemint-1_17_0/sys/arch/magic'
> cd .compile_060; make all
> make[3]: Entering directory `/e/dev/freemint-1_17_0/sys/arch/.compile_060'
> make[3]: Leaving directory `/e/dev/freemint-1_17_0/sys/arch/.compile_060'
> make[2]: Leaving directory `/e/dev/freemint-1_17_0/sys/arch'
> Making all in buildinfo
> make[2]: Entering directory `/e/dev/freemint-1_17_0/sys/buildinfo'
> make[2]: Leaving directory `/e/dev/freemint-1_17_0/sys/buildinfo'
> cd .compile_060; make all
> make[2]: Entering directory `/e/dev/freemint-1_17_0/sys/.compile_060'
> gcc -I.. -D__KERNEL__ -DLANG_ENGLISH -DVERBOSE_BOOT -DWITH_SINGLE_TASK_SUPPORT 
> -DCRYPTO_CODE -DSOFT_UNITABLE -DBUILTIN_SHELL -DM68060 -Werror -mshort -g -O2 
> -fomit-frame-pointer -Wall -Wmissing-prototypes -Winline -Wshadow 
> -Wpointer-arith -Wcast-qual -Werror -m68000 -c ../biosfs.c -o biosfs.o
> ../biosfs.c: In function `bios_twrite':
> ../biosfs.c:1291: parse error before `long'
> ../biosfs.c:1296: `r' undeclared (first use in this function)
> ../biosfs.c:1296: (Each undeclared identifier is reported only once
> ../biosfs.c:1296: for each function it appears in.)
> ../biosfs.c:1304: `bdev' undeclared (first use in this function)
> ../biosfs.c:1317: `ret' undeclared (first use in this function)
> ../biosfs.c:1335: `b' undeclared (first use in this function)
> cc1: warnings being treated as errors
> ../biosfs.c:1340: warning: control reaches end of non-void function
> make[2]: *** [biosfs.o] Error 1
> make[2]: Leaving directory `/e/dev/freemint-1_17_0/sys/.compile_060'
> make[1]: *** [_stmp_060] Error 2
> make[1]: Leaving directory `/e/dev/freemint-1_17_0/sys'
> make: *** [060] Error 2

O.k. another patch attached to address this.

Alan.
Index: sys/biosfs.c
===================================================================
RCS file: /mint/freemint/sys/biosfs.c,v
retrieving revision 1.28
diff -u -r1.28 biosfs.c
--- sys/biosfs.c	13 Jan 2010 17:13:49 -0000	1.28
+++ sys/biosfs.c	11 Feb 2011 14:43:22 -0000
@@ -1287,11 +1287,13 @@
 static long _cdecl
 bios_twrite (FILEPTR *f, const char *buf, long bytes)
 {
-	union { const char *b; long *l;} ptr; ptr.b = buf;
 	long *r;
 	long ret = 0;
 	int bdev = f->fc.aux;
 	struct bios_file *b = (struct bios_file *) f->fc.index;
+	union { const char *b; long *l;} ptr; 
+	
+	ptr.b = buf;
 
 	r = ptr.l;// (long *) buf;