From: justinmattock@gmail.com (Justin Mattock) Date: Tue, 7 Apr 2009 12:56:37 -0700 Subject: [refpolicy] SELinux userpace compile errors In-Reply-To: <1239133257.29028.36.camel@localhost.localdomain> References: <1239132391.29028.35.camel@localhost.localdomain> <1239133257.29028.36.camel@localhost.localdomain> Message-ID: To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On Tue, Apr 7, 2009 at 12:40 PM, Stephen Smalley wrote: > 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 > > cool thanks for the url. (I'll have to recompile gcc) as for the error itself(as an example) just compiled libc and noticed this error(but with libc it was treated as a warning). in any case as long as people are aware of the situation. -- Justin P. Mattock