OpenVINOTM,给你看得见的未来!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » 加入insmod功能后编译不过,求助!

共1条 1/1 1 跳转至

加入insmod功能后编译不过,求助!

菜鸟
2005-10-09 07:04:00    评分

我在make menuconfig的时候加入了insmod、rmmod和lsmod命令,但是在编译内核的时候出错,内核版本是2.4.x的,busybox_0_60_0,出现的错误提示如下,希望各位大侠帮忙看看,指点一下。看看如何解决,谢谢。


applets. In function `show_usage':
applets.c:59: undefined reference to `insmod_main'
applets. In function `applet_name_compare':
applets.c:63: undefined reference to `lsmod_main'
applets. In function `find_applet_by_name':
applets.c:76: undefined reference to `rmmod_main'
arm-linux-strip: busybox.exe.elf: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [busybox] Error 1
make[2]: Leaving directory `/cygdrive/c/linux-S3C2410/user/busybox-0.60.5'
make[1]: *** [busybox] Error 2
make[1]: Leaving directory `/cygdrive/c/linux-S3C2410/user'
make: *** [user_only] Error 2

提示中涉及的applets.c文件的部分内容如下
extern void show_usage(void)
{
const char *format_string;
const char *usage_string = usage_messages;
int i;
for (i = applet_using - applets; i > 0; ) {
if (!*usage_string++) {
--i;
}
}
format_string = "%s\n\nUsage: %s %s\n\n";
if(*usage_string == 0)
format_string = "%s\n\nNo help available.\n\n";
fprintf(stderr, format_string,
full_version, applet_using->name, usage_string);
exit(EXIT_FAILURE);
}


static int applet_name_compare(const void *x, const void *y)
{
const char *name = x;
const struct BB_applet *applet = y;
return strcmp(name, applet->name);
}

struct BB_applet *find_applet_by_name(const char *name)
{
return bsearch(name, applets, NUM_APPLETS, sizeof(struct BB_applet),
applet_name_compare);
}




关键词: 加入     insmod     功能     编译     不过     求助     app    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]