Re: Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn')

Mike Castle
2001-08-21T14:53:36Z

On Mon, Aug 20, 2001 at 12:19:49AM +0200, Kai Germaschewski wrote:
> On Sun, 19 Aug 2001, Chris Oxenreider wrote:
>
> > depmod: *** Unresolved symbols in
> > /lib/modules/2.4.9/kernel/drivers/isdn/eicon/eicon.o
> > depmod: vsnprintf
>
> This patch should fix it:

Hmmm... with that patch, I get the following errors:

make[2]: Entering directory `/usr/src/linux/linux-2.4.9/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/linux-2.4.9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i586 -DEXPORT_SYMTAB -c ksyms.c
ksyms.c:461: `snprintf' undeclared here (not in a function)
ksyms.c:461: initializer element is not constant
ksyms.c:461: (near initialization for `__ksymtab_snprintf.value')
ksyms.c:462: `vsnprintf' undeclared here (not in a function)
ksyms.c:462: initializer element is not constant
ksyms.c:462: (near initialization for `__ksymtab_vsnprintf.value')
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux/linux-2.4.9/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/linux-2.4.9/kernel'
make: *** [_dir_kernel] Error 2

Do I have an out of date tool?
mrc

>
> diff -u linux-2.4.9/kernel/ksyms.c linux-2.4.9.work/kernel/ksyms.c
> --- linux-2.4.9/kernel/ksyms.c Fri Aug 17 09:57:12 2001
> +++ linux-2.4.9.work/kernel/ksyms.c Mon Aug 20 00:16:58 2001
> @@ -458,6 +458,8 @@
> EXPORT_SYMBOL(printk);
> EXPORT_SYMBOL(sprintf);
> EXPORT_SYMBOL(vsprintf);
> +EXPORT_SYMBOL(snprintf);
> +EXPORT_SYMBOL(vsnprintf);
> EXPORT_SYMBOL(kdevname);
> EXPORT_SYMBOL(bdevname);
> EXPORT_SYMBOL(cdevname);