[ale] Compiling VIM with gui option on RH8
Bill Hamilton
bhamilto at adelphia.net
Thu Nov 7 13:02:11 EST 2002
Anyone running GNU/Linux Red Hat 8.0 and have tried to compile VIM with
the GUI option. I don't know why they ship the binaries without
compiling the GUI into the editor (propbably because you don't know what
GUI the person is going to pick and you want vi working on the system)
but they ship the source. The "configure --enable-gui" seemed to work
just fine but compiling from either the SRPMS or source download from
vim.org produced the following. I've had my head in Java (and
Microsoft crap) for the past year or two so my C/C++ is a little rusty.
I've never had this problem (output below) on any previous dist (since
4.2) of RH. Can't find anything on it on the web either. Strange.
-Bill Hamilton
bhamilto at adelphia.net
--snip--
[root at flame vim61]# 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 `/usr/src/redhat/SOURCES/vim61/src'
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/local/include -g -O2 -I/usr/X11R6/include
-o objects/buffer.o buffer.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
In file included from /usr/X11R6/include/X11/Intrinsic.h:64,
from gui.h:34,
from structs.h:73,
from vim.h:1327,
from buffer.c:29:
/usr/include/string.h:43: conflicting types for `memmove'
auto/osdef.h:58: previous declaration of `memmove'
/usr/include/string.h:288: conflicting types for `strcasecmp'
auto/osdef.h:76: previous declaration of `strcasecmp'
/usr/include/string.h:292: conflicting types for `strncasecmp'
auto/osdef.h:79: previous declaration of `strncasecmp'
In file included from /usr/include/bits/string2.h:1211,
from /usr/include/string.h:375,
from /usr/X11R6/include/X11/Intrinsic.h:64,
from gui.h:34,
from structs.h:73,
from vim.h:1327,
from buffer.c:29:
/usr/include/stdlib.h:554: conflicting types for `malloc'
auto/osdef.h:124: previous declaration of `malloc'
make[1]: *** [objects/buffer.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/vim61/src'
make: *** [first] Error 2
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list