[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:50 -0800, WongCK wrote:
> >
> > O.k. another patch attached to address this.
> >
>
>
> Thanks.
> I applied the biosfs.patch.
> Error after that is.
>
> 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 -m68060 -Werror -mshort
> -g -O2 -fomit-frame-pointer -Wall -Wmissing-prototypes -Winline -Wshadow
> -Wpointer-arith -Wcast-qual -Werror -c ../block_IO.c -o block_IO.o
> cc1: warnings being treated as errors
> In file included from ../block_IO.c:180:
> ../xhdi.h:135: warning: declaration of `version' shadows global declaration
> ../block_IO.c: In function `bio_writeout':
> ../block_IO.c:807: parse error before `register'
> ../block_IO.c:814: `r' undeclared (first use in this function)
> ../block_IO.c:814: (Each undeclared identifier is reported only once
> ../block_IO.c:814: for each function it appears in.)
> ../block_IO.c:825: warning: control reaches end of non-void function
> ../block_IO.c: In function `bio_write':
> ../block_IO.c:848: warning: `r' might be used uninitialized in this function
> make[2]: *** [block_IO.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
Another.
Alan.
Index: sys/xhdi.h
===================================================================
RCS file: /mint/freemint/sys/xhdi.h,v
retrieving revision 1.3
diff -u -r1.3 xhdi.h
--- sys/xhdi.h 13 Jun 2001 20:21:35 -0000 1.3
+++ sys/xhdi.h 11 Feb 2011 15:03:19 -0000
@@ -132,7 +132,7 @@
long XHEject (ushort major, ushort minor, ushort do_eject, ushort key);
long XHDrvMap (void);
long XHInqDev (ushort bios_device, ushort *major, ushort *minor, ulong *start_sector, __BPB *bpb);
-long XHInqDriver (ushort bios_device, char *name, char *version, char *company, ushort *ahdi_version, ushort *maxIPL);
+long XHInqDriver (ushort bios_device, char *name, char *ver, char *company, ushort *ahdi_version, ushort *maxIPL);
long XHNewCookie (void *newcookie);
long XHReadWrite (ushort major, ushort minor, ushort rwflag, ulong recno, ushort count, void *buf);
long XHInqTarget2 (ushort major, ushort minor, ulong *block_size, ulong *device_flags, char *product_name, ushort stringlen);
Index: sys/block_IO.c
===================================================================
RCS file: /mint/freemint/sys/block_IO.c,v
retrieving revision 1.22.2.2
diff -u -r1.22.2.2 block_IO.c
--- sys/block_IO.c 10 Jan 2011 22:01:22 -0000 1.22.2.2
+++ sys/block_IO.c 11 Feb 2011 15:03:19 -0000
@@ -803,8 +803,10 @@
INLINE long
bio_writeout (DI *di, const void *buffer, ulong size, ulong sector)
{
- union { const void *cvb; void *b;} ptr; ptr.cvb = buffer;
register long r;
+ union { const void *cvb; void *b;} ptr;
+
+ ptr.cvb = buffer;
/* NASTY HACK, FIXME */
#ifdef FLOPPY_ROUTINES