Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Realtek drivers fail to install, missing linux/version.h

  1. #1

    Default Realtek drivers fail to install, missing linux/version.h

    I have been trying to install the realtek audio drivers for my motherboards onboard sound. I am running a 64bit 12.3 system. I used the 3.0 linux driver from here. I unzipped the tar file, ran the ./configure script and got this:

    Code:
    configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for ranlib... ranlib
    checking for a BSD-compatible install... /usr/bin/install -c
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking whether time.h and sys/time.h may both be included... yes
    checking whether gcc needs -traditional... no
    checking for current directory... /home/Mani/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa
    checking cross compile... 
    checking for directory with ALSA kernel sources... /home/Mani/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18
    checking for directory with kernel source... /usr/src/linux
    checking for directory with kernel build... /usr/src/linux
    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 /usr/src/linux).
    My rpm -qa | grep output is as follows

    Code:
    kernel-devel-3.7.10-1.16.1.noarch
    kernel-desktop-3.7.10-1.1.1.x86_64
    nfs-kernel-server-1.2.7-2.10.1.x86_64
    kernel-firmware-20130114git-1.2.1.noarch
    kernel-desktop-devel-3.7.10-1.16.1.x86_64
    I also tried to update the kernel-desktop but that did not help.


    Thank you for your help

  2. Default Re: Realtek drivers fail to install, missing linux/version.h

    With the 3.7 and greter kernel, there was a change to the uapi sources which causes issues with some older drivers which can not locate version.h

    You might try:

    Code:
    #ln -s /usr/src/linux-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-$(uname -r)/include/linux/
    See:

    https://wiki.archlinux.org/index.php/VMware

    Gentoo Forums :: View topic - emerge nvidia-drivers fails to determine the kernel version

    https://forums.opensuse.org/english/...ml#post2575760

  3. #3

    Default Re: Realtek drivers fail to install, missing linux/version.h

    Thanks for the response. I tried that command, however I got this (I assumed uname was username):

    Code:
    Carina:/home/Mani # ln -s /usr/src/linux-$(Mani -r)/include/generated/uapi/linux/version.h /usr/src/linux-$(Mani -r)/include/linux/
    ln: target ‘found/include/linux/’ is not a directory: No such file or directory
    I found the /version.h file in another folder and tried linking the two filepaths using this:

    Code:
    ln -s /usr/src/linux-$(Mani -r)/include/generated/uapi/linux/version.h /usr/src/linux-$(Mani -r)/include/linux/
    After running the ./configure, I get this instead:

    Code:
    configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes                                                                                                                             
    checking whether gcc accepts -g... yes                                                                                                                                              
    checking for gcc option to accept ISO C89... none needed                                                                                                                            
    checking for ranlib... ranlib                                                                                                                                                       
    checking for a BSD-compatible install... /usr/bin/install -c                                                                                                                        
    checking how to run the C preprocessor... gcc -E                                                                                                                                    
    checking for grep that handles long lines and -e... /usr/bin/grep                                                                                                                   
    checking for egrep... /usr/bin/grep -E                                                                                                                                              
    checking for ANSI C header files... yes                                                                                                                                             
    checking for an ANSI C-conforming const... yes                                                                                                                                      
    checking for inline... inline                                                                                                                                                       
    checking whether time.h and sys/time.h may both be included... yes                                                                                                                  
    checking whether gcc needs -traditional... no                                                                                                                                       
    checking for current directory... /home/Mani/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa                                                                               
    checking cross compile...                                                                                                                                                           
    checking for directory with ALSA kernel sources... /home/Mani/Downloads/Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18                                                                   
    checking for directory with kernel source... /lib/modules/3.7.10-1.16-desktop/source                                                                                                
    checking for directory with kernel build... /lib/modules/3.7.10-1.16-desktop/build                                                                                                  
    checking for kernel linux/version.h ... linux/version.h                                                                                                                             
    checking for kernel linux/autoconf.h generated/autoconf.h... generated/autoconf.h                                                                                                   
    checking for kernel linux/utsrelease.h generated/utsrelease.h... generated/utsrelease.h                                                                                             
    checking for kernel version... failed                                                                                                                                               
      (probably missing /lib/modules/3.7.10-1.16-desktop/source/include/linux/version.h or                                                                                              
                        /lib/modules/3.7.10-1.16-desktop/source/include/linux/utsrelease.h or                                                                                           
                        /lib/modules/3.7.10-1.16-desktop/source/include/generated/utsrelease.h)

  4. #4
    Join Date
    Nov 2009
    Location
    West by God Virginia
    Posts
    7,265

    Default Re: Realtek drivers fail to install, missing linux/version.h

    no uname is command that returns the version of the kernel (with -r parameter) so use it as written don't put you name there!

    The path will be to the current kernel number so uname -r returns that and puts it in the path

  5. #5

    Default Re: Realtek drivers fail to install, missing linux/version.h

    Well, the file "SUPPORTED_KERNELS" from that driver package says:
    The alsa-drivers in this package are designed for the following kernels

    - Vanilla 3.0 to 3.2
    - Vanilla 2.6.18 to 2.6.39

    It's not guaranteed that they work with any newer version than above
    or modified kernels by distributors.
    And openSUSE 12.3 contains kernel 3.7.10. I guess that is the reason why you can't compile it.

    Why do you actually want to install this driver, it should be included in the standard kernel package anyway...

    I personally never had the need to install additional audio drivers on linux in the last 10 years.

  6. #6

    Default Re: Realtek drivers fail to install, missing linux/version.h

    Why do you actually want to install this driver, it should be included in the standard kernel package anyway...

    I personally never had the need to install additional audio drivers on linux in the last 10 years.
    I am having trouble with my audio input. Some programs don't like working with each other (ex. Steam cancels skype input and vice-versa). Also when it does work, the input audio has lots of noise and sounds terrible (output is fine). It works fine on my windows partition, but in linux it is unusable. I was hoping that installing new drivers would fix the problem.

  7. #7

    Default Re: Realtek drivers fail to install, missing linux/version.h

    Quote Originally Posted by 8ofspades View Post
    I am having trouble with my audio input. Some programs don't like working with each other (ex. Steam cancels skype input and vice-versa). Also when it does work, the input audio has lots of noise and sounds terrible (output is fine). It works fine on my windows partition, but in linux it is unusable. I was hoping that installing new drivers would fix the problem.
    Well, as gogalthorp already mentioned, you should run that command verbatim, don't exchange "uname" with your user name:
    Code:
    ln -s /usr/src/linux-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-$(uname -r)/include/linux/
    Maybe it does compile then... (although I somehow doubt your problem is driver related)

    Otherwise I don't really know what else to try, never used audio _input_, especially not for more than one program at the same time.
    Are you using pulseaudio?
    Try to turn it off (or on, if you wasn't using it) in YaST->Hardware->Sound (click on "Other" in the lower right corner and select "PulseAudio configuration").
    The noise could be caused by a too high "Capture" or "Mic Boost" I think, try lower it in your mixer. Or maybe if you're using a laptop, the input can be switched between "Line in" and "Microphone"; if that is set wrong it can also distort the signal.

    But as I said, I have absolutely no experience with that.

  8. #8

    Default Re: Realtek drivers fail to install, missing linux/version.h

    Thanks for the reply.

    I tried the command with uname instead of my username, however I get this:

    Code:
    Carina:/home/Mani # ln -s /usr/src/linux-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-$(uname -r)/include/linux/
    ln: target ‘/usr/src/linux-3.7.10-1.16-desktop/include/linux/’ is not a directory: No such file or directory
    I also disabled pulse audio and its a lot better (I can actually hear my input now) however there is still a bunch of static.

  9. #9

    Default Re: Realtek drivers fail to install, missing linux/version.h

    Quote Originally Posted by 8ofspades View Post
    I tried the command with uname instead of my username, however I get this:

    Code:
    Carina:/home/Mani # ln -s /usr/src/linux-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-$(uname -r)/include/linux/
    ln: target ‘/usr/src/linux-3.7.10-1.16-desktop/include/linux/’ is not a directory: No such file or directory
    Yes, sorry. I just copy/pasted LewsTherinTelemon's line, but now I see that the paths are completely wrong...
    The directory is named /usr/src/linux-3.7.10-1.16/ but "uname -r" returns "3.7.10-1.16-desktop", and version.h is in /usr/src/linux-3.7.10-1.16-obj/ anyway.

    Well, try this then:
    Code:
    ln -s /usr/src/linux-obj/include/generated/uapi/linux/version.h /usr/src/linux/include/linux/

  10. #10

    Default Re: Realtek drivers fail to install, missing linux/version.h

    This is what I currently get.

    Code:
    Carina:/home/Mani # ln -s /usr/src/linux-obj/include/generated/uapi/linux/version.h /usr/src/linux/include/linux/                                                                   
    ln: failed to create symbolic link ‘/usr/src/linux/include/linux/version.h’: File exists
    However I don't think I will actually need to use this driver. After disabling pulsaudio, I played around with the mic boost settings and now its as good as it ever was.

    Thanks for the help!

Page 1 of 2 12 LastLast

Posting Permissions

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