红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

编译内核问题

发布时间:2010-08-15 07:24:32来源:红联作者:yeizhihui
第一次编译内核就出错了 在网上查了下解决办法
2.6.31 for Debian 5/Lenny
Filed under: Highpoint -- Nagilum @ 15:23:58

I just upgraded my Debian5 workstation to 2.6.31. While doing so I stumbled over this:

cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE lguest.c -o lguest
lguest.c:21:25: error: sys/eventfd.h: No such file or directory
lguest.c: In function ‘create_thread’:
lguest.c:1021: warning: implicit declaration of function ‘eventfd’
make: *** [lguest] Error 1

This is apparenty due to the old libc-dev package that Lenny comes with. Since libc isn’t exactly a good candidate for a selective upgrade I helped myself with simply editing Documentation/lguest/Makefile and changing:

all: lguest

to

all:

So lguest wont be build anymore. After that make-kpkg binary-arch worked as usual.
I’m also happy to report that my rr232x-linux patch still works on 2.6.31.
这个是出错信息和解决办法,出错信息和我的基本上相同,求他下面写的解决方法具体操作过程
文章评论

共有 4 条评论

  1. 王中云 于 2010-08-15 19:11:52发表:

    见识了

  2. yeizhihui 于 2010-08-15 11:47:10发表:

    好的 谢谢!!!

  3. shenhao0129 于 2010-08-15 10:41:19发表:

    后面的解决办法是手动修改 Documentation/lguest/Makefile 把all: lguest 这行修改为all:

  4. kbnsa 于 2010-08-15 08:49:44发表:

    路过