Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel compile errors after applying supermount patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bdika
n00b
n00b


Joined: 19 Mar 2006
Posts: 13
Location: London, Canada

PostPosted: Thu May 25, 2006 2:29 am    Post subject: kernel compile errors after applying supermount patch Reply with quote

Hi:

I tried to apply the supermount patch (it seemed to apply) but then my kernel would not compile. So I tried to remove the patch and now my kernel still will not compile after it gets to the following point:

quote
CC drivers/base/topology.o
LD drivers/base/built-in.o
CC drivers/block/floppy.o
LD drivers/block/built-in.o
CC drivers/cdrom/cdrom.o
drivers/cdrom/cdrom.c: In function `cdrom_open':
drivers/cdrom/cdrom.c:1007: error: too few arguments to function `open_for_data'
make[2]: *** [drivers/cdrom/cdrom.o] Error 1
make[1]: *** [drivers/cdrom] Error 2
make: *** [drivers] Error 2
quote

and then exits to the shell prompt.

Does anyone know what I can do to fix this so that I can compile my kernel again? I'm a gentoo and kernel noob.

Secondly, is there a recommeded patch for supermount. I tried 2 different patches. Then my kernel wouldn't compile. I tried to remove the patches by answering yes to the question

quote
Reversed (or previously applied) patch detected! Assume -R? [n] y
quote

But now I get the above drivers errors and so cannot compile my kernel at all.

I'd like to stick with gentoo, so any help would be much appreciated

Regards,
Bill Dika
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1507
Location: Earth

PostPosted: Thu May 25, 2006 2:46 am    Post subject: Re: kernel compile errors after applying supermount patch Reply with quote

bdika wrote:
Hi:

I tried to apply the supermount patch (it seemed to apply) but then my kernel would not compile. So I tried to remove the patch and now my kernel still will not compile after it gets to the following point:

quote
CC drivers/base/topology.o
LD drivers/base/built-in.o
CC drivers/block/floppy.o
LD drivers/block/built-in.o
CC drivers/cdrom/cdrom.o
drivers/cdrom/cdrom.c: In function `cdrom_open':
drivers/cdrom/cdrom.c:1007: error: too few arguments to function `open_for_data'
make[2]: *** [drivers/cdrom/cdrom.o] Error 1
make[1]: *** [drivers/cdrom] Error 2
make: *** [drivers] Error 2
quote

and then exits to the shell prompt.

Does anyone know what I can do to fix this so that I can compile my kernel again? I'm a gentoo and kernel noob.

Secondly, is there a recommeded patch for supermount. I tried 2 different patches. Then my kernel wouldn't compile. I tried to remove the patches by answering yes to the question

quote
Reversed (or previously applied) patch detected! Assume -R? [n] y

quote

But now I get the above drivers errors and so cannot compile my kernel at all.

I'd like to stick with gentoo, so any help would be much appreciated

Regards,
Bill Dika


hallo,

SUPERMOUNT is deprecated!

CooSee ' Ya
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Thu May 25, 2006 3:17 am    Post subject: Reply with quote

Hello,

To get the kernel back to it's original state, emerge the kernel sources package again and the patch will be undone. Then:
Code:
make clean && make && make modules_install


CooSee is right about supermount being deprecated. There are better options for automounting removable media. If you're using Gnome, the combination of hal, gnome-volume-manager and (depending on Gnome version) gnome-mount or pmount should do it. There's also hal+ivman. Search the forums a bit, you should find plenty of info on this subject.
Back to top
View user's profile Send private message
bdika
n00b
n00b


Joined: 19 Mar 2006
Posts: 13
Location: London, Canada

PostPosted: Fri May 26, 2006 12:13 am    Post subject: Reply with quote

Thanks guys. My kernel is back to normal. I'll try searching the forums to see if I can find some simple instructions.

Regards,
Bill Dika
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum