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

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

Post by Chris Oxenreide » Tue, 21 Aug 2001 04:50:05



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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

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

Post by Kai Germaschewsk » Tue, 21 Aug 2001 08:50:05



> 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

 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

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

Post by Kai Germaschewsk » Thu, 23 Aug 2001 00:50:11





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

 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

 EXPORT_SYMBOL(printk);
 EXPORT_SYMBOL(sprintf);
 EXPORT_SYMBOL(vsprintf);
+EXPORT_SYMBOL(snprintf);
+EXPORT_SYMBOL(vsnprintf);
 EXPORT_SYMBOL(kdevname);
 EXPORT_SYMBOL(bdevname);
 EXPORT_SYMBOL(cdevname);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

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

Post by Mike Castl » Thu, 23 Aug 2001 01:30:10



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

    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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Kernel 2.4.9 build fails on Mandrake 8.0


Yes, add above line to fs/ntfs/unistr.c and all is fine.

Anton

--
   "Nothing succeeds like success." - Alexandre Dumas
--

Linux NTFS Maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. 2.5 and rfc1323

3. Sparc-64 kernel build fails on version.h during 'make oldconf ig'

4. COLA Stats 11 May 2003

5. Sparc-64 kernel build fails on version.h during 'make oldconfig'

6. IDE drive not recognized by BIOS

7. SMP board (AMD 768) fails to initalise 64-bit PCI-irqs ('Probably buggy MP')

8. good linux reference book

9. Better 'trace' for SunOS 4.1.3 (like 'truss')?

10. GCC 3.1 build fails - '/usr/lib/sparcv9/values-Xa.o' missing

11. Strange NIC problem after 'make modules_install'

12. Subject: Unresolved symbols from 'make modules_install'

13. HD Boot doesn't want to run LILO (I see 'LI')