Find the answer to your Linux question:
Results 1 to 7 of 7
I need kernel sources to install a program and Im using fedora 6 it says I need sources for my 2.6.16 kernel....
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    32

    I need kernel sources

    I need kernel sources to install a program and Im using fedora 6 it says I need sources for my 2.6.16 kernel.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Hi,

    Here you can find how to install the kernel-source:

    Personal Fedora Core 5 Installation Guide

    Be aware to install the right version.

    Regards

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You need to install the kernel-devel package that matches the kernel you are running using yum.

  4. #4
    Just Joined!
    Join Date
    May 2007
    Posts
    32
    I did yum install kernel-devel and when I do the make it gives me this error now

    ke[1]: Entering directory `/usr/src/kernels/2.6.22.2-42.fc6-i686'
    CC [M] /home/a/cdemu-0.8/cdemu_mod.o
    /home/a/cdemu-0.8/cdemu_mod.c: In function ‘cdemu_exit’:
    /home/a/cdemu-0.8/cdemu_mod.c:198: error: too many arguments to function ‘invalidate_bdev’
    make[2]: *** [/home/a/cdemu-0.8/cdemu_mod.o] Error 1
    make[1]: *** [_module_/home/a/cdemu-0.8] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.22.2-42.fc6-i686'
    make: *** [default] Error 2

  5. #5
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    As mentioned above you must install the kernel source that matches with your kernel version.
    It seems that you are trying to install the wrong version. You can check your version with:

    uname -r

    Regards

  6. #6
    Just Joined!
    Join Date
    May 2007
    Posts
    32
    I installed kernel-2.6.22.2-42.fc6.src.rpm and I get this error now

    make[1]: Entering directory `/usr/src/kernels/2.6.22.2-42.fc6-i686'
    Building modules, stage 2.
    MODPOST 1 modules
    WARNING: "generic_file_read" [/home/a/cdemu-0.8/cdemu.ko] undefined!
    make[1]: Leaving directory `/usr/src/kernels/2.6.22.2-42.fc6-i686'

  7. #7
    Banned
    Join Date
    Aug 2007
    Posts
    4
    Check the /usr/src folder for the kernel source installed with the Fedora OS installation. Or else, you can install the rpm ***kernel***.rpm found in your Fedora DVD/CD. I've tried with my FC4-distro it worked

    Regards,
    Kiran. K
    Last edited by oz; 05-17-2010 at 08:09 PM. Reason: SPAM removal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...