[BusyBox] Problem compiling 0.60.1...external code required!?!

Charles Steinkuehler charles at steinkuehler.net
Fri Oct 19 09:09:10 UTC 2001


I'm trying to compile busybox 0.60.1, but running into a problem.  I need to
use the insmod applet, but when I compile with the modutilities enabled, I
get the following error:

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 (simply adding it to the end of the
above gcc command), 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.  Target system is LRP based, with the same
libc5 libraries and 2.2.19 kernel.

Busybox Config snippit:

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








More information about the busybox mailing list