error when compiling vim 6.1 in BLFS
I've installed all the dependencies for vim 6.1, but I got the following errors when compiling:
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:42: conflicting types for `memmove' auto/osdef.h:58:
previous declaration of `memmove' /usr/include/string.h:273: conflicting
types for `strcasecmp' auto/osdef.h:76: previous declaration of
`strcasecmp' /usr/include/string.h:277: conflicting types for
`strncasecmp' auto/osdef.h:79: previous declaration of `strncasecmp' In
file included from /usr/include/bits/string2.h:1185,
from /usr/include/string.h:360,
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:527: conflicting types for `malloc'
auto/osdef.h:124: previous declaration of `malloc' make[1]: ***
[objects/buffer.o] Error 1 make: *** [first] Error 2
cpp0: warning: changing search order for system directory
"/usr/local/include" cpp0: warning: as it has already been specified as
a non-system directory 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:42: conflicting types for `memmove' auto/osdef.h:58:
previous declaration of `memmove' /usr/include/string.h:273: conflicting
types for `strcasecmp' auto/osdef.h:76: previous declaration of
`strcasecmp' /usr/include/string.h:277: conflicting types for
`strncasecmp' auto/osdef.h:79: previous declaration of `strncasecmp' In
file included from /usr/include/bits/string2.h:1185,
from /usr/include/string.h:360,
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:527: conflicting types for `malloc'
auto/osdef.h:124: previous declaration of `malloc' make[1]: ***
[objects/buffer.o] Error 1 make: *** [first] Error 2
|