WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xense-devel

Re: [Xense-devel] sHype supprot for Solaris

To: xense-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xense-devel] sHype supprot for Solaris
From: "Alexei Bavelski" <bavelski@xxxxxxxxx>
Date: Tue, 28 Nov 2006 23:06:23 +0100
Delivery-date: Tue, 28 Nov 2006 14:06:17 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TcOKVIRa8U4IO3x3VMCWbqb3N/kCtHyT/qQkNfZE9R5pzzeDTwLWyGgKIG00mN0dXkhQiGrfgIqkE9MZcCHDd8ryhfVfTK4mOq0gGtbAiCxivJk3ucLMaVlQrYiCxYXLuit8XDdJ+fEePLWRdl7NZD2nAlxbutnYmYDowMl3pRw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <OFB5FBA998.37830D25-ON85257233.00438A8C-85257233.0043C172@xxxxxxxxxx>
List-help: <mailto:xense-devel-request@lists.xensource.com?subject=help>
List-id: "A discussion list for those developing security enhancements for Xen." <xense-devel.lists.xensource.com>
List-post: <mailto:xense-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xense-devel>, <mailto:xense-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xense-devel>, <mailto:xense-devel-request@lists.xensource.com?subject=unsubscribe>
References: <adb3f7840611270241y375b115fy4032c42b4cec3d45@xxxxxxxxxxxxxx> <OFB5FBA998.37830D25-ON85257233.00438A8C-85257233.0043C172@xxxxxxxxxx>
Sender: xense-devel-bounces@xxxxxxxxxxxxxxxxxxx
I am using acm_core.c file, provided with Solaris destribution of Xen.
When I tried the latest  version from xensource repository, I get more
errors... But I guess this is because I need to change some other
files too. The same syntax errors moved to line 252. Here is the build
log:
-----------------------------------------------------------------------------------------
gmake[6]: Entering directory `/export/home/xen-src/xen.hg/xen/acm'
gcc -g -m64 -Wall -Wstrict-prototypes -Wdeclaration-after-statement
-nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix
include -Werror -Wno-pointer-arith -pipe
-I/export/home/xen-src/xen.hg/xen/include
-I/export/home/xen-src/xen.hg/xen/include/asm-x86/mach-generic
-I/export/home/xen-src/xen.hg/xen/include/asm-x86/mach-default
-msoft-float -mno-red-zone -fpic -fno-reorder-blocks
-fno-asynchronous-unwind-tables -g -D__XEN__ -DACM_SECURITY -DVERBOSE
-Wa,--divide -c acm_core.c -o acm_core.o
acm_core.c: In function `acm_set_policy_reference':
acm_core.c:87: error: structure has no member named `policy_reference_name'
acm_core.c:87: error: dereferencing pointer to incomplete type
acm_core.c:89: error: structure has no member named `policy_reference_name'
acm_core.c:92: error: structure has no member named `policy_reference_name'
acm_core.c:92: error: invalid application of `sizeof' to incomplete
type `acm_policy_reference_buffer'
acm_core.c:93: error: structure has no member named `policy_reference_name'
acm_core.c: In function `acm_dump_policy_reference':
acm_core.c:101: error: invalid application of `sizeof' to incomplete
type `acm_policy_reference_buffer'
acm_core.c:101: error: structure has no member named `policy_reference_name'
acm_core.c:108: error: dereferencing pointer to incomplete type
acm_core.c:108: error: structure has no member named `policy_reference_name'
acm_core.c:109: error: invalid application of `sizeof' to incomplete
type `acm_policy_reference_buffer'
acm_core.c:110: error: structure has no member named `policy_reference_name'
acm_core.c: In function `acm_setup':
acm_core.c:219: warning: implicit declaration of function `do_acm_set_policy'
acm_core.c: At top level:
acm_core.c:237: error: conflicting types for 'acm_init'
/export/home/xen-src/xen.hg/xen/include/acm/acm_hooks.h:378: error:
previous declaration of 'acm_init' was here
acm_core.c:237: error: conflicting types for 'acm_init'
/export/home/xen-src/xen.hg/xen/include/acm/acm_hooks.h:378: error:
previous declaration of 'acm_init' was here
acm_core.c: In function `acm_init':
acm_core.c:252: error: syntax error before ')' token
acm_core.c:252: error: syntax error before ')' token
acm_core.c:252: error: syntax error before ')' token
acm_core.c:252: error: syntax error before ')' token
acm_core.c:255: error: too few arguments to function `acm_init_binary_policy'
acm_core.c:259: error: syntax error before ';' token
acm_core.c:261: error: structure has no member named `policy_reference_name'
acm_core.c:263: error: structure has no member named `policy_reference_name'
acm_core.c: In function `acm_init_domain_ssid':
acm_core.c:293: error: `ACM_DATATYPE_domain' undeclared (first use in
this function)
acm_core.c:293: error: (Each undeclared identifier is reported only once
acm_core.c:293: error: for each function it appears in.)
acm_core.c:358:5: no newline at end of file
gmake[6]: *** [acm_core.o] Error 1
gmake[6]: Leaving directory `/export/home/xen-src/xen.hg/xen/acm'
gmake[5]: *** [/export/home/xen-src/xen.hg/xen/acm/built_in.o] Error 2
gmake[5]: Leaving directory `/export/home/xen-src/xen.hg/xen/arch/x86'
gmake[4]: *** [/export/home/xen-src/xen.hg/xen/xen] Error 2
gmake[4]: Leaving directory `/export/home/xen-src/xen.hg/xen'
gmake[3]: *** [install] Error 2
gmake[3]: Leaving directory `/export/home/xen-src/xen.hg/xen'
gmake[2]: *** [install-xen] Error 2
gmake[2]: Leaving directory `/export/home/xen-src/xen.hg'
gmake[1]: *** [world] Error 2
gmake[1]: Leaving directory `/export/home/xen-src/xen.hg'
*** Error code 2
make: Fatal error: Command failed for target `xen-dist'
-----------------------------------------------------------------------------------------

Thank you!

Alexei

On 11/27/06, Stefan Berger <stefanb@xxxxxxxxxx> wrote:

xense-devel-bounces@xxxxxxxxxxxxxxxxxxx wrote on 11/27/2006
05:41:50 AM:

 > Hi!
 >
 > Thanks for your reply. I am compiling on Solaris B44.
 >

We haven't tried that before.

 > In common.mk changed
 >
 > ACM_SECURITY ?= y
 > ACM_USE_SECURITY_POLICY ?=
ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY

Looks correct.

 >
 > here are the errors, let me know if you want the full build log
 >
 > Thanks,
 > Alexei
 >
--------------------------------------------------------------------
 > gmake[6]: Entering directory
`/export/home/xen-src/xen.hg/xen/acm'
 > gcc -g -m64 -Wall -Wstrict-prototypes -Wdeclaration-after-statement
 > -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix
 > include -Werror -Wno-pointer-arith -pipe
 > -I/export/home/xen-src/xen.hg/xen/include
 >
-I/export/home/xen-src/xen.hg/xen/include/asm-x86/mach-generic
 >
-I/export/home/xen-src/xen.hg/xen/include/asm-x86/mach-default
 > -msoft-float -mno-red-zone -fpic -fno-reorder-blocks
 > -fno-asynchronous-unwind-tables -g -D__XEN__ -DACM_SECURITY -DVERBOSE
 > -Wa,--divide -c acm_core.c -o acm_core.o
 > acm_core.c: In function `acm_init':
 > acm_core.c:249: error: syntax error before ')' token
 > acm_core.c:249: error: syntax error before ')' token
 > acm_core.c:249: error: syntax error before ')' token
 > acm_core.c:249: error: syntax error before ')' token

Do you have the latest / unmodified version of acm_core.c from the
repository? I have a goto statement in line 249.

   Stefan



 > acm_core.c:252: error: too few arguments to function
`acm_init_binary_policy'
 > acm_core.c:256: error: syntax error before ';' token
 > gmake[6]: *** [acm_core.o] Error 1
 > gmake[6]: Leaving directory
`/export/home/xen-src/xen.hg/xen/acm'
 > gmake[5]: ***
[/export/home/xen-src/xen.hg/xen/acm/built_in.o] Error 2
 > gmake[5]: Leaving directory
`/export/home/xen-src/xen.hg/xen/arch/x86'
 > gmake[4]: *** [/export/home/xen-src/xen.hg/xen/xen]
Error 2
 > gmake[4]: Leaving directory
`/export/home/xen-src/xen.hg/xen'
 > gmake[3]: *** [install] Error 2
 > gmake[3]: Leaving directory
`/export/home/xen-src/xen.hg/xen'
 > gmake[2]: *** [install-xen] Error 2
 > gmake[2]: Leaving directory `/export/home/xen-src/xen.hg'
 > gmake[1]: *** [world] Error 2
 > gmake[1]: Leaving directory `/export/home/xen-src/xen.hg'
 > *** Error code 2
 > make: Fatal error: Command failed for target `xen-dist'
 >
--------------------------------------------------------------------
 >
 > On 11/26/06, Stefan Berger <stefanb@xxxxxxxxxx> wrote:
 > >
 > > xense-devel-bounces@xxxxxxxxxxxxxxxxxxx wrote on
11/25/2006
 > > 11:54:01 AM:
 > >
 > >
 > >  > Hi!
 > >  >
 > >  > I am trying to build Xen for Solaris with ACM ON and  get syntax
 > >  > errors in acm_core.c Building with ACM OFF goes without any
problems.
 > >  >
 > >  > Is sHype supported in Solaris version of Xen or I am doing something
 > >  > wrong?
 > >
 > > You might the first one to try it.
 > > What's the environment you are compiling Xen on - Linux?
 > > Can you post the error messages and the surrouding part of the build
log
 > > (make 2>&1 | tee build.txt) , please.
 > >
 > >     Stefan
 > >
 > > >
 > >  > Thanks,
 > >  >
 > >  > Alexei
 > >  >
 > >  >
 > >  > _______________________________________________
 > >  > Xense-devel mailing list
 > >  > Xense-devel@xxxxxxxxxxxxxxxxxxx
 > >  > http://lists.xensource.com/xense-devel
 > >
 >
 > _______________________________________________
 > Xense-devel mailing list
 > Xense-devel@xxxxxxxxxxxxxxxxxxx
 > http://lists.xensource.com/xense-devel


_______________________________________________
Xense-devel mailing list
Xense-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xense-devel