From: sds@tycho.nsa.gov (Stephen Smalley) Date: Tue, 07 Apr 2009 15:40:57 -0400 Subject: [refpolicy] SELinux userpace compile errors In-Reply-To: <1239132391.29028.35.camel@localhost.localdomain> References: <1239132391.29028.35.camel@localhost.localdomain> Message-ID: <1239133257.29028.36.camel@localhost.localdomain> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On Tue, 2009-04-07 at 15:26 -0400, Stephen Smalley wrote: > On Tue, 2009-04-07 at 12:17 -0700, Justin Mattock wrote: > > compiling the userspace tools > > I'm receiving some errors: > > (the first is just a simple "make" instead of "sudo make") > > The default top-level target is 'install'. So you either need to do it > as root or specify DESTDIR=/path/to/root for a writable tree. > > > the second seems to maybe be with the gcc > > (which is 4.5.0) > > > > > > > > policy_define.c: In function 'set_types': > > policy_define.c:1304: error: offset '3' outside bounds of constant string > > policy_define.c:1316: error: offset '3' outside bounds of constant string > > policy_define.c:1328: error: offset '3' outside bounds of constant string > > Bug in gcc, already known to gcc folks. Reference: http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01645.html Who knew that strcmp() was so complex? -- Stephen Smalley National Security Agency