[PATCH] Re: 2.4.8 compile error on sparc

Philipp Matthias Hahn (pmhahn@titan.lahn.de)
Mon, 13 Aug 2001 08:27:22 +0200 (CEST)


On Sun, 12 Aug 2001, Gregory Ade wrote:

> Hello. Just downloaded linux-2.4.8.tar.bz2 and tried to build it on my
> SPARCstation 5 running SuSE Linux 7.1 for sparc.
...
> extable.c:60: `modlist_lock' undeclared (first use in this function)
> make[2]: Leaving directory `/usr/src/linux-2.4.8/arch/sparc/mm'

Apply this patch which is from sparc64:

--- linux-2.4.8/arch/sparc/mm/extable.c~ Fri Aug 10 19:57:54 2001
+++ linux-2.4.8/arch/sparc/mm/extable.c Mon Aug 13 08:22:54 2001
@@ -43,6 +43,8 @@
return 0;
}

+extern spinlock_t modlist_lock;
+
unsigned long
search_exception_table(unsigned long addr, unsigned long *g2)
{

After that I still get undefined .udiv/.umul symbols from depmod? Somebody
said it was a bug in depmod, but I hadn't had the time to check if it
boots.

BYtE
Philipp

-- 
  / /  (_)__  __ ____  __ Philipp Hahn
 / /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ pmhahn@titan.lahn.de

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/