I need to upgrade to the 0.60.1 version of busybox to fix a problem with the
logger application, but I'm having some problems getting the insmod utility
to compile properly.  I get the following errors:

gcc -s -Wl,-warn-common -o busybox cat.o chgrp.o chmod.o chown.o chroot.o
clear.o cp.o date.o dd.o df.o dmesg.o dutmp.o fdflush.o find.o freeramdisk.o
grep.o gunzip.o gzip.o head.o hostname.o id.o insmod.o kill.o ln.o
loadkmap.o logger.o ls.o makedevs.o mkdir.o mknod.o more.o mount.o mv.o nc.o
ping.o printf.o ps.o pwd.o rdate.o rm.o rmdir.o rmmod.o sleep.o sort.o
stty.o swaponoff.o sync.o tail.o tar.o touch.o true_false.o umount.o
update.o which.o  busybox.o usage.o applets.o libbb.a
insmod.o: In function `new_get_kernel_symbols':
insmod.o(.text+0x1687): undefined reference to `query_module'
insmod.o(.text+0x1748): undefined reference to `query_module'
insmod.o(.text+0x179f): undefined reference to `query_module'
insmod.o(.text+0x185a): undefined reference to `query_module'
insmod.o: In function `insmod_main':
insmod.o(.text+0x2dc4): undefined reference to `query_module'
make: *** [busybox] Error 1

If I link with libutil.a from modutils, the error goes away (and busybox
insmod works properly), but there's no mention of having to link against
external code in any of the busybox documentation...

Does anyone know why this is happening?  I'm developing on a Debian Slink
system with a 2.2.19 kernel.  Busybox Config:

// Support insmod/lsmod/rmmod for post 2.1 kernels
#define BB_FEATURE_NEW_MODULE_INTERFACE
//
// Support insmod/lsmod/rmmod for pre 2.1 kernels
//#define BB_FEATURE_OLD_MODULE_INTERFACE
//
// Support module version checking
//#define BB_FEATURE_INSMOD_VERSION_CHECKING

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)



_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to