Subject: port-amiga/5670: src/arch/sys/amiga/amiga/machdep.c can't be compiled
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 06/27/1998 13:13:40
>Number:         5670
>Category:       port-amiga
>Synopsis:       src/arch/sys/amiga/amiga/machdep.c can't be compiled
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 27 04:20:00 1998
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                                http://home.owl.de/~tron/
>Release:        980626
>Environment:
NetBSD sandra.owl.de 1.3F NetBSD 1.3F (SANDRA) #0: Sat Jun 27 01:49:13 MEST 1998     tron@sandra.owl.de:/src/src/sys/arch/amiga/compile/SANDRA amiga

>Description:
After the recent changes "machdep.c" on amiga can't be compiled due to two
conflicting external declarations of "end". I'm not 100% sure if my patch
does the right thing but the kernel works.

>How-To-Repeat:
cd /usr/src/sys/arch/amiga/conf
config GENERIC
cd ../compile/GENERIC
make depend all

>Fix:
--- src/sys/arch/amiga/amiga/machdep.c.orig	Tue Jun  9 11:43:24 1998
+++ src/sys/arch/amiga/amiga/machdep.c	Sat Jun 27 01:35:54 1998
@@ -715,7 +715,7 @@
 	int nblks;
 	int i;
 	extern u_int Sysseg_pa;
-	extern char end[];
+	extern int end;
 
 	bzero(&cpu_kcore_hdr, sizeof(cpu_kcore_hdr));
 
@@ -759,7 +759,7 @@
 	/*
 	 * Define the end of the relocatable range.
 	 */
-	m->relocend = (u_int32_t)end;
+	m->relocend = (u_int32_t)&end;
 
 	/* XXX new corefile format, single segment + chipmem */
 	dumpsize = physmem;
>Audit-Trail:
>Unformatted: