Results 1 to 10 of 10

Thread: Kernel Headers

  1. #1
    lex0 NNTP User

    Default Kernel Headers

    First of all, I am sort of a newb but I will do my best to explain my problem. I have installed a clean install of Suse 11 using the "openSUSE-11.0-DVD-i386.iso" image. The machine I am using is a p4 2.4ghz. I did a minimal text install to avoid installing kde/gnome since this is going to be a server. The kernel source and headers were included during installation, and this is where my problem begins. When I do a "rpm -qa | grep kernel" this is what I get;

    nfs-kernel-server-1.1.2-8.1
    kernel-pae-2.6.25.5-1.1
    linux-kernel-headers-2.6.25-8.1
    kernel-source-2.6.25.5-1.1


    When I do a "uname -r" I get;

    2.6.25.5-1.1-pae

    I have tried to install some apps like Cisco VPN Client, and now Jetico BestCrypt for linux, and both complain about the headers not matching the source. Cisco wouldn't even build from its source, however BestCrypt did but when I tried to start the service it stopped with errors complaining about wrong build or something. I would paste the exact message but I've since played around with my kernel source directory by running such things as "make mrproper, make menuconfig, make dep" and now I get a different error that looks like this (in dmesg);

    "bc_cast: version magic '2.6.25.5-1.1 SMP mod_unload PENTIUMIII ' should be '2.6.25.5-1.1-pae SMP mod_unload 586 '"

    Of course there's a whole list of similar errors in dmesg, one for each module or something, I'm not sure.

    At any rate, I guess my question is why are my kernel headers different than the source on a default/clean install if 3rd party apps will most likely not build in this situation? Is there anything I can do to get these apps and future apps to build? Without an explanation/solution for this I cannot use Suse 11.

    Thanks in advance.

  2. #2
    Niclas Ekstedt NNTP User

    Default Re: Kernel Headers

    lex0,

    > linux-kernel-headers-2.6.25-8.1


    I believe this to be your problem. You shouldn't need to have this installed
    as you already have the kernel-source package which includes the headers,
    for your running kernel.
    I've built tons of apps over the years and have done fine with just the
    kernel-source package.
    Try removing the linux-kernel-headers package an then retry the builds.


    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer/NSC Sysop
    Telindus Sweden AB

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Kernel Headers

    You may get dependency errors if you try to remove it. To overcome this, do

    rpm -e --nodeps linux-kernel-headers-2.6.25-8.1

  4. #4
    Niclas Ekstedt NNTP User

    Default Re: Kernel Headers

    deano ferrari,

    > rpm -e --nodeps linux-kernel-headers-2.6.25-8.1


    Good catch


    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer/NSC Sysop
    Telindus Sweden AB

  5. #5

    Default Re: Kernel Headers

    This is wrong, linux-kernel-headers does not impact the kernel source.

  6. #6

    Default Re: Kernel Headers

    believe you need kernel-syms package

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,193
    Blog Entries
    1

    Default Re: Kernel Headers

    This is wrong, linux-kernel-headers does not impact the kernel source.
    Who said they did? The kernerl headers (if required) should match the running kernel though.

  8. #8

    Default Re: Kernel Headers

    I say that because I looked it up when that package got introduced. Not sure about you...

    1. The files the "linux-kernel-headers" package provides are located in /usr/include. I agree that the name of the package is really unfortunate because it suggests kernel headers and not the userspace headers for the kernel.

    2. They have the "#ifdef __KERNEL__" blocks stripped and hence are not suitable for building kernel modules

    3. What remains in these header files are definitions exported to userspace, and that is done by the kernel developers in a back-and-forward-compatible way.

    4. Hence they do not have to match the kernel version.

    Q.E.D.

  9. #9
    Join Date
    Jun 2008
    Location
    Mangalore, Karnataka, India
    Posts
    146

    Default Re: Kernel Headers

    2.6.25.5-1.1-pae

    This **** pae kernel gave me hell on earth when I tried to install and run virtualbox.
    I worked around it by installing the default kernel from yast. All the necessary headers, sources etc get updated when you check the default kernel.

    When booting make sure you select the default kernel and boot from GRUB (a new entry is automatically created), the default boot will still be pae, which you can later change from YaST->Syatem->Boot Loader
    nucleuskore
    "The Future Is Open"
    http://www.neville.in
    http://www.linuxrocks.in

  10. #10
    Niclas Ekstedt NNTP User

    Default Re: Kernel Headers

    jengelh,

    >
    > This is wrong, linux-kernel-headers does not impact the kernel source.


    That might be, it's easy enough to try and then to reinstall again.
    I've never once needed these when compiling.


    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer/NSC Sysop
    Telindus Sweden AB

Posting Permissions

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