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.

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?

With vmsock, I get this:
make[4]: Entering directory 
`/usr/src/open-vm-tools-2009.02.18-148847p/modules/linux/vsock/driver-2.4.36'
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.36'

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.
-- 
-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