Home   |   Jungo Corporate Web Site   |   Connectivity Software Store   |   Contact us   |   Search:
Home Connectivity Software Support WinDriver Support Technical Documents

Technical Document #63



Doc ID: 63
Product: WinDriver
Version: 6.22 and below

While compiling the WinDriver module (windrvr.o for my version) under Linux ('make install' in the WinDriver directory) I receive the following error messages:
usr/include/linux/modversions.h:1:2: #error
Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error
but headers from an appropriate kernel-source
.
What am I doing wrong?

There are two possible reasons for this error:
  1. There is no Linux kernel source in the /usr/src directory.

    To fix this:
    • Download the exact kernel version you are working on from one of the mirrors (For example: http://www.linuxhq.com/, http://www.kernel.org) and run ' uname -a ' to get the version of the running Linux kernel.
    • Install the kernel package from your Linux distribution disk.

  2. You neglected to create a 'linux' symbolic link (/usr/src/linux), or you created a symbolic link that is pointing to the wrong Linux kernel version. [For example, you are compiling for Linux kernel 2.2 and the symbolic link points to Linux kernel 2.4 source tree].

    To fix this:
    Become super user: $su ;
    Change directory to: /usr/src/: # cd /usr/src/ ;
    Delete the previous link you created (if any): # rm linux ;
    And create a new symbolic: # ln -s linux-2.2 linux).

For further information, refer to the "Installation And Setup" chapter of the WinDriver User's Manual for your WinDriver version.

Beginning with version 6.23, WinDriver uses a different installation mechanism on Linux, which should prevent this error from occurring.

Back to Top

WinDriver, version 6.23 and below, version 6.23, Linux, installation, windrvr.o, troubleshooting, build errors