Skip to contentSkip to conversation

Small patch to allow semodule_deps to build

PATCH Daniel J Walsh 3 participants 4 messages Feb 7, 2007 – Feb 8, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
semodule_deps/semodule_deps.c +1 -1
@@ -16,7 +16,7 @@
  * of avrule_blocks - even in an ABI safe way - seems undesirable.
  */
 #include <sepol/module.h>
-#include <sepol/errno.h>
+#include <sepol/errcodes.h>
 #include <sepol/policydb/policydb.h>
 
 #include <getopt.h>
#1 lore raw
Quoted 7 lines · Daniel J Walsh

------------------------------------------------------------------------

semodule_deps/semodule_deps.c line 22

Quoted 8 lines
semodule_deps/semodule_deps.c +1 -1
@@ -16,7 +16,7 @@
  * of avrule_blocks - even in an ABI safe way - seems undesirable.
  */
 #include <sepol/module.h>
-#include <sepol/errno.h>
+#include <sepol/errcodes.h>
 #include <sepol/policydb/policydb.h>
 
 #include <getopt.h>

This shouldn't be necessary - errcodes.h should be included via policydb.h -> symtab.h -> hashtab.h. Also, I can't reproduce this locally.

Karl

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

#2 lore raw
Quoted 15 lines · Karl MacMillan
Quoted 14 lines · Daniel J Walsh

------------------------------------------------------------------------

semodule_deps/semodule_deps.c +1 -1
@@ -16,7 +16,7 @@
  * of avrule_blocks - even in an ABI safe way - seems undesirable.
  */
 #include <sepol/module.h>
-#include <sepol/errno.h>
+#include <sepol/errcodes.h>
 #include <sepol/policydb/policydb.h>
 
Quoted 4 lines

semodule_deps/semodule_deps.c line 22

Quoted 1 line
semodule_deps/semodule_deps.c +0 -0
 #include <getopt.h>

This shouldn't be necessary - errcodes.h should be included via policydb.h -> symtab.h -> hashtab.h. Also, I can't reproduce this locally.

Actually, Dan is correct at least in removing #include <sepol/errno.h> - that was what you had originally called the header, but renamed to errcodes.h in response to my comments. So you (and I) had a lingering errno.h left around from previous builds that obscured the broken build. cd trunk/
rm -rf ~/obj
make DESTDIR=~/obj install
to reproduce.

Signature · 8 lines
Stephen Smalley
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.
#3 lore raw
Quoted 18 lines · Stephen Smalley
Quoted 14 lines · Karl MacMillan
Quoted 13 lines · Daniel J Walsh

------------------------------------------------------------------------

semodule_deps/semodule_deps.c +1 -1
@@ -16,7 +16,7 @@
  * of avrule_blocks - even in an ABI safe way - seems undesirable.
  */
 #include <sepol/module.h>
-#include <sepol/errno.h>
+#include <sepol/errcodes.h>
 #include <sepol/policydb/policydb.h>
 
Quoted 2 lines

semodule_deps/semodule_deps.c line 22

Quoted 1 line
semodule_deps/semodule_deps.c +0 -0
 #include <getopt.h>

This shouldn't be necessary - errcodes.h should be included via policydb.h -> symtab.h -> hashtab.h. Also, I can't reproduce this locally.

Quoted 9 lines

Actually, Dan is correct at least in removing #include <sepol/errno.h> - that was what you had originally called the header, but renamed to errcodes.h in response to my comments. So you (and I) had a lingering errno.h left around from previous builds that obscured the broken build. cd trunk/
rm -rf ~/obj
make DESTDIR=~/obj install
to reproduce.

Yep - guess my process needs a little fixing.

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