> I have downloaded xvm-src.tar.bz2 and built my own > xen.gz image of the hypervisor. I have done the build > by executing "make world". While xen.gz was built > successfully, I got an error when building > install-tools. The compiler complained that function > vasprintf (on line 35 of utils.c) was not defined. I > don't think vasprintf is even used in Solaris, > probably just on Linux. So the error is probably due > to the fact that xen is meant to be built on Linux.
Yep, after you unpack xvm-src.tar.bz2, the xen.hg directory contains the unmodified xen source from xensource.com; and there is a series of patches for opensolaris in xen.hg/.hg/patches that must be applied, by using the command "hg qpush -a". Like this: - Your $HOME/.hgrc must contain at least the following settings: [extensions] hgext.mq= - export [EMAIL PROTECTED] - in xen.hg run: hg qpush -a > Are there any configuration options that could fix > the error? Currently I am using the following command > to build the tree: > > gmake XEN_COMPILE_ARCH=x86_64 verbose=y debug=y debugger=y perfc=y world For a full build of the sources, producing installable packages, you would use .../sunos.hg/bin/build-all ; see also the sunos.hg/README file. For building just the hypervisor in xen.hg, I'm using this small script: #!/bin/sh SOLARIS_BUILD_TOOLS=/opt export SOLARIS_BUILD_TOOLS echo XEN_VENDORVERSION = -xvm > .config echo export XEN_VENDORVERSION >> .config #gmake debug=y XEN_COMPILE_ARCH=x86_64 XEN_TARGET_X86_PAE=y DISTDIR=/tmp "$@" gmake debug=y XEN_COMPILE_ARCH=x86_32 XEN_TARGET_X86_PAE=y DISTDIR=/tmp "$@" This message posted from opensolaris.org _______________________________________________ xen-discuss mailing list [email protected]
