FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Missing system.h [SOLVED]

    Greetings,

    I think I've found a problem, but I don't have a bug report account, so I'm hoping someone here can help tell me if it is real and report it, or tell me it's not a problem...

    Yesterday, I "yum update"d my Fedora 16 x86_64 system and picked up the new kernel version 3.4.4-4. I've also got kernel-headers and kernel-devel installed on my system.

    Today, I attempted to install a HW driver that requires system.h, but make gave an error saying it couldn't be found. Doing a locate system.h shows that I do not have a system.h for kernel 3.4.4-4. It says I do have one for the previous two kernels, in /usr/src/kernels/3.3.x-x.fc86_64/arch/x86/include/asm/.

    I uninstalled kernel-headers and kernel-devel and tried to re-install, but system.h is still missing. Is this a real problem with the 3.4.4-4 rpm, or is there something I don't understand about distributions? If a real problem, how can it be fixed? (I tried copying system.h from an old kernel src directory to the new one, but that caused additional compile errors).

    By the way, I re-booted to the 3.3.7-1 kernel, and the driver seems to have installed correctly.

    Regards,
    VikCyc
    Last edited by VikCyc; 13th July 2012 at 03:44 PM. Reason: Answer provided in thread

  2. #2
    Join Date
    Jul 2012
    Location
    Pekin, Indiana
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Missing system.h

    Well, I don't have that file anywhere on my system either.

    The current kernel from the update server is: 3.4.4-5.fc17.x86_64.

    I did a quick google search and no one else is squawking about that file missing. Not sure what to tell you now.

  3. #3
    Yellowman Guest

    Re: Missing system.h

    You will need to edit the HW driver files to suit the 3.3 kernel changes


    Code:
    -            #include <asm/system.h>
    +	    #include <linux/version.h>
    +#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0)
    +	    #include <asm/switch_to.h>
    +#else
    +	    #include <asm/system.h>
    +#endif

  4. #4
    Join Date
    Jul 2012
    Location
    Pekin, Indiana
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Missing system.h

    Okay, so where is the system.h file you referred to? Nowhere under the /usr/src/kernels/3.4.4-5.fc17.x86_64 is there a folder named asm/ with a file named system.h located in it.

    Maybe I a missing something here.

  5. #5
    Yellowman Guest

    Re: Missing system.h

    Quote Originally Posted by jlpierce
    Okay, so where is the system.h file you referred to? Nowhere under the /usr/src/kernels/3.4.4-5.fc17.x86_64 is there a folder named asm/ with a file named system.h located in it.

    Maybe I a missing something here.
    The output posted is patch fomat, the lines prefixed with - are removed and the + lines are added.


    asm/switch_to.h is the replacement for asm/system.h in 3.3 + kernels

  6. #6
    Join Date
    Jul 2012
    Location
    Pekin, Indiana
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Missing system.h

    Cool, thank you Yellowman, that is nice to know. I am not a programmer, only ever rebuilt one or two kernels and just followed the instructions (with fingers crossed) and it all worked out.

    From what I see above it is a conditional statement that says if the kernel version is greater than 3.3.0 then we will use a file named switch_to.h otherwise it will have a file named system.h, is that correct?

  7. #7
    Yellowman Guest

    Re: Missing system.h

    Quote Originally Posted by jlpierce
    Cool, thank you Yellowman, that is nice to know. I am not a programmer, only ever rebuilt one or two kernels and just followed the instructions (with fingers crossed) and it all worked out.

    From what I see above it is a conditional statement that says if the kernel version is greater than 3.3.0 then we will use a file named switch_to.h otherwise it will have a file named system.h, is that correct?
    Yes.........

  8. #8
    stevea Guest

    Re: Missing system.h

    Short story - your driver is out-of-date and may well require more changes to be made to work on a modern kernel.

  9. #9
    Join Date
    Oct 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Missing system.h

    Thank you Yellowman very much for the info - Very helpful!

    I consider this one "solved".
    Last edited by VikCyc; 13th July 2012 at 03:44 PM.

Similar Threads

  1. Missing the System tab on the menu
    By KingLeonidas in forum Using Fedora
    Replies: 2
    Last Post: 30th September 2011, 03:46 PM
  2. Some system sound missing on F8
    By Chrismax in forum Using Fedora
    Replies: 3
    Last Post: 21st February 2008, 07:05 PM
  3. missing system programs
    By faustjoe in forum Using Fedora
    Replies: 4
    Last Post: 12th February 2007, 02:17 AM
  4. Missing Operating System Error
    By aBetterGamer in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 14th October 2006, 08:39 AM
  5. FC4 Missing System Applications
    By i1n2d3y4 in forum Using Fedora
    Replies: 9
    Last Post: 16th June 2005, 06:15 AM

Tags for this Thread

Posting Permissions

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