* Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn')
@ 2001-08-19 19:38 Chris Oxenreider
2001-08-19 22:19 ` Kai Germaschewski
0 siblings, 1 reply; 7+ messages in thread
From: Chris Oxenreider @ 2001-08-19 19:38 UTC (permalink / raw)
To: linux-kernel
Help.
On a freshly installed system using a version of Mandrake 8.0 from the
free 'iso' images on the linux-mandrake sight this is what happens:
cd /usr/src
# remove the link in /usr/src
rm linux
bzip2 -dc /tmp/linux-2.4.9.tar.bz2|tar xvf -
chown -R root.root linux
mv linux linux-2.4.9
ln -s linux-2.4.9 linux
cd linux-2.4.9
cp /boot/config-2.4.3-20mdk .config
echo Take default answers to all:
make oldconfig
make dep ; echo made Dependancies && \
make clean ; echo made clean && \
make bzImage ; echo made bzImage && \
make modules
make modules_install
when installing modules this error is generated:
---Lots of other compiler messages---
make[1]: Leaving directory `/usr/src/linux-2.4.9/arch/i386/lib'
cd /lib/modules/2.4.9; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.9; fi
depmod: *** Unresolved symbols in
/lib/modules/2.4.9/kernel/drivers/isdn/eicon/divas.o
depmod: vsnprintf
depmod: *** Unresolved symbols in
/lib/modules/2.4.9/kernel/drivers/isdn/eicon/eicon.o
depmod: vsnprintf
[root@odin linux-2.4.9]#
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') 2001-08-19 19:38 Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') Chris Oxenreider @ 2001-08-19 22:19 ` Kai Germaschewski 2001-08-21 14:53 ` Mike Castle 0 siblings, 1 reply; 7+ messages in thread From: Kai Germaschewski @ 2001-08-19 22:19 UTC (permalink / raw) To: Chris Oxenreider; +Cc: linux-kernel 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: 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); --Kai ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') 2001-08-19 22:19 ` Kai Germaschewski @ 2001-08-21 14:53 ` Mike Castle 2001-08-21 15:47 ` Kai Germaschewski 0 siblings, 1 reply; 7+ messages in thread From: Mike Castle @ 2001-08-21 14:53 UTC (permalink / raw) To: linux-kernel 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); -- Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') 2001-08-21 14:53 ` Mike Castle @ 2001-08-21 15:47 ` Kai Germaschewski 2001-08-21 16:20 ` Mike Castle 0 siblings, 1 reply; 7+ messages in thread From: Kai Germaschewski @ 2001-08-21 15:47 UTC (permalink / raw) To: Mike Castle; +Cc: linux-kernel 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); ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') 2001-08-21 15:47 ` Kai Germaschewski @ 2001-08-21 16:20 ` Mike Castle 2001-08-21 18:09 ` Mike Castle 2001-08-22 2:39 ` Mike Castle 0 siblings, 2 replies; 7+ messages in thread From: Mike Castle @ 2001-08-21 16:20 UTC (permalink / raw) To: linux-kernel On Tue, Aug 21, 2001 at 05:47:01PM +0200, Kai Germaschewski wrote: > Well, I said should ;-) Maybe I should have tried... > > Next try: (still untested) Closer. Had to add #include <linux/types.h> to the header file too. Thanks! mrc -- Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') 2001-08-21 16:20 ` Mike Castle @ 2001-08-21 18:09 ` Mike Castle 2001-08-22 2:39 ` Mike Castle 1 sibling, 0 replies; 7+ messages in thread From: Mike Castle @ 2001-08-21 18:09 UTC (permalink / raw) To: linux-kernel; +Cc: Mike Castle On Tue, Aug 21, 2001 at 09:20:20AM -0700, Mike Castle wrote: > Closer. > > Had to add #include <linux/types.h> to the header file too. Still compiling (only a P5/233). But looks promising. mrc -- Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') 2001-08-21 16:20 ` Mike Castle 2001-08-21 18:09 ` Mike Castle @ 2001-08-22 2:39 ` Mike Castle 1 sibling, 0 replies; 7+ messages in thread From: Mike Castle @ 2001-08-22 2:39 UTC (permalink / raw) To: linux-kernel On Tue, Aug 21, 2001 at 09:20:20AM -0700, Mike Castle wrote: > On Tue, Aug 21, 2001 at 05:47:01PM +0200, Kai Germaschewski wrote: > > Well, I said should ;-) Maybe I should have tried... > > > > Next try: (still untested) > > Closer. > > Had to add #include <linux/types.h> to the header file too. That finally worked. Yay. mrc -- Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-08-22 2:39 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-08-19 19:38 Kernel 2.4.9 build fails on Mandrake 8.0 ( make modules_install 'isdn') Chris Oxenreider 2001-08-19 22:19 ` Kai Germaschewski 2001-08-21 14:53 ` Mike Castle 2001-08-21 15:47 ` Kai Germaschewski 2001-08-21 16:20 ` Mike Castle 2001-08-21 18:09 ` Mike Castle 2001-08-22 2:39 ` Mike Castle
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox