QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: bixuan

内核编译简法[转]

[复制链接]
发表于 2003-5-6 21:54:48 | 显示全部楼层
'make: wish: Command not found ' is the error.
install the package contains wish command or use make menuconfig.
回复

使用道具 举报

发表于 2003-5-7 19:59:32 | 显示全部楼层
i've solve the problem by your suggestion.thx
回复

使用道具 举报

发表于 2003-5-7 21:35:16 | 显示全部楼层
welcome
回复

使用道具 举报

发表于 2003-5-8 20:35:31 | 显示全部楼层
换make menuconfig试试
回复

使用道具 举报

发表于 2003-5-8 21:48:42 | 显示全部楼层
i downloaded a kernel(linux-2.5.69)and when i make xconfig  an error as following appeared:
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts] Error 2
how could i solve the problem????
回复

使用道具 举报

发表于 2003-5-8 22:08:23 | 显示全部楼层
PATH_MAX should be defined in u /usr/inlcude/linux/limits.h
check if u have thsi file, if not, then try to install needed header.
u can go /scripts/ and run gcc fixdep.c directly to see if u can compile it.
make sure u gcc is correctly installed.
回复

使用道具 举报

发表于 2003-5-10 08:22:29 | 显示全部楼层
when i run gcc fixdep.c,the result is
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 没有那个文件或目录
In file included from /usr/include/netinet/in.h:212,
                 from fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: 没有那个文件或目录
fixdep.c: In function `use_config':
fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
fixdep.c:193: (Each undeclared identifier is reported only once
fixdep.c:193: for each function it appears in.)
fixdep.c: In function `parse_dep_file':
fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
so,i think i really lack of some package ,but which package should i install??
回复

使用道具 举报

发表于 2003-5-10 11:06:13 | 显示全部楼层
My problem about the kernel(linux-2.5.69) under RH9 is:

The recompiled kernel can NOT load module when system starts. And when I execute lsmod, and insmod, always error, say GMODULE not implement. So frustrated.
By the way, battery works well with acpi, also cpu speed step and function key works well. I like this beta kernel, but does anyone know why?
回复

使用道具 举报

发表于 2003-5-10 18:39:37 | 显示全部楼层
when i make modules(linux-2.5.69),there is some thing wrong
drivers/char/riscom8.c:84: warning: type defaults to `int' in declaration of `DECLARE_TASK_QUEUE'
drivers/char/riscom8.c:84: warning: parameter names (without types) in function
declaration
drivers/char/riscom8.c:142: confused by earlier errors, bailing out
make[2]: *** [drivers/char/riscom8.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

why????
回复

使用道具 举报

发表于 2003-5-10 23:37:09 | 显示全部楼层
[quote:2abb268a85="jackyshow"]My problem about the kernel(linux-2.5.69) under RH9 is:

The recompiled kernel can NOT load module when system starts. And when I execute lsmod, and insmod, always error, say GMODULE not implement. So frustrated.
By the way, battery works well with acpi, also cpu speed step and function key works well. I like this beta kernel, but does anyone know why?[/quote]

check another post about 2.5.69. u need module-init-tool.
回复

使用道具 举报

发表于 2003-5-10 23:39:17 | 显示全部楼层
[quote:e798c4078d="linjiang_82"]when i run gcc fixdep.c,the result is
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 没有那个文件或目录
In file included from /usr/include/netinet/in.h:212,
                 from fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: 没有那个文件或目录
fixdep.c: In function `use_config':
fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
fixdep.c:193: (Each undeclared identifier is reported only once
fixdep.c:193: for each function it appears in.)
fixdep.c: In function `parse_dep_file':
fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
so,i think i really lack of some package ,but which package should i install??[/quote]

check if u really have that header file. i assume glibc should install it.
回复

使用道具 举报

发表于 2003-5-11 02:26:45 | 显示全部楼层
[quote:8a9ca3a9d8="linjiang_82"]when i make modules(linux-2.5.69),there is some thing wrong
drivers/char/riscom8.c:84: warning: type defaults to `int' in declaration of `DECLARE_TASK_QUEUE'
drivers/char/riscom8.c:84: warning: parameter names (without types) in function
declaration
drivers/char/riscom8.c:142: confused by earlier errors, bailing out
make[2]: *** [drivers/char/riscom8.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

why????[/quote]

do u need the riscom8 driver support? if not, deselect it. if u need it, try to use a lower kernel version like 2.5.38. i believe the riscom8 code is broken in 2.5.69. it needs taskqueue. but in 2.5.4x and later, the task queue is replaced by work queue. and no task queue anymore. of course u can change the riscom8.x code to let it use the work queue.
回复

使用道具 举报

发表于 2003-5-12 22:56:02 | 显示全部楼层
thx ,i'll try later
回复

使用道具 举报

发表于 2003-5-12 23:04:20 | 显示全部楼层
welcome
回复

使用道具 举报

发表于 2003-5-13 12:10:59 | 显示全部楼层
anybody knows why i cannot compile the modules?
(i got a lot of errors during "make modules" and "make modules_install")
and while i try to boot using the new kernel it says cannot load many modules... 5555 how?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-18 06:45 , Processed in 0.041363 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表