LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-15-2004, 01:39 AM   #1
gstasica
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Rep: Reputation: 0
Flaw in kernel 2.4.26


Hi,

I'm trying to compile the kernel on my own. After some preparations (reading guides, downloading kernel source from kernel.org and so on) I'm trying to do this. The problem is that after:
make menuconfig, make dep and mae bzImage the last command ends with error:
......
sched.c:804: error: conflicting types for `interruptible_sleep_on'
/usr/src/linux-2.4.26/include/linux/sched.h:600: error: previous declaration of
`interruptible_sleep_on'
sched.c:815: error: conflicting types for `interruptible_sleep_on_timeout'
/usr/src/linux-2.4.26/include/linux/sched.h:601: error: previous declaration of
`interruptible_sleep_on_timeout'
sched.c:828: error: conflicting types for `sleep_on'
/usr/src/linux-2.4.26/include/linux/sched.h:597: error: previous declaration of
`sleep_on'
sched.c:839: error: conflicting types for `sleep_on_timeout'
/usr/src/linux-2.4.26/include/linux/sched.h:598: error: previous declaration of
`sleep_on_timeout'
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.26/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.26/kernel'
make: *** [_dir_kernel] Error 2

Could anybody tell me what is wrong? Previously there were some errors steming from smp module but since I don't have 2 processor machine I just disabled this.

Rgs
 
Old 07-15-2004, 12:02 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 177Reputation: 177
"Previously there were some errors steming from smp module but since I don't have 2 processor machine I just disabled this."

"sched.c:804: error: conflicting types for `interruptible_sleep_on'
/usr/src/linux-2.4.26/include/linux/sched.h:600: error: previous declaration of
`interruptible_sleep_on'"


I think that "interruptible_sleep_on" is a parameter used by SMP. I think it means to specify how long a CPU waits when it is trying to interrupt another CPU and the other CPU does not respond. So my guess is that your problem is caused by your attempt to disable SMP. I think that you need to do some more work to finish disabling SMP.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 07-16-2004, 02:01 AM   #3
gstasica
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Interesting is that I'm not able to compile default configuration. I just can understand why I've problems with default configuration. I'm not the only one who tries to compile kernel 2.4.26. Where can I find another default config file for kernel 2.4.26 ?
 
Old 07-16-2004, 03:27 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 177Reputation: 177
"Where can I find another default config file for kernel 2.4.26 ?"

What distribution are you using and where (what file) did you get the default configuration that you are using?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libpng flaw rgiggs Slackware 4 08-06-2004 03:57 AM
Updates/Flaw KooPA Linux - Security 5 04-27-2004 09:35 AM
is there a patch for kernel flaw found in Debian ergo_sum Linux - Newbie 3 12-02-2003 11:15 AM
a flaw is just a flaw jamaso General 1 03-25-2003 06:45 AM
wu-ftpd :serious flaw anoop_chandran Linux - General 3 12-11-2001 02:36 AM


All times are GMT -5. The time now is 03:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration