Error No Include Path In Which To Search For Linux/version.h
dell-xps-l702x kernel asked 2015-09-15 19:57:41 +0000 BazzieB 11 ●1 Hi There I have just installed Fedora 22 on my Dell XPS L702x and it works really well, except for the built in speakers and subwoofer. I found out that I needed to install a Realtek driver to get this to work. When I try ./configure the driver, I get the following error: checking for kernel linux/version.h ... no The include file linux/version.h does not exist. Please install the package with full kernel sources for your distribution or use --with-kernel=dir option to specify another directory with kernel sources (default is /lib/modules/4.0.4-301.fc22.x86_64/source). I have installed all the kernel-headers and kernel-devel and gcc and gcc-c++ packages. I even ran it like this: ./configure --with-kernel=/usr/src/kernels/4.1.6-201.fc22.x86_64/include/linux but that did not work either. Any assistance would be greatly appreciated. edit retag flag offensive close merge delete Comments1It has a different path in my system: /usr/src/kernels/4.1.6-201.fc22.x86_64/include/generated/uapi/linux/version.h.skytux( 2015-09-15 21:01:54 +0000 )edit 1 answer Sort by ยป oldest newest most voted 1 answered 2015-09-17 06:36:58 +0000 hedayat 3031 ●4 ●31 ●65 http://hedayatvk.wordpres... Are you sure that you are using the latest drivers? As @skytux said, this file no longer exists in its old path in newer kernels. IIRC, this is not a new change; which means that the driver you've downloaded is developed for older kernels (probably even before version 3.0, the 2.6.x era). But many modules have used the check for existence of this file to detect if kernel development files are installed (kernel-devel package). Therefore, if you are lucky, this modules will be compiled with the newer kernels even though it is old. All you need to do is to either disable the check for linux/version.h in configure script, or create a version.h file in /usr/src/kernels/4.1.6-201.fc22.x86_64/include/linux to pass the check, for example by linking the real one: ln -s /usr/src/kernels/4.1.6-201.fc22.x86_64/include/generated/uapi/linux/version.h /usr/src/kernels/4.1.6-201.fc22.x86_64/include/linux/version.h But, to be honest, since the driver seems to be old, even if you can compile it successfully I'm afraid that it will solve your problem because the driver should have been merged to mainline kernel by now. So, you might need to create a more generic ques
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Can not find linux/modversions.h up vote 2 down vote favorite https://ask.fedoraproject.org/en/question/75460/cant-find-linuxversionh/ I am trying to install the driver for a serial device, and when I run the installation executable I get this error: cc -DLINUX -c -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m64 -mcmodel=kernel -I/usr/src/linux-3.8.0-27-generic/include -I/usr/src/linux-2.4/include -I/usr/src/linux/include -D__SMP__ npreal2.c npreal2.c:40:31: **fatal error: linux/modversions.h: No such file or directory** compilation terminated. I don't find any solutions to this after searching the forums. I noticed that there is a http://stackoverflow.com/questions/18260708/can-not-find-linux-modversions-h modversions.h in the /usr/src/linux-3.8.0-27-generic/include/config , but not in the linux folder. Please help! c linux makefile driver share|improve this question edited Aug 15 '13 at 20:01 Yulian Khlevnoy 1,14921032 asked Aug 15 '13 at 19:55 Ann 1581413 Maybe you can make a soft link in the linux folder to the actual file? I am not sure how safe this is though. –gravitas Aug 15 '13 at 19:57 @RSinghS I did try using a soft link, as a result, I bypassed the first errors. Now I get LOTS of errors from other header files ... –Ann Aug 15 '13 at 22:37 you can check if the linux folder itself is a symlink with ls -al if it is not rename the folder with mv linux linux.bak then make a symlink like this ln -s /usr/src/linux-3.8.0-27-generic /usr/src/linux –syss Sep 16 '14 at 12:55 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote Try passing -I /usr/src/linux-3.8.0-27-generic/include/config as an argument to make? or Check if the header is a part of a certain package and update the package. share|improve this answer answered Aug 16 '13 at 5:38 gravitas 411216 add a comment| up
Tags Search LQ Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Non-*NIX Forums > Programming LKM trouble with compile stdint.h User Name Remember http://www.linuxquestions.org/questions/programming-9/lkm-trouble-with-compile-stdint-h-4175522738/ Me? Password Programming This forum is for all programming questions. The question does not have to be directly related to Linux and any language is fair game. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to error no threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please error no include contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 10-20-2014, 07:12 AM #1 dzaku LQ Newbie Registered: Jun 2011 Location: POLAND BOAT CITY Distribution: ARCH-LINUX, DEBIAN, FEDORA, UBUNTU Posts: 9 Rep: LKM trouble with compile stdint.h Hi all :") i have trouble Code: usr/lib/gcc/arm-linux-gnueabihf/4.7/include/stdint.h:3:26: error: no include path in which to searc