LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-05-2004, 07:08 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 537

Rep: Reputation: 30
error compiling the kernel linux-2.6.5


hi,
I compiled kernel-2.6.5 for mandrake 10 after booting with this onethere
was error" fs type supermount not supported by kernel",i applyed the
patch-2.5.4-ck2.bz2 to add the support for supermount to the kernel.
i again configured the kernel but when started make bzImage these are errors wich was not bofore applying patch to the kernel:
CC arch/i386/mm/pageattr.o
LD arch/i386/mm/built-in.o
CC arch/i386/mach-default/setup.o
CC arch/i386/mach-default/topology.o
LD arch/i386/mach-default/built-in.o
CC kernel/sched.o
kernel/sched.c: In function `dequeue_task':
kernel/sched.c:195: error: structure has no member named `array'
kernel/sched.c: In function `enqueue_task':
kernel/sched.c:204: error: structure has no member named `array'
kernel/sched.c: In function `try_to_wake_up':
kernel/sched.c:565: error: structure has no member named `activated'
kernel/sched.c: In function `scheduler_tick':
kernel/sched.c:1226: warning: implicit declaration of function `wake_priority_sl
eeper'
kernel/sched.c:1228: warning: passing arg 1 of `rebalance_tick' makes pointer fr
om integer without a cast
kernel/sched.c:1228: warning: passing arg 2 of `rebalance_tick' makes integer fr
om pointer without a cast
kernel/sched.c:1228: error: too many arguments to function `rebalance_tick'
kernel/sched.c:1238: error: structure has no member named `array'
kernel/sched.c:1281: warning: passing arg 1 of `rebalance_tick' makes pointer fr
om integer without a cast
kernel/sched.c:1281: warning: passing arg 2 of `rebalance_tick' makes integer fr
om pointer without a cast
kernel/sched.c:1281: error: too many arguments to function `rebalance_tick'
kernel/sched.c: In function `schedule':
kernel/sched.c:1451: error: structure has no member named `activated'
kernel/sched.c:1454: error: structure has no member named `activated'
kernel/sched.c:1455: error: `ON_RUNQUEUE_WEIGHT' undeclared (first use in this f unction)
kernel/sched.c:1455: error: (Each undeclared identifier is reported only once
kernel/sched.c:1455: error: for each function it appears in.)
kernel/sched.c:1458: warning: passing arg 2 of `dequeue_task' from incompatible pointer type
kernel/sched.c:1459: warning: implicit declaration of function `recalc_task_prio '
kernel/sched.c:1460: warning: passing arg 2 of `enqueue_task' from incompatible pointer type
kernel/sched.c:1462: error: structure has no member named `activated'
kernel/sched.c:1468: error: structure has no member named `sleep_avg'
kernel/sched.c:1469: error: structure has no member named `sleep_avg'
kernel/sched.c:1470: error: structure has no member named `sleep_avg'
kernel/sched.c:1471: warning: implicit declaration of function `HIGH_CREDIT'
kernel/sched.c:1471: warning: implicit declaration of function `LOW_CREDIT'
kernel/sched.c:1472: error: structure has no member named `interactive_credit'
kernel/sched.c: In function `sched_init':
kernel/sched.c:2982: error: structure has no member named `cpu'
kernel/sched.c:2988: error: structure has no member named `array'
make[1]: *** [kernel/sched.o] Error 1
make: *** [kernel] Error 2
plz help me where is the error and how i can solve it.
 
Old 05-08-2004, 03:24 PM   #2
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Did you get any rejected hunks when you applied the patch?

find /usr/src/ -name *.rej
 
Old 05-12-2004, 08:13 PM   #3
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
reply

Hi,
thanks for reply i applied the another patch and the problem was solved.
 
Old 05-15-2004, 03:15 AM   #4
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Out of interest, where did you get your patch from? Do you still have the link?
 
Old 05-15-2004, 09:16 PM   #5
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
hi,
this is the link for the patch patch-2.6.5-LNX2.tar.gz :
http://warder.ath.cx:81/projects.php
but 'tar -xzvf patch-2.6.5-LNX2.tar.gz | patch -p1' did not worked for me so first i
decompressed the patch then i aplied the supermount patch.

Last edited by shams; 05-15-2004 at 09:18 PM.
 
Old 05-20-2004, 04:00 AM   #6
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
That patch works fine for me too! I will recommend it to others that have the same problem.
 
Old 05-24-2004, 05:44 PM   #7
ocarina_of_time
LQ Newbie
 
Registered: May 2004
Location: Salina, KS, United States
Distribution: Mandrake 10.0 Official
Posts: 21

Rep: Reputation: 15
supermount

Hello, I have been in linux for a little over a year. I have tried many different distros, and I think Mandrake is the one for me. I recently picked up Mandrake 10.0 Official. Anyway, I cannot for the life of me get a decent kernel compile going. EVERY time I try it, I get messed and I get a message about wrong fs type... something rather... not supported ... and something about supermount. I can't really tell you what it is, because it flys by the screen so fast. anyway. I tried the patches you suggested (both for Kernel 2.6.5, and 2.6.6). Neither one fixed my problem. This is really getting me mad. The ONLY reason I switched to linux, was to be able to compile my own kernel, specific for my machine. So far I have been unsuccessful. If you have any ideas about what I need to do PLEASE write back. Thanks.
 
Old 05-24-2004, 09:40 PM   #8
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
hi

hi,
for the supermount first i decompressed the patch then copied
the supermount patch to the kernel source directory then cd to
the kenrnel source directory and aplied with patch -p < supermount ....patch.
i am compiling the fs type for my mashine with yes not the module one i use ext3(y), to compile the kernel specific to one
mashine thats need to know more about that ,i still have this
problem.

 
Old 05-25-2004, 01:14 AM   #9
ocarina_of_time
LQ Newbie
 
Registered: May 2004
Location: Salina, KS, United States
Distribution: Mandrake 10.0 Official
Posts: 21

Rep: Reputation: 15
Getting Closer

Thanks for your help. I haven't been exactly successful with that patch yet. I read the instructions from the site. It just said to use the included .sh file. I did that, recompiled and installed, but then I couldn't even get into a command prompt. I didn't even get to see the modules loading, it freezes right away. I also tried to do it your way, I put the patch in /usr/src/, then ran "patch -p < supermount-2.0.4-2.6.6.patch" but then it said "patch: option requires an argument -- p" I have no clue about that. Also, I was also wondering if you could explain the difference between -p, -p0, and -p1. I read a lot of stuff about patches... But it just seemed like everyone thought it was so straight foreward, that it didn't even need explaining. Let me know what you think. I am pretty close to getting this to work. I don't want to stop now! Thanks for your help.
 
Old 05-25-2004, 09:44 PM   #10
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
hi,
try patch -p1 < .. ,the patch tar ball contains patches for supermount and qca-usb something like taht so it will work if we try to patch the sopermount fitst then if one want can
patch others.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux 2.4 Kernel Compiling Error: no rule to made head.o KneeLess Linux - General 2 10-03-2005 09:54 PM
Compiling Linux Kernel - VFS error. Help. sceadu Red Hat 1 03-14-2005 08:42 AM
Error while compiling Linux 2.6.5-7 Kernel Kizio Linux - Software 4 12-13-2004 08:45 PM
Error Compiling Kernel kurin Linux - Software 1 12-01-2004 04:08 PM
Error compiling Module in Linux kernel iannou Linux - Software 1 06-27-2003 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration