Vim ---Compiling from source failes on CentOS 5.4

266 views
Skip to first unread message

Majian

unread,
Nov 21, 2009, 9:38:39 PM11/21/09
to vim...@googlegroups.com
Hi, all:

  Running make gives me the following error  when I try to build Vim 7.2

 [root@foo vim72]# make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
make[1]: Entering directory `/opt/vim72/src'
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12     -g -O2         -o objects/os_unix.o os_unix.c
os_unix.c:45:30: error: selinux/selinux.h: No such file or directory
os_unix.c: In function ‘mch_copy_sec’:
os_unix.c:2615: error: ‘security_context_t’ undeclared (first use in this function)
os_unix.c:2615: error: (Each undeclared identifier is reported only once
os_unix.c:2615: error: for each function it appears in.)
os_unix.c:2615: error: expected ‘;’ before ‘from_context’
os_unix.c:2616: error: expected ‘;’ before ‘to_context’
os_unix.c:2618: error: ‘from_context’ undeclared (first use in this function)
os_unix.c:2631: error: ‘to_context’ undeclared (first use in this function)
make[1]: *** [objects/os_unix.o] Error 1
make[1]: Leaving directory `/opt/vim72/src'
make: *** [first] Error 2


Is  it the os_unix.c file error? BTM , My laptop OS is CentOS 5.4 i686
Any help with this problem would be very appreciated ...


Thanks  in advance ~

Reid Thompson

unread,
Nov 21, 2009, 9:56:00 PM11/21/09
to vim...@googlegroups.com
Majian wrote:
> Hi, all:
>
> Running make gives me the following *error * when I try to build *Vim* 7.2

perhaps add
--disable-selinux Don't check for SELinux support.
to the configure command

Majian

unread,
Nov 21, 2009, 10:13:31 PM11/21/09
to vim...@googlegroups.com
Yeah! That looks fine ~Thanks ~

Gregory Margo

unread,
Nov 22, 2009, 3:33:00 PM11/22/09
to vim...@googlegroups.com
On Sat, Nov 21, 2009 at 09:56:00PM -0500, Reid Thompson wrote:
> Majian wrote:
> > Running make gives me the following *error * when I try to build *Vim* 7.2

> > os_unix.c:45:30: error: selinux/selinux.h: No such file or directory

> > Is it the os_unix.c file error? BTM , My laptop OS is CentOS 5.4 i686


> > Any help with this problem would be very appreciated ...
>

> perhaps add
> --disable-selinux Don't check for SELinux support.
> to the configure command
>

Alternatively, you could install the "libselinux-devel" package.

--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gregory H. Margo
gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org

newyorkvolleyball

unread,
Jan 13, 2010, 3:57:51 PM1/13/10
to vim_use
Thanks Gregory!

I had the same problem with the VIM installation - it was breaking on
the selinux/selinux.h line but ran "yum install libselinux-devel" and
it ran like a champ. You da man - I *almost* installed a kernel
header to fix it (which would have led me to be in over my head!).

^_^

Reply all
Reply to author
Forward
0 new messages