[BusyBox] Problems compiling module code for 2.6

Dirk Behme dirk.behme at de.bosch.com
Mon Feb 9 14:18:43 UTC 2004


Hello,

I try to compilie busybox for a 2.6.1 arm kernel (gcc 3.3.1, glibc 
2.3.2). Compiling the 2.6 module code I get:

./libbb/libbb.a(qmodule.o)(.text+0x28): In function `my_query_module':
: undefined reference to `query_module'
./libbb/libbb.a(qmodule.o)(.text+0x70): In function `my_query_module':
: undefined reference to `query_module'

The part of the configuration file

#
# Linux Module Utilities
#
CONFIG_INSMOD=y
# CONFIG_FEATURE_2_2_MODULES is not set
# CONFIG_FEATURE_2_4_MODULES is not set
CONFIG_FEATURE_2_6_MODULES=y
CONFIG_LSMOD=y
# CONFIG_FEATURE_QUERY_MODULE_INTERFACE is not set
CONFIG_MODPROBE=y
CONFIG_RMMOD=y
CONFIG_FEATURE_CHECK_TAINTED_MODULE=y

Any ideas?

As a quick hack I used

#define query_module(v, w, x, y, z) -1

//extern int query_module(const char *name, int which, void *buf, size_t 
bufsize, size_t *ret);

in qmodule.c. But this isn't correct, right?

Dirk





More information about the busybox mailing list