Skip to contentSkip to conversation

tools/vnet build issues and a patch to fix part

PATCH B.G. Bruce 2 participants 2 messages Feb 9, 2005 – Feb 10, 2005

lore
Share & tools
lore

B.G. Bruce

author
#0 lore raw

Being that driver domains/xend are partially broken for me I thought I'd take a run at vnet to accomplish something close to what I desire. Is anyone else out there running vnet? If so, how stable have you found it?

My findings to date are as follows:
1) building of gc is broken (at least for me). I needed the attached patch to get things working properly.

PATCH tools_vnet_Makefile.gc-6.3.patch - Signed off by: [email protected]

2) The actual vnet-module driver is failing to build with the following errors:
________________________________________________________________________

In file included from vnetd.h:22,

                 from vcache.c:39:

../vnet-module/if_varp.h:39: warning: declaration does not declare anything
In file included from vcache.c:39:
vnetd.h:40: warning: declaration does not declare anything vcache.c: In function `varp_send':
vcache.c:105: error: structure has no member named id' vcache.c:106: error: structure has no member named opcode' vcache.c: In function `vcache_forward_varp':
vcache.c:506: error: structure has no member named opcode' vcache.c: In function vcache_handle_message':
vcache.c:614: error: structure has no member named `opcode' make[1]: *** [vcache.o] Error 1
make[1]: Leaving directory `/usr/src/bk/xen/tools/vnet/vnetd'
make: *** [vnetd] Error 2
_________________________________________________________________

Does anyone have an idea as to what opcode and id should be?

B.

tools/vnet/Makefile 2005-02-09 11:28:48.132468424 -0400 renamed from tools/vnet/Makefile 2005-01-31 20:38:33.000000000 -0400 +1 -3
diff -ruN xen-2.0-testing.bk/tools/vnet/Makefile xen/tools/vnet/Makefile
@@ -20,10 +20,8 @@
        tar xfz gc.tar.gz
        ln -sf gc?.? gc
  
-gc/Makefile:
-       (cd gc && ./configure --prefix=`pwd`/install)
-
 gc-install: gc gc/Makefile
+       (cd gc && make test && ./configure --prefix=`pwd`/install)
        make -C gc
        make -C gc install
#1 lore raw
Quoted 8 lines · B.G. Bruce

Being that driver domains/xend are partially broken for me I thought I'd take a run at vnet to accomplish something close to what I desire. Is anyone else out there running vnet? If so, how stable have you found it?

My findings to date are as follows:
1) building of gc is broken (at least for me). I needed the attached patch to get things working properly.

Thanks to Bruce for funding this. It looks like my code has either bit-rotted or (looking at the patch) thatsome earlier fixes missed a couple of uses of inline structures.

Quoted 36 lines

PATCH tools_vnet_Makefile.gc-6.3.patch - Signed off by: [email protected]

2) The actual vnet-module driver is failing to build with the following errors:
________________________________________________________________________

In file included from vnetd.h:22,

                 from vcache.c:39:

../vnet-module/if_varp.h:39: warning: declaration does not declare anything
In file included from vcache.c:39:
vnetd.h:40: warning: declaration does not declare anything vcache.c: In function `varp_send':
vcache.c:105: error: structure has no member named id' vcache.c:106: error: structure has no member named opcode' vcache.c: In function `vcache_forward_varp':
vcache.c:506: error: structure has no member named opcode' vcache.c: In function vcache_handle_message':
vcache.c:614: error: structure has no member named `opcode' make[1]: *** [vcache.o] Error 1
make[1]: Leaving directory `/usr/src/bk/xen/tools/vnet/vnetd'
make: *** [vnetd] Error 2
_________________________________________________________________

Does anyone have an idea as to what opcode and id should be?

B.

------------------------------------------------------------------------

diff -ruN xen-2.0-testing.bk/tools/vnet/Makefile xen/tools/vnet/Makefile

tools/vnet/Makefile 2005-02-09 11:28:48.132468424 -0400 line 26

Quoted 10 lines
tools/vnet/Makefile 2005-02-09 11:28:48.132468424 -0400 renamed from tools/vnet/Makefile 2005-01-31 20:38:33.000000000 -0400 +1 -3
@@ -20,10 +20,8 @@
        tar xfz gc.tar.gz
        ln -sf gc?.? gc
 
-gc/Makefile:
-       (cd gc && ./configure --prefix=`pwd`/install)
-
 gc-install: gc gc/Makefile
+       (cd gc && make test && ./configure --prefix=`pwd`/install)
        make -C gc
        make -C gc install

Mike

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click