Skip to contentSkip to conversation

SELinux compile errors

DISCUSSION Subba Rao 1 participant 1 message Nov 19, 2002 SELinux security module

lore
Share & tools
lore

Subba Rao

author
#0 lore raw

Thank you for replying.

The gcc version on my system is 2.95.3

The errors I listed showed up when I compiled in the EXPERIMENTAL modules. When I removed them, the compile went thru fine.

One other question, is PAM required for compiling SELinux?

Subba Rao
[email protected]
2002-11-18

======= At 2002-11-18, 11:04:00 you wrote: =======

Quoted 48 lines

The same problem was raised a few weeks ago, it comes from ip_warn() in selopt_core.c having two arguments, while the macro definition in selopt.h has 3 arguments. Namely :

Can you please identify which GCC compiler you're using ( 'gcc --version' ) ?

Kerry

Quoted 36 lines · Subba Rao

Hi

I am trying to compile SELinux on Slackware 8.1
The LSM tree is LSM-2.4-selinux-2002102211.tgz. I have downloaded the complete source tree.

Towards the end of the kernel compilation I got the following error messages:

===========================================================
make[3]: Entering directory /usr/src/lsm-2.4/security/selinux/flask' make[3]: Nothing to be done for all'.
make[3]: Leaving directory `/usr/src/lsm-2.4/security/selinux/flask' make -C selopt
make[3]: Entering directory `/usr/src/lsm-2.4/security/selinux/selopt' gcc -D__KERNEL__ -I/usr/src/lsm-2.4/include -Wall -Wstrict-prototypes

(quoted diff) +0 -4
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-commo -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=k6    -I../include -I.. -nostdinc
-I /usr/lib/gcc-lib/i3 6-slackware-linux/2.95.3/include
-DKBUILD_BASENAME=selopt_core  -c -o selopt_core.o selopt_core.c

selopt_core.c: In function `selopt_ip_label_output':
selopt_core.c:299: parse error before `)'
selopt_core.c: In function `selopt_ip_map_input':
selopt_core.c:355: parse error before )' selopt_core.c:363: parse error before )'
selopt_core.c: In function `selopt_ip_defragment':
selopt_core.c:549: parse error before `)'
make[3]: *** [selopt_core.o] Error 1
make[3]: Leaving directory `/usr/src/lsm-2.4/security/selinux/selopt' make[2]: *** [_subdir_selopt] Error 2
make[2]: Leaving directory `/usr/src/lsm-2.4/security/selinux' make[1]: *** [_subdir_selinux] Error 2
make[1]: Leaving directory `/usr/src/lsm-2.4/security'
make: *** [_dir_security] Error 2
===========================================================

Quoted 2 lines
Quoted 2 lines

Did anyone here on the list compile SELinux on Slackware 8.x successfully?

= = = = = = = = = = = = = = = = = = = =

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.