LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-24-2017, 07:48 AM   #1
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 26
Posts: 140

Rep: Reputation: 15
where do I find version.h


I am trying to install Quick Cam Video Driver - which involves running make.

Make check that it can find /lib/modules/4.13.13-200.fc26.x86_64/build/include/linux/version.h - but that file is not on my system.

What do I need to install to get that file?
 
Old 11-24-2017, 08:24 AM   #2
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch x86_64 | Xubuntu 18.04 bridge | Fedora 31 | windows 10 pro
Posts: 440

Rep: Reputation: 200Reputation: 200Reputation: 200
my wild guess is that you need to install ...
Code:
kernel-devel.x86_64
that is the first thing i install when making kernel modules.
 
Old 11-24-2017, 11:13 AM   #3
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,933
Blog Entries: 11

Rep: Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174Reputation: 2174
There should be a file of that name in /usr/include/linux. If not, the package suggested by ///// sounds like a reasonable source.
 
Old 11-24-2017, 11:50 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
/lib/modules/4.13.13-200.fc26.x86_64/build/include/linux/version.h :
... Used to be present in earlier kernels.

You can try with another "version.h" e.g. include/generated/uapi/linux/version.h
( But I don't remember if it works for a module build meant for an older kernel.)


-
 
Old 11-24-2017, 01:09 PM   #5
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 26
Posts: 140

Original Poster
Rep: Reputation: 15
I have searched the file system and I can see that there are a number of different files called version.h

In subdirectories of /lib/modules/4.13.13-200.fc26.x86_64/build/include/ I can see some that are 0 bytes, some that are 97 bytes, some that are 1.0 kB and one that is 2.1 kB.

A 97 byte one reads
Quote:
#define LINUX_VERSION_CODE 265484
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
A 1.0 kb one reads
Quote:
/*
* version.h
*
* Copyright (C) 2000 Holger Waechtler <holger@convergence.de>
* for convergence integrated media GmbH
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/

#ifndef _DVBVERSION_H_
#define _DVBVERSION_H_

#define DVB_API_VERSION 5
#define DVB_API_VERSION_MINOR 10

#endif /*_DVBVERSION_H_*/
Any ideas which one I should copy?
 
Old 11-26-2017, 04:14 AM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
The thing is you need the correct version.h in the correct location. If you're really using fedora 9, it might be tough to get the right one.
 
Old 11-26-2017, 11:08 AM   #7
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 26
Posts: 140

Original Poster
Rep: Reputation: 15
Thanks Awesome Machine. I have now updated my profile - I am on Fedora 26!

I have tried copying the 97 byte version and the make did not complain - but I'm not sure that it did anything either. I am trying to work out whether it created any file(s) - or was just telling me that I ought to have called it differently.
 
Old 11-26-2017, 02:08 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Re #7 : include/generated/uapi/linux/version.h
Code:
#define LINUX_VERSION_CODE 264968
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
The file is totally harmless. If used at all, it's for a version check only.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find right rpm version package for my redhat 5 version? jayasiva1982 Red Hat 4 04-11-2014 08:52 AM
version of redhat - how do i find out the version i'm running? juliefa Linux - Newbie 2 03-26-2013 04:57 PM
I can't find the new version of /initrd-[generic-]version.img temp2012temp Linux - Newbie 1 01-05-2012 11:08 AM
[GNU find version 4.2.27] find: paths must precede expression mechagojira Linux - Newbie 3 07-06-2011 06:34 AM
Find out distribution + version (NOT: kernel version!) Tajci Red Hat 5 06-08-2005 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration