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

Kai Germaschewski
2001-08-21T15:47:21Z

On Tue, 21 Aug 2001, Mike Castle wrote:

> 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:

Well, I said should ;-) Maybe I should have tried...

Next try: (still untested)

--Kai

diff -ur linux-2.4.9/include/linux/kernel.h linux-2.4.9.work/include/linux/kernel.h
--- linux-2.4.9/include/linux/kernel.h Fri Aug 17 09:57:10 2001
+++ linux-2.4.9.work/include/linux/kernel.h Tue Aug 21 17:44:32 2001
@@ -61,6 +61,8 @@
extern long long simple_strtoll(const char *,char **,unsigned int);
extern int sprintf(char * buf, const char * fmt, ...);
extern int vsprintf(char *buf, const char *, va_list);
+extern int snprintf(char * buf, size_t size, const char * fmt, ...);
+extern int vsnprintf(char *buf, size_t size, const char *, va_list);
extern int get_option(char **str, int *pint);
extern char *get_options(char *str, int nints, int *ints);
extern unsigned long long memparse(char *ptr, char **retptr);
diff -ur 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);