Trouble building secilc compiler
I am having trouble building the secilc compiler. I cloned this repository:
"https://github.com/SELinuxProject/selinux" and when I change into the directory "secilc", and try to run the "make" command it gives me this output:
[steve@localhost secilc]$ sudo make
"cc -Wall -Wshadow -Wextra -Wundef -Wmissing-format-attribute -Wcast-align -Wstrict-prototypes -Wpointer-arith -Wunused -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o secilc.o secilc.c
secilc.c:30:20: fatal error: stdlib.h: No such file or directory compilation terminated.
<builtin>: recipe for target 'secilc.o' failed
make: *** [secilc.o] Error 1"
I'm not sure what I'm doing wrong, I am just trying to get the compiler because I have upgraded everything else on my system to selinux userspace 2.4 from this website below.
"https://fedoraproject.org/wiki/Changes/SELinuxPolicyStoreMigration"
If anyone can help me I would really appreciate it. Thanks.
Quoted 18 lines · Dan
I am having trouble building the secilc compiler. I cloned this repository:
"https://github.com/SELinuxProject/selinux" and when I change into the directory "secilc", and try to run the "make" command it gives me this output:[steve@localhost secilc]$ sudo make
"cc -Wall -Wshadow -Wextra -Wundef -Wmissing-format-attribute(quoted diff) +0
-2-Wcast-align -Wstrict-prototypes -Wpointer-arith -Wunused -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o secilc.o
secilc.c
secilc.c:30:20: fatal error:stdlib.h: No such file or directory compilation terminated.
<builtin>: recipe for target 'secilc.o' failed
make: *** [secilc.o] Error 1"
Quoted 3 lines
I'm not sure what I'm doing wrong, I am just trying to get the compiler because I have upgraded everything else on my system to selinux userspace 2.4 from this website below.
I can only guess that you are missing glibc-headers package installed.
Quoted 5 lines
"https://fedoraproject.org/wiki/Changes/SELinuxPolicyStoreMigration"
If anyone can help me I would really appreciate it. Thanks.
I'm just building secilc package in my plautrba/selinux COPR repository:
https://copr.fedoraproject.org/coprs/plautrba/selinux/builds/
and I'm going to send it to package review process soon.
Petr