LinuxQuestions.org
Visit Jeremy's Blog.
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 01-20-2002, 09:56 PM   #1
HKDude
LQ Newbie
 
Registered: Jan 2002
Location: Illinois
Distribution: Slackware 9 (VectorLinux)
Posts: 16

Rep: Reputation: 0
Unhappy missing version.h


I'm trying to install the ALSA sound drivers (0.5.1 version) and I'm getting the dreaded "syntax error - missing version.h" error.

I've searched the forum and read some other posts. The thing is, I have a valid 2.4.7-10 kernel source, as I have already recompiled my kernel previously.

I tried, as suggested in another post, the "ldconfig" and "depmod -a" commands just to make sure my kernel is cool. These had no effect - I'm still getting the missing version.h error.

Any ideas or suggestions on what direction I should head? Thanks!

-hkd
 
Old 01-21-2002, 05:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
version.h is in the kernel headers not the source (well.. as well), just install the header rpm.
 
Old 04-02-2002, 07:38 AM   #3
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
acid, if you can spare a minute ..

acid, a question on this point

I'm getting problems with the ol' missing version.h - if you have the kernel source only (like from a linuxformat free CD), how can you install the headers? I assume they can't be generated like version.h

This is the trouble:

I'm trying to compile the ALSA sound module for a newly upgraded kernel and I've got the following problem (commented):

[root@localhost /]# cd /usr/src/redhat/SOURCES/alsa-driver-0.5.12a

# This is the directory from where you compile the module.

[root@localhost alsa-driver-0.5.12a]# uname -r
2.4.8

# This is my new kernel, booted from a bzImage copied into /boot

[root@localhost alsa-driver-0.5.12a]# cat /usr/src/linux/include/linux/version.h
#define UTS_RELEASE "2.4.8"
#define LINUX_VERSION_CODE 132104
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

# The contents of the version.h in the above path

[root@localhost alsa-driver-0.5.12a]# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for linux/fs.h... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for directory with kernel source... /usr/src/linux
checking for kernel version... expr: syntax error
expr: syntax error
expr: syntax error
failed (probably missing /usr/src/linux/include/linux/version.h)
[root@localhost alsa-driver-0.5.12a]

# Why can't it see the version.h file ??!

Thanks

Bert

Last edited by Bert; 04-02-2002 at 07:42 AM.
 
Old 04-02-2002, 07:56 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well check the config.log or whichever log file it's using to find what the error actually was. might also help flicking through the configure script itself too. i'd gues that it's not actually looking in that directory. the Probably... message is most likely hard coded.
 
Old 04-02-2002, 08:03 AM   #5
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
OK, thanks.

(No shortcuts for this one then ... )

Bert
 
  


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
Missing gcc or wrong version NoobVer.01 Fedora - Installation 1 08-19-2005 02:00 AM
Missing Version File ? Aulthalus Linux - Newbie 2 02-17-2005 02:09 PM
/include/linux/version.h is missing!!! eisheth.zenunim Linux From Scratch 2 03-23-2004 05:32 PM
bad kernel tree ? version.h missing !!! 2.4.22 qwijibow Linux - Software 2 11-11-2003 11:53 AM
Missing / Bad Version JDK 1.2 christer Linux - Software 2 10-16-2003 01:09 PM


All times are GMT -5. The time now is 05:28 PM.

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