Dmitry Torokhov wrote:
> Hi Eric,
> 
> Thank you very much for your report.
> 
> On Thursday 26 February 2009 08:17:47 Eric Shubert wrote:
>> I've attempted to compile subject, ran into a few snags, and have a few
>> solutions.
>>
>> vmxnet.c build failed with:
>> make[3]: Entering directory
>> `/usr/src/open-vm-tools-2009.02.18-148847/modules/linux/vmxnet'
>> In file included from /lib/modules/2.4.36/build/include/asm/dma.h:14,
>>                   from vmxnet.c:34:
>> /lib/modules/2.4.36/build/include/linux/delay.h:62: error: parse error
>> before "const"
>> make[3]: *** [vmxnet.o] Error 1
>>
>> I couldn't see what the problem with linux/delay.h exactly was, but it
>> doesn't appear to be necessary. I tried removing
>> #include <asm/dma.h>
>> from vmxnet.c, and the only complaint from the compiler was the lack of
>> the udelay function, which is defined in <asm/delay.h>. It appears that
>> asm/dma.h was including linux/delay.h, which in turn included
>> asm/delay.h, which contained the udelay definition. I replaced
>> <asm/dma.h> with <asm/delay.h>, and vmxnet.c compiled clean. Of course
>> whether it actually works or not is another question.
>>
> 
> This should indeed work.
> 
>> The next error was with vmhgfs. Makefile.normal had specified
>> hgfsEscapeLinux.o, while the program was really hgfsEscape.o (the
>> "Linux" part had apparently been dropped along the line). I modified
>> Makefile.normal, specifying hgfsEscape.o, and it compiled clean. Can
>> someone verify if this is correct?
>>
> 
> Yes, that is correct. There should already be hgfsEscape.o in the list of 
> dependencies so you can just remove hgfsEscapeLinux.o
> 
>> With vmsock, I get this:
>> make[4]: Entering directory
>> `/usr/src/open-vm-tools-2009.02.18-148847p/modules/linux/vsock/driver-2.4.3
>> 6' Compiling .././linux/af_vsock.c
>> ../linux/af_vsock.c: In function `VSockVmciStreamConnect':
>> ../linux/af_vsock.c:3466: warning: implicit declaration of function
>> `DEFINE_WAIT'
>> ../linux/af_vsock.c:3466: error: `wait' undeclared (first use in this
>> function)
>> ../linux/af_vsock.c:3466: error: (Each undeclared identifier is reported
>> only once
>> ../linux/af_vsock.c:3466: error: for each function it appears in.)
>> ../linux/af_vsock.c:3542: warning: implicit declaration of function
>> `prepare_to_wait'
>> ../linux/af_vsock.c:3577: warning: implicit declaration of function
>> `finish_wait'
>> ../linux/af_vsock.c: In function `VSockVmciAccept':
>> ../linux/af_vsock.c:3615: error: `wait' undeclared (first use in this
>> function)
>> ../linux/af_vsock.c: In function `VSockVmciStreamSendmsg':
>> ../linux/af_vsock.c:4360: error: `wait' undeclared (first use in this
>> function)
>> ../linux/af_vsock.c: In function `VSockVmciStreamRecvmsg':
>> ../linux/af_vsock.c:4714: error: `wait' undeclared (first use in this
>> function)
>> make[4]: *** [af_vsock.o] Error 1
>> make[4]: Leaving directory
>> `/usr/src/open-vm-tools-2009.02.18-148847p/modules/linux/vsock/driver-2.4.3
>> 6'
>>
>> Can someone explain what might be the problem here? I don't expect
>> vmsock to be useful in the IPCop distro, but I'm wondering what the
>> problem is, as it should build with this kernel.
> 
> Could you please try the patch below? You will need to apply it to all copies 
> of compat_wait.h in the tree. Thanks!
> 

Dmitry,

I figured this out as well (great minds think alike!). As a test I 
changed the KERNEL_VERSION(2, 4, 28) to 2.4.38 just to make it include 
the code. It compiled fine. I like your fix much better though (was 
thinking along the same lines).

I'll try the patch and get back to you.

Thanks!

-- 
-Eric 'shubes'


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to