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

Technical Document #93



Doc ID: 93
Product: WinDriver & KernelDriver
Version: 5.21 and below

I am trying to install WinDriver on a Linux machine, but when I run 'make install' I get the following error:
 linux_wrappers.c:405: too few arguments to
  function 'do_munmap_Rd007fc14'
  make:*** [LINUX.2.4.18-3/linux_wrappers.o]
  Error 1

I am using Linux kernel version 2.4.18-4 from the RedHat 7.3 distribution. How can I resolve this?

In RedHat Linux 7.3 an additional parameter was added to the function do_munmap().

If you are using WinDriver version 5.05 or earlier, you can use the files from the following link: do_munmap_505.tgz in order to resolve this problem. [The files should be copied to the WinDriver/redist directory, instead of the corresponding files from the version which you are currently using].

If you are using WinDriver version 5.05b - 5.21, please use the makefile and linux_wrappers files from the WinDriver installation, and simply change the makefile to assign 1 instead of 0 to DO_MUNMAP_API_CHANGE, as explained in the makefile itself:

   # Change DO_MUNMAP_API_CHANGE value to 1 if in the
     file
   # /usr/src/linux/include/linux/mm.h the following
     function is defined:
   # extern int do_munmap(struct mm_struct *,
     unsigned long, size_t, int acct);
   # instead of extern int do_munmap
      (struct mm_struct *, unsigned long, size_t);
   DO_MUNMAP_API_CHANGE=0

For general WinDriver installation instructions for Linux, please refer to the WinDriver Linux Installation Instructions on our web site or in the "Installation and Setup" chapter of the manual.

Beginning with version 5.22 of WinDriver this is internally handled by the makefile, so you do not need to make any modifications yourself.

Back to Top

WinDriver & KernelDriver, version 5.21 and below, Linux, version 5.05, version 5.05b, installation, make, do_munmap, troubleshooting