Fedora Linux Support Community & Resources Center
  #1  
Old 11th July 2012, 11:29 PM
VikCyc Offline
Registered User
 
Join Date: Oct 2010
Posts: 3
linuxfirefox
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
Reply With Quote
  #2  
Old 11th July 2012, 11:41 PM
jlpierce Offline
Registered User
 
Join Date: Jul 2012
Location: Pekin, Indiana
Posts: 85
linuxopera
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.
Reply With Quote
  #3  
Old 11th July 2012, 11:45 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
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
Reply With Quote
  #4  
Old 12th July 2012, 12:05 AM
jlpierce Offline
Registered User
 
Join Date: Jul 2012
Location: Pekin, Indiana
Posts: 85
linuxopera
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.
Reply With Quote
  #5  
Old 12th July 2012, 12:11 AM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: Missing system.h

Quote:
Originally Posted by jlpierce View Post
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
Reply With Quote
  #6  
Old 12th July 2012, 12:30 AM
jlpierce Offline
Registered User
 
Join Date: Jul 2012
Location: Pekin, Indiana
Posts: 85
linuxopera
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?
Reply With Quote
  #7  
Old 12th July 2012, 12:34 AM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: Missing system.h

Quote:
Originally Posted by jlpierce View Post
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.........
Reply With Quote
  #8  
Old 12th July 2012, 01:16 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,829
linuxfirefox
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.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #9  
Old 13th July 2012, 03:42 PM
VikCyc Offline
Registered User
 
Join Date: Oct 2010
Posts: 3
windows_xp_2003firefox
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.
Reply With Quote
Reply

Tags
missing, systemh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 00:51 (Tuesday, 16-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat