|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我在make menuconfig的时候加入了insmod、rmmod和lsmod命令,但是在编译内核的时候出错,内核版本是2.4.x的
,busybox_0_60_0,出现的错误提示如下,希望各位大侠帮忙看看,指点一下。看看如何解决,谢谢。
applets.o: In function `show_usage':
applets.c:59: undefined reference to `insmod_main'
applets.o: In function `applet_name_compare':
applets.c:63: undefined reference to `lsmod_main'
applets.o: 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);
}
|
|