On Sat, 19 Aug 2000 17:46:23 +0200,
Markus Pfeiffer <profmakx.fmp _at_ gmx.de> wrote:
>I幾e got compile probs with test6 on alpha: error message: assertion
>failed ksyms < 10000.
>Were the alpha users forgotten once again or what am i doing wrong??
depmod in modutils has a hard coded limit of 10000 symbols. This was
not a problem when reading symbols from /proc/ksyms, it is a potential
problem when reading from System.map after installing modules. Some
archs have extra symbols in System.map which blows depmod. The
modules_install code was changed in 2.4.0-test6.
DEPMOD=/bin/true make modules_install
will effectively skip the depmod processing or apply this patch against
modutils 2.3.15.
Index: 16.1/depmod/depmod.c
--- 16.1/depmod/depmod.c Sun, 13 Aug 2000 06:45:56 -0700 kaos (modutils-2.3/b/43_depmod.c 1.19 644)
+++ 16.1(w)/depmod/depmod.c Sat, 19 Aug 2000 03:22:33 -0700 kaos (modutils-2.3/b/43_depmod.c 1.19 644)
@@ -490,7 +490,7 @@
{
FILE *fp;
MODULE *mod = modules + n_modules++;
- SYMBOL *symtab[10000];
+ SYMBOL *symtab[100000];
struct module_symbol *ksym;
unsigned int so_far = 0;
int is_mapfile = 0;
@@ -565,7 +565,7 @@
continue;
p = strtok(NULL, " \t\n");
}
- assert(n_syms < 10000);
+ assert(n_syms < 100000);
symtab[n_syms++] = addsym(p, mod, SYM_DEFINED, 0);
}
fclose(fp);
@@ -574,7 +574,7 @@
return -1;
for (ksym = ksyms; so_far < nksyms; ++so_far, ksym++) {
- assert(n_syms < 10000);
+ assert(n_syms < 100000);
symtab[n_syms++] = addsym((char *)ksym->name, mod, SYM_DEFINED, 0);
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
Follow-Ups:
- Re: Compile problem on AlphaMo McKinlay <mmckinlay _at_ gnu.org>
- Re: Compile problem on AlphaIvan Kokshaysky <ink _at_ jurassic.park.msu.ru>
- Next by Date: Re: Compile problem on Alpha
- Next by thread: Re: Compile problem on Alpha
- Indexes:[Main][Thread]