Results 1 to 7 of 7

Thread: Version.h not found, but is present.

  1. #1
    Join Date
    Jul 2008
    Location
    Eindhoven
    Posts
    4

    Default Version.h not found, but is present.

    I am really stuck with the installation of a kernel-driver for the Xilin parallel cable.

    Xilinx offers a installations script that installs the kernel-driver. In fact it is just a script checking some settings, like is the module running and are you root, and then starts the ./configure make and make install.

    When running this script I see the error in the firt compile rule.
    cc -c -O2 ... -I/lib/modules/2.6.22.18-0.2-default/source/include ... -include /lib/modules/2.6.22.18-0.2-default/build/include/linux/autoconf.h -c -o LINUX.2.6.22.i386/linux_wrappers.o linux_wrappers.c
    In file included from linux_wrappers.c:15:
    linux_common.h:17:27: error: linux/version.h: No such file or directory
    linux_common.h:25:4: error: #error "This kernel is too old: not supported by this file"

    It goes wrong in the header linux_commons.h.
    There is a line #include <linux/version.h>. And because this file is according to the compiler not present, the code can not determine which kernel the computer is using and the code throws an error that the kernel is too old.

    Any ideas how this bug can be solved?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,710
    Blog Entries
    1

    Default Re: Version.h not found, but is present.

    Have you got the kernel-source package installed? What does

    rpm -qa |grep kernel return?

    Mine for reference:

    kernel-source-2.6.25.11-0.1
    kernel-syms-2.6.25.11-0.1
    kernel-pae-2.6.25.11-0.1
    kernel-docs-2.6.25.11-0.1

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Version.h not found, but is present.

    And have you got the header files package installed?

    Code:
    $ rpm -qf /usr/include/linux/version.h
    linux-kernel-headers-2.6.25-8.1

  4. #4
    Join Date
    Jul 2008
    Location
    Eindhoven
    Posts
    4

    Default Re: Version.h not found, but is present.

    My mistake. I mentioned in the title that version.h is present but forgot to write it down in the post.

    Kernel-source is installed and when I make a small and simple c-code with #include <linux/version.h> gcc does not return an error that version.h is missing.

    I think that the problem could be in the make file. That it overrides the location of te Linux headers.

  5. #5
    Join Date
    Jun 2008
    Location
    Rome, Italy
    Posts
    248

    Default Re: Version.h not found, but is present.

    I had the same problem back to the times of 9.3 installing the driver vmnet concerning vmware. I solved this way as superuser:
    cd /usr/src/linux
    make oldconfig
    make
    I hope this helps you too

  6. #6
    Join Date
    Jul 2008
    Location
    Eindhoven
    Posts
    4

    Default Re: Version.h not found, but is present.

    Thanks. I will this later.
    If it works, I will directly try to find out why recompiling the kernel should do the trick.

  7. #7
    Join Date
    Jul 2008
    Location
    Eindhoven
    Posts
    4

    Default Re: Version.h not found, but is present.

    It worked. But now I see that Xilinx is using the depricate ioctl32.h header... But that is a different story to fix. :S

Posting Permissions

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