FreeBSD as a xen host

Robert Bonomi bonomi at mail.r-bonomi.com
Sun Nov 7 16:46:45 UTC 2010


> From owner-freebsd-questions at freebsd.org  Sun Nov  7 10:17:51 2010
> Date: Sun, 7 Nov 2010 11:18:56 -0500
> From: Tim Dunphy <bluethundr at gmail.com>
> To: freebsd-questions <freebsd-questions at freebsd.org>
> Subject: Re: FreeBSD as a xen host
>
> Guys,
>
>  Thanks gmake has gotten me much farther than make has! :) However the
> install is still failing:
>
> gmake libxenctrl.a libxenctrl.so libxenctrl.so.3.2 libxenctrl.so.3.2.0
> libxenguest.a libxenguest.so libxenguest.so.3.2 libxenguest.so.3.2.0
> getconf: no such configuration parameter `LFS_CFLAGS'
> gmake[4]: Entering directory `/tmp/xen-3.2-testing.hg/tools/libxc'
> gcc  -O2 -fomit-frame-pointer -m32 -march=i686 -DNDEBUG
> -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
> -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs
> -Werror -Wmissing-prototypes  -I. -I../xenstore -Wp,-MD,.xc_core.o.d
> -c -o xc_core.o xc_core.c
> In file included from xg_private.h:16,
>                  from xc_core.c:52:
> xc_private.h:18:29: error: xen/sys/privcmd.h: No such file or directory
> In file included from xg_private.h:16,
>                  from xc_core.c:52:
> xc_private.h:86: error: expected declaration specifiers or '...'
> before 'privcmd_hypercall_t'
> xc_private.h: In function 'do_xen_version':
> xc_private.h:90: error: 'privcmd_hypercall_t' undeclared (first use in
> this function)
> xc_private.h:90: error: (Each undeclared identifier is reported only once
> xc_private.h:90: error: for each function it appears in.)
> xc_private.h:90: error: expected ';' before 'hypercall'
> xc_private.h:92: error: 'hypercall' undeclared (first use in this function)
> xc_private.h:96: error: too many arguments to function 'do_xen_hypercall'
> xc_private.h: In function 'do_domctl':
> xc_private.h:102: error: 'privcmd_hypercall_t' undeclared (first use
> in this function)
> xc_private.h:102: error: expected ';' before 'hypercall'
> xc_private.h:106: error: 'hypercall' undeclared (first use in this function)
> xc_private.h:115: error: too many arguments to function 'do_xen_hypercall'
> xc_private.h: In function 'do_sysctl':
> xc_private.h:131: error: 'privcmd_hypercall_t' undeclared (first use
> in this function)
> xc_private.h:131: error: expected ';' before 'hypercall'
> xc_private.h:135: error: 'hypercall' undeclared (first use in this function)
> xc_private.h:144: error: too many arguments to function 'do_xen_hypercall'
> xc_private.h: At top level:
> xc_private.h:158: error: expected declaration specifiers or '...'
> before 'privcmd_mmap_entry_t'
> gmake[4]: *** [xc_core.o] Error 1
> gmake[4]: Leaving directory `/tmp/xen-3.2-testing.hg/tools/libxc'
> gmake[3]: *** [build] Error 2
> gmake[3]: Leaving directory `/tmp/xen-3.2-testing.hg/tools/libxc'
> gmake[2]: *** [install] Error 2
> gmake[2]: Leaving directory `/tmp/xen-3.2-testing.hg/tools'
> gmake[1]: *** [install-tools] Error 2
> gmake[1]: Leaving directory `/tmp/xen-3.2-testing.hg'
> gmake: *** [world] Error 2
>
> I was wondering if you might have any further suggestions that might
> get this working.

if you -read- the output carefully, you discover that it is complaining 
abouot not being able to find an include file. a file named:
   xen/sys/privcd.h

You need to figure out _where_ that file is on your system, and arrange
to include the parent directory in the 'include search path' when you
compile that module.   the cc '-I" flag.  



More information about the freebsd-questions mailing list