load_policy.c:351:1: error: "MNT_DETACH" redefined

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

 



I get an error while compiling libselinux
with a simple "make"

load_policy.c:351:1: error: "MNT_DETACH" redefined
In file included from load_policy.c:5:
/usr/include/sys/mount.h:102:1: error: this is the location of the
previous definition
make[1]: *** [load_policy.o] Error 1
make[1]: Leaving directory `/home/name/LFS/SELinux/libselinux-2.0.79/src'
make: *** [all] Error 2

but if I:
make CC="/usr/bin/i686-pc-linux-gnu-gcc-4.4.0" CFLAGS="-march=core2
-mtune=core2 -pipe -O2 -fomit-frame-pointer" CXXFLAGS="${CFLAGS}"
MAKEOPTS="{-j3}"
libselinux will compiled with just a:

load_policy.c:351:1: warning: "MNT_DETACH" redefined
In file included from load_policy.c:5:
/usr/include/sys/mount.h:102:1: warning: this is the location of the
previous definition


if I change load_policy.c(to the best of my knowledge)
with the attached patch
and then run make normally
libselinux will compile

-- 
Justin P. Mattock

Attachment: MNT_DETACH.patch
Description: Binary data


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

  Powered by Linux