From: Eric S. <ej...@sh...> - 2009-02-26 14:51:34
|
Eric Shubert wrote: > Eric Shubert wrote: >> Gilles Espinasse wrote: >>> ----- Original Message ----- >>> From: Davide >>> To: ipc...@li... >>> Sent: Monday, October 27, 2008 7:53 PM >>> Subject: [IPCop-devel] Adding vm-tools package to IPCOP 1.4.21 >>> >>> >>>> make[3]: Entering directory >>> `/usr/src/vm-tools-2008.09.03-114782/modules/linux/vsock' >>> >>> I am stopped before that stage. >>> I add the call in make.sh after openvpn >>> On the lfs file, I had to add --with-kernel-release=$(KVER) or configure >>> stop very early >>> >>> Tested with 2008.09.03-114782 or 2008.10.10-123053 , it fail similary with >>> make[3]: Entering directory >>> `/usr/src/open-vm-tools-2008.09.03-114782/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 >>> >>> Gilles >>> >>> PS I have attached the lfs file I used >>> >> I too tried this with open-vm-tools-2009.02.18-148847. After installing >> pkg-config and glib2 for new dependencies, I get the same parse error as >> Gilles. >> >> Has anyone made any progress with this? I'm wondering if perhaps we need >> a compile flag of some sort. >> > > I've made some progress, and here's an update. > > The recent open-vm-tools-2009.02.18-148847 added a dependency for glib2, > and pkg-config. I created Makefiles for them (attached) and added > lfsmake2 commands for them to the make.sh script at the end of the > buildbase function. They appear to have built without a problem. > > Then I proceeded to try debugging the error that Gilles and I were > getting with vmxnet. I'm not sure 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 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. I > replaced <asm/dma.h> with <asm/delay.h>, and vmxnet.c compiled clean. > > 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. > > Now I'm up to (or back to?) Davide's original problem. I'm getting > exactly the same error as his original post. I don't see a quick fix for > that right now. I expect that I'll just omit this as it's not necessary > for IPCop. > > Tomorrow I hope to move on to installing the pertinent pieces in a test > IPCop. > Here are the attachments. (I hate it when I do that!) -- -Eric 'shubes' |