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

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



On Sat, 2011-02-12 at 00:59 -0800, WongCK wrote:
> > 
> > Checkout a fresh CVS again, and apply this large  patch.
> > 
> 
> 
> Woke up this morning and wondered if you should make a roll-up patch.
> And you did :-)
> 
> Here the results from it:
> 
> 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 ../k_exec.c -o k_exec.o
> ../k_exec.c: In function `sys_pexec':
> ../k_exec.c:180: parse error before `*'
> ../k_exec.c:213: `mkwait' undeclared (first use in this function)
> ../k_exec.c:213: (Each undeclared identifier is reported only once
> ../k_exec.c:213: for each function it appears in.)
> ../k_exec.c:216: `mkload' undeclared (first use in this function)
> ../k_exec.c:216: `mkgo' undeclared (first use in this function)
> ../k_exec.c:216: `mkfree' undeclared (first use in this function)
> ../k_exec.c:217: `mkname' undeclared (first use in this function)
> ../k_exec.c:221: `overlay' undeclared (first use in this function)
> ../k_exec.c:231: `thread' undeclared (first use in this function)
> ../k_exec.c:267: `flags' undeclared (first use in this function)
> ../k_exec.c:275: `mkbase' undeclared (first use in this function)
> ../k_exec.c:291: `ptrace' undeclared (first use in this function)
> ../k_exec.c:295: `localname' undeclared (first use in this function)
> ../k_exec.c:300: `env' undeclared (first use in this function)
> ../k_exec.c:313: `base' undeclared (first use in this function)
> ../k_exec.c:338: `xattr' undeclared (first use in this function)
> ../k_exec.c:389: `p' undeclared (first use in this function)
> ../k_exec.c:444: `aes_hack' undeclared (first use in this function)
> ../k_exec.c:583: `new_pid' undeclared (first use in this function)
> make[2]: *** [k_exec.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, attached.

Alan.
Index: sys/k_exec.c
===================================================================
RCS file: /mint/freemint/sys/k_exec.c,v
retrieving revision 1.45
diff -u -r1.45 k_exec.c
--- sys/k_exec.c	2 Jun 2010 20:24:58 -0000	1.45
+++ sys/k_exec.c	12 Feb 2011 09:24:07 -0000
@@ -174,9 +174,6 @@
 sys_pexec(short mode, const void *p1, const void *p2, const void *p3)
 {
 	union { const void *v; const char *cc; char *c; long l; } ptr_1, ptr_2, ptr_3;
-	ptr_1.v = p1;
-	ptr_2.v = p2;
-	ptr_3.v = p3;
 	MEMREGION *base;
 	MEMREGION *env = NULL;	/* assignment suppresses spurious warning */
 	struct proc *p = NULL;
@@ -197,6 +194,10 @@
 	int tail_offs = 1;
 # endif
 	TRACE(("Pexec mode:%d",mode));
+
+	ptr_1.v = p1;
+	ptr_2.v = p2;
+	ptr_3.v = p3;
 #if 0
 	{
 		struct proc *pr = get_curproc();