Re: SELinux build errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/04/2016 11:39 AM, David Merritt wrote:
> platform: CentOS 7 x64
> 
> from:
> 
> https://github.com/SELinuxProject/selinux
> 
> git clone https://github.com/SELinuxProject/selinux.git
> 
> cd selinux
> 
> make DESTDIR=~/obj install install-pywrap
> 
> yields:
> 
> .
> .
> .
> make[2]: Entering directory `/root/Desktop/selinux/libsepol/src'
> cc -Werror -Wall -W -Wundef -Wshadow -Wmissing-format-attribute -O2
> -I. -I../include -D_GNU_SOURCE -I../cil/include -fPIC -c -o
> ../cil/src/cil_lexer.o ../cil/src/cil_lexer.c
> <stdout>: In function ‘cil_yy_scan_bytes’:
> <stdout>:1567:17: error: comparison between signed and unsigned
> integer expressions [-Werror=sign-compare]
> cc1: all warnings being treated as errors
> make[2]: *** [../cil/src/cil_lexer.o] Error 1
> make[2]: Leaving directory `/root/Desktop/selinux/libsepol/src'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/root/Desktop/selinux/libsepol'
> make: *** [install] Error 1

That's actually a bug in your flex package and will affect anything
flex-generated.  You can workaround it by building with
-Wno-sign-compare added to your CFLAGS, e.g.
make DESTDIR=~/obj CFLAGS+=-Wno-sign-compare install install-pywrap

flex seems to be fixed in Fedora already.


_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux