|
Home > Archive > Red Hat Topics > September 2004 > Help compiling kernel modules in Fedora C1
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Help compiling kernel modules in Fedora C1
|
|
| Andrew Falanga 2004-09-15, 11:11 am |
| Hi,
Yes, I do know that C1 is a little old. However, my attempts to install
C2 have as yet proved unsuccessful (I need a new CD-ROM drive). In any
event, I have to compile a new kernel because I need to have the option
set, in the SCSI config, to probe all LUN's on each device (or whatever
it is).
The kernel compiles ok, however, whenever I go to compile the modules
make bombs with thousands of errors. Problems inappropriate
declarations of variables, variables not being declared (but used),
functions being perceived as arguments to other functions, and
eventually the compiler has just had enough and dies.
These problems are with header files and source code. Files regarding
the file system, memory managment, device drivers, etc. The basic
question is, what's the magic chant one must sing in Fedora C1 to
compile modules. (By the way, I get the same problem with C2 at work.)
In all cases, here's the process I'm using to make a new kernel.
1) Edit Makefile to give some sort of identifier for my kernel apart
form the stock kernel.
2) make clean
3) make xconfig
4) make dep
5) make bzImage
6) make modules
7) wished I could get here, but can't get past 6
Any help would be greatly appreciated.
Andy
-----= Posted via webservertalk.com, Uncensored Usenet News =-----
http://www.webservertalk.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
| |
| Timothy Murphy 2004-09-15, 11:11 am |
| Andrew Falanga wrote:
> In all cases, here's the process I'm using to make a new kernel.
>
> 1) Edit Makefile to give some sort of identifier for my kernel apart
> form the stock kernel.
> 2) make clean
> 3) make xconfig
> 4) make dep
> 5) make bzImage
> 6) make modules
> 7) wished I could get here, but can't get past 6
>
> Any help would be greatly appreciated.
(1) It's not clear what you have done in (1).
I would omit this step if you possibly can.
(You could get a more recent kernel source from www.kernel.org ,
or apply one of the "testing" patches.)
(2) Perhaps you should say "make distclean" or "make mrproper" at step (2).
(3) You don't say what kernel you are talking about.
If it is 2.6.* you don't need to say "make dep".
(4) Personally, I say "make oldconfig xconfig".
It can't do any harm, and may do some good.
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
| |
| Andrew Falanga 2004-09-15, 11:11 am |
| Timothy Murphy wrote:
> Andrew Falanga wrote:
>
>
>
>
> (1) It's not clear what you have done in (1).
> I would omit this step if you possibly can.
> (You could get a more recent kernel source from www.kernel.org ,
> or apply one of the "testing" patches.)
>
> (2) Perhaps you should say "make distclean" or "make mrproper" at step (2).
>
> (3) You don't say what kernel you are talking about.
> If it is 2.6.* you don't need to say "make dep".
>
> (4) Personally, I say "make oldconfig xconfig".
> It can't do any harm, and may do some good.
>
I'm running the 2.4 kernel. I'll give these things a shot. Thanks for
the suggestions. If I run in to more problems, I'll repost.
Andy
-----= Posted via webservertalk.com, Uncensored Usenet News =-----
http://www.webservertalk.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
| |
| David Bailey 2004-09-15, 11:11 am |
| On Sun, 29 Aug 2004 19:18:14 -0600, Andrew Falanga wrote:
> Hi,
>
> Yes, I do know that C1 is a little old. However, my attempts to install
> C2 have as yet proved unsuccessful (I need a new CD-ROM drive). In any
> event, I have to compile a new kernel because I need to have the option
> set, in the SCSI config, to probe all LUN's on each device (or whatever
> it is).
>
> The kernel compiles ok, however, whenever I go to compile the modules
> make bombs with thousands of errors. Problems inappropriate
> declarations of variables, variables not being declared (but used),
> functions being perceived as arguments to other functions, and
> eventually the compiler has just had enough and dies.
>
> These problems are with header files and source code. Files regarding
> the file system, memory managment, device drivers, etc. The basic
> question is, what's the magic chant one must sing in Fedora C1 to
> compile modules. (By the way, I get the same problem with C2 at work.)
>
> In all cases, here's the process I'm using to make a new kernel.
>
> 1) Edit Makefile to give some sort of identifier for my kernel apart
> form the stock kernel.
> 2) make clean
> 3) make xconfig
> 4) make dep
> 5) make bzImage
> 6) make modules
> 7) wished I could get here, but can't get past 6
>
> Any help would be greatly appreciated.
>
> Andy
Hi Andy,
I had a similar problem at one stage. I found I had to do a
make mrproper
before any of the other steps. Apparently this cleans things up and
prepares for compiling a new kernel. (I had never done this before, but
anyhow it worked. Actually, I've just tried it on my FC2 laptop and that
make option doesn't seem to exist)
If it is the same issue that I had, the errors it makes are completely
spurious and if you remove one area in the config file, it will find
another thing to complain about next time.
Hope that helps,
David
| |
| Nicholas Andrade 2004-09-15, 11:11 am |
| David Bailey wrote:
> On Sun, 29 Aug 2004 19:18:14 -0600, Andrew Falanga wrote:
>
>
>
>
>
> Hi Andy,
> I had a similar problem at one stage. I found I had to do a
> make mrproper
> before any of the other steps. Apparently this cleans things up and
> prepares for compiling a new kernel. (I had never done this before, but
> anyhow it worked. Actually, I've just tried it on my FC2 laptop and that
> make option doesn't seem to exist)
>
I don't believe 2.6 requires make mrproper any more.
> If it is the same issue that I had, the errors it makes are completely
> spurious and if you remove one area in the config file, it will find
> another thing to complain about next time.
>
> Hope that helps,
> David
This walkthrough is pretty good:
http://www.digitalhermit.com/linux/...uild-HOWTO.html
|
|
|
|
|