[BusyBox] Question about query_module /libc

arne @ loopback . org arne at matrix.loopback.org
Thu Sep 6 14:52:51 UTC 2001


On Thu, Sep 06, 2001 at 02:30:42PM -0600, Erik Andersen wrote:
> > i would like to use the bb module stuff (insmod...), but unfortunatly it
> > does not compile here when i activate it. This seems to be caused by the
> > libc i am using and its header files in /usr/include. I still use a Debian
> > slink system which has glibc-2.0.7 on it and this include the header files
> > from kernel 2.0. :(
> > And i remember my old experiences when accidently putting the header files
> > from the kernel there...
> > 
> > So any idea what i should do ??
> 
> For starters, disable BB_FEATURE_NEW_MODULE_INTERFACE and enable
> BB_FEATURE_OLD_MODULE_INTERFACE.  Then, send us a log of the error
> messages....

Well i forgot one thing , i want to use this with kernel 2.4.
if i disable the NEW_MODULE_INTERFACE everything compiles fine, but i cannot
load k2.4 modules. i just get a :
insmod: unresolved symbol __this_module

lsmod works ...


when i enable the NEW_MODULE_INTERFACE in Config.h i get a:

gcc -s -Wl,-warn-common -o busybox ash.o basename.o cat.o chgrp.o chmod.o
chown.o chroot.o chvt.o clear.o cmdedit.o cp.o cut.o date.o dd.o df.o dirname.o
dmesg.o du.o echo.o env.o find.o free.o grep.o gunzip.o gzip.o halt.o head.o id.o
 init.o insmod.o kill.o klogd.o ln.o logger.o ls.o lsmod.o mkdir.o mknod.o
mkswap.o modprobe.o more.o mount.o msh.o mv.o pidof.o poweroff.o ps.o pwd.o 
reboot.o reset.o rm.o rmdir.o rmmod.o sed.o sleep.o sort.o swaponoff.o sync.o 
syslogd.o tail.o tar.o touch.o true_false.o tty.o umount.o uname.o uniq.o uptime.o wc.o
which.owhoami.o xargs.o yes.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 	nsmod_main':
insmod.o(.text+0x2dc4): undefined reference to `query_module'
lsmod.o(.text+0x23): more undefined references to `query_module' follow
make: *** [busybox] Error 1        

some other warnings caused by the headers:
gcc -Wall -Wshadow -O2 -fomit-frame-pointer -D_GNU_SOURCE
-DBB_VER='"0.61.pre"' -DBB_BT='"2001.09.06-20:42+0000"' -DUSE_SYSTEM_PWD_GRP  -Ilibbb -c
libbb/syscal ls.c -o libbb/syscalls.o
libbb/syscalls.c:48: warning: #warning This kernel does not support the
pivot_root syscall
libbb/syscalls.c:49: warning: #warning -> The pivot_root system call is
being stubbed out...
libbb/syscalls.c:86: warning: #warning This kernel does not support the
umount2 syscall
libbb/syscalls.c:87: warning: #warning -> The umount2 system call is being
stubbed out...   




> 
>  -Erik
> 
> --
> Erik B. Andersen   email:  andersen at lineo.com
> --This message was written using 73% post-consumer electrons--

--arne 





More information about the busybox mailing list