Re: Help compiling kernel modules in Fedora C1

From: David Bailey (Newsgroups_at_bailey.id.au)
Date: 09/04/04


Date: Sat, 04 Sep 2004 17:00:09 +1000

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



Relevant Pages

  • Re: Distributions
    ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
    (Debian-User)
  • Re: Distributions
    ... Ubuntu is based on Debian, ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be larger ... and slower than if you compile those packages, ...
    (Debian-User)
  • Problems with custom kernel fbsd 6.2
    ... My kernel for freebsd 6.2 is not compiling but only with my custom config. ... I was able to compile it with the GENERIC kernel included, but my modified one will not compile. ... # Power management support ...
    (freebsd-questions)
  • Re: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
    ... >optimisations independently of each other', is fairly simple, (in ... >concept), and elegant, (as it lets you compile the most finely tuned ... >Up to now, selecting a CPU to compile for basically means, "Use ... it's silly to include them all in a kernel for a 386. ...
    (Linux-Kernel)
  • Re: C++ pushback
    ... There are all sorts of macros that use member initialization of that form. ... This does not break the code at run time, this breaks the code at compile time, and should be less painful. ... The kernel relies really _really_ heavily on such structure initializers, and breaking them would effectively break the world as far as the kernel is concerned. ... If they were not, one could simply make a base class having members outlined, and which class does not enforce type safety and is for inheritance only. ...
    (Linux-Kernel)