2.6.31 for Debian 5/Lenny
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.
Thanks for your promptly suggestion! I had few minutes ago the same problem.
P.S. It’s really good, that Google is such rapid
Comment by Andrey — September 10, 2009 @ 15:35:40
Yes. Thank you. I was also trying to upgrade my Lenny to 2.6.31 today and ran across this.
Comment by srw — September 11, 2009 @ 2:20:57
thanks!!
Comment by shupeng — September 11, 2009 @ 10:50:41
Same here, same solution – for German Users : http://www.coresec.de/2009/09/debian-upgrade-kernel-2-6-31/
PINGBACK
Comment by Florian Strankowski — September 11, 2009 @ 15:21:44
thanks for workaround ….
but in Documentation/Changes of [kernel source], minimum requirement of libc is fullfilled then why this error occurs ?
Isn’t it a bug ??
Comment by Rooparam Choudhary — September 14, 2009 @ 4:02:34
I just ran into this last night. Searched google and landed up right here. Thanks
Comment by Ganesan Rajagopal — September 14, 2009 @ 5:20:29
Not really a bug imho since it doesn’t affect the kernel itself but only one of the accompanying tools.
Comment by Nagilum — September 14, 2009 @ 18:15:04
thanks! exactly the same problem.
Comment by netanel_h — September 15, 2009 @ 13:21:25
When you’re on a 675Mhz duron machine and the kernel compile has gone for more than two hours, this kind of error is unacceptable! Compiled, went to bed, woke up to see the error. Hope i can join the jolly men and say that this fixed my problem aswell.
Comment by user101 — September 18, 2009 @ 11:58:14
You’ve obviously never run any of the BSD’s in the older days.. A “make world” could easily take a week
.
Anyway make should make good use of what you’ve already build and save you from having wasted most of that time.
Comment by Nagilum — September 18, 2009 @ 12:24:00
Thanks!
Comment by Nicolas — September 21, 2009 @ 13:16:49
Nagilum’s, thanks so much for this solution! I build and rebuild this 5 times on a dual pentium 3 and it took me over 20 hours so far. I usually started from scratch thinking it was my fault.
But now I just start from this line.
fakeroot make-kpkg –initrd –append-to-version=-custom-2.6.31 kernel_image kernel_headers
You said this “Anyway make should make good use of what you’ve already build and save you from having wasted most of that time.” and I noticed I don’t need to start from scratch each time thanks. This saves my life and my time! I want my 20 plus hours back.
As a side note you should install “zlib1g-dev” like this “aptitude install zlib1g-dev” for others beginners because my kernel building failed without it.
Thanks, Lindylex
Comment by lindylex — September 25, 2009 @ 23:13:44
Hi!
Good morning!
Nagilum, thanks for your promptly suggestion!
–
Eder Jordan – ederjordan@yahoo.com.br
Juiz de Fora / MG / Brazil
Debian GNU/Linux 5.0.3 – Lenny – Stable – i386
Comment by Eder Jordan — October 1, 2009 @ 16:28:22
+1 thanks. Obviously a lot of testing now occurs, prior to kernel releases… NOT! It doesn’t even compile under one of the most popular distros! Then again I don’t volunteer my services as a kernel tester so I get of my soap box and shut up
Comment by benno — October 11, 2009 @ 9:42:51
Turns out there is a even simpler solution:
Below “Virtualization” unselect “Linux hypervisor example code” or if you need lguest you can also fix the compilation error by removing “#include <sys /eventfd.h>” (line 21) from lguest.c.
Comment by Nagilum — October 28, 2009 @ 16:22:58
Thanks for your help.. help me a lot.. we have been trying compiled all day long, and stuch ini these error, but came with your solution..
Comment by Irvan Adrian — November 4, 2009 @ 21:39:54
Thanks alot!
Comment by Sudakov Vladimir — December 15, 2009 @ 15:06:19
Thank’s a lot. Happy 2010 !
Comment by Hanns — December 31, 2009 @ 3:25:40
Thanks a million! It was really helpful!
Comment by Catalin Arseni — February 1, 2010 @ 2:00:20
Спасибо Огромное!!!
Ваш совет реально помог!!!
Tnx a lot!!!!
Comment by Feraless — February 12, 2010 @ 19:34:12
Ty for this fine cookie!
Comment by Frederick van Etten — February 24, 2010 @ 11:01:38
[...] via 2.6.31 for Debian 5/Lenny | Nagilum’s Cookie Jar. [...]
Pingback by Rambles of Ev » Blog Archive » Kernel Upgrade For Debian >= Etch — March 4, 2010 @ 4:55:34
Спасибо афтуру за хороший пост. Внимательно прочел, почерпнул много важного для себя.
Comment by Vladislav3 — March 10, 2010 @ 21:47:51
Wow, just in time – I had this problem today and found this solution via Google. Thanks for posting it!
Comment by Josh — March 12, 2010 @ 21:10:32
Fantastic. Thanks for the work around, I had the same problem on a EPIA-M, after over 6 hours compiling kernel 2.6.31.13 (really should learn how to cross-compile)
Comment by fraz — May 18, 2010 @ 10:50:23
thank you very much! you are great! it is working perfect.
Comment by Helmik — June 1, 2010 @ 16:01:59