We're getting closer, however we're not there yet. The VMWare module source shipped with VMware server 1.0.6 still fails to compile on my Ubuntu Hardy systems. I received the following errors when running vmware-config.pl

/tmp/vmxnet-only/vmxnet.c: In function ‘vmxnet_open’:
/tmp/vmxnet-only/vmxnet.c:675: error: ‘SA_SHIRQ’ undeclared (first use in this function)
/tmp/vmxnet-only/vmxnet.c:675: error: (Each undeclared identifier is reported only once
/tmp/vmxnet-only/vmxnet.c:675: error: for each function it appears in.)
/tmp/vmxnet-only/vmxnet.c: In function ‘vmxnet_netpoll’:
/tmp/vmxnet-only/vmxnet.c:1045: error: too many arguments to function ‘vmxnet_interrupt’

I have made appropriate patches (for the network module only) and uploaded a patch file here

In order to apply the patch do the following and then re-run vmware-config.pl

cd /tmp
wget http://www.cqure.net/files/VMwareTools-1.0.6-91891.patch
tar xvf /usr/lib/vmware-tools/modules/source/vmxnet.tar
patch -p0 < VMwareTools-1.0.6-91891.patch
tar cvf vmxnet.tar vmxnet-only
sudo cp vmxnet.tar /usr/lib/vmware-tools/modules/source/vmxnet.ta

/Patrik

Posted by Patrik in Virtualization

  1. 5 Responses to “Patches for VMwareTools-1.0.6-91891”

  2. The above patch isn’t the best one, because it will break vmxnet compilation if the kernel is irq);
    +#if LINUX_VERSION_CODE irq, dev, NULL);
    +#else
    + vmxnet_interrupt(dev->irq, dev);
    +#endif
    enable_irq(dev->irq);
    }
    #endif /* VMW_HAVE_POLL_CONTROLLER */
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-]

    Best Regards,
    Durval Menezes

    By Durval Menezes on Jun 30, 2008

  3. The above patch isn’t the best one, because it will break vmxnet compilation if the kernel is &lt 2.6.19; the following patch (based on yours) fixes this:

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-[
    --- vmxnet-only/vmxnet.c.orig-20080630 2008-05-10 00:42:01.000000000 -0300
    +++ vmxnet-only/vmxnet.c 2008-06-30 00:26:14.000000000 -0300
    @@ -1042,7 +1042,11 @@
    vmxnet_netpoll(struct net_device *dev)
    {
    disable_irq(dev->irq);
    +#if LINUX_VERSION_CODE irq, dev, NULL);
    +#else
    + vmxnet_interrupt(dev->irq, dev);
    +#endif
    enable_irq(dev->irq);
    }
    #endif /* VMW_HAVE_POLL_CONTROLLER */
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-]

    Best Regards,
    Durval Menezes

    By Durval Menezes on Jun 30, 2008

  4. This patch also worked for me on Ubuntu 7.10 Gutsy. Yay!
    What a pain THAT was.

    By colin on Jul 19, 2008

  5. Forgot to say THANKS!

    By colin on Jul 19, 2008

  6. Your welcome. Upgrading your VMWare Workstation or Server also fixes the problem as it comes with newer versions of the VMWare tools.

    By Patrik on Jul 20, 2008

Post a Comment