Skip to contentSkip to conversation

checkpolicy-1.16 multiple compile job fix

PATCH Chris PeBenito 2 participants 2 messages Sep 10, 2004 – Sep 13, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Here is a patch for the checkpolicy Makefile to fix a compile problem with multiple compile jobs (make -j*).

One of the errors that was happening was:

policy_scan.l: In function `yylex':
policy_scan.l:48: error: `CLONE' undeclared (first use in this function) policy_scan.l:48: error: (Each undeclared identifier is reported only once
policy_scan.l:48: error: for each function it appears in.) policy_scan.l:50: error: `COMMON' undeclared (first use in this function)
[many more undeclared]

Another was:
policy_scan.l:23:19: y.tab.h: No such file or directory
make: *** [lex.yy.o] Error 1
make: *** Waiting for unfinished jobs....

Signature · 8 lines
Chris PeBenito
<[email protected]>
Developer,
Hardened Gentoo Linux
Embedded Gentoo Linux
 
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A  CB00 BC8E E42D E6AF 9243
Makefile +1 -1
@@ -48,7 +48,7 @@
 y.tab.c: policy_parse.y
 	$(YACC) -d policy_parse.y
 
-lex.yy.c: policy_scan.l
+lex.yy.c: policy_scan.l y.tab.c
 	$(LEX) policy_scan.l
 
 users.tab.c: users.y
#1 lore raw
Quoted 15 lines · Chris PeBenito

Here is a patch for the checkpolicy Makefile to fix a compile problem with multiple compile jobs (make -j*).

One of the errors that was happening was:

policy_scan.l: In function `yylex':
policy_scan.l:48: error: `CLONE' undeclared (first use in this function) policy_scan.l:48: error: (Each undeclared identifier is reported only once
policy_scan.l:48: error: for each function it appears in.) policy_scan.l:50: error: `COMMON' undeclared (first use in this function)
[many more undeclared]

Quoted 4 lines

Another was:
policy_scan.l:23:19: y.tab.h: No such file or directory
make: *** [lex.yy.o] Error 1
make: *** Waiting for unfinished jobs....

Possibly the diff below instead.

Index: checkpolicy/Makefile
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/checkpolicy/Makefile,v retrieving revision 1.22

Makefile +2 -2
diff -u -r1.22 Makefile
@@ -48,13 +48,13 @@
 y.tab.c: policy_parse.y
 	$(YACC) -d policy_parse.y
 
-lex.yy.c: policy_scan.l
+lex.yy.c: policy_scan.l y.tab.h
 	$(LEX) policy_scan.l
 
 users.tab.c: users.y
 	$(YACC) -d -o $@ $<
 
-lex.users.c: users.l
+lex.users.c: users.l users.tab.h 
 	$(LEX) -o$@ $<
 
 install: all
Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.