vim 7.1 fails to build
bounceme opened this issue · 4 comments
bounceme commented
tgetent()
causes an error
blueyed commented
From config.log:
configure:11674: gcc -o conftest -g -O2 -L/usr/local/lib conftest.c -lncurses >&5
conftest.c:48:15: error: duplicate 'unsigned'
#define dev_t unsigned
^
conftest.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int]
main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Passing in --with-tlib
works around this.
But then it later fails to build:
make[2]: Entering directory '/vim/vim-vim/vim-v7.1/src/xxd'
gcc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DUNIX -o xxd xxd.c
make[2]: Leaving directory '/vim/vim-vim/vim-v7.1/src/xxd'
gcc -c -I. -Iproto -DHAVE_CONFIG_H -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -o objects/buffer.o buffer.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -o objects/charset.o charset.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -o objects/diff.o diff.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -o objects/digraph.o digraph.c
In file included from vim.h:32:0,
from diff.c:14:
auto/config.h:76:15: error: duplicate 'unsigned'
#define dev_t unsigned
^
In file included from vim.h:32:0,
from buffer.c:28:
auto/config.h:76:15: error: duplicate 'unsigned'
#define dev_t unsigned
^
In file included from vim.h:32:0,
from charset.c:10:
auto/config.h:76:15: error: duplicate 'unsigned'
#define dev_t unsigned
^
In file included from vim.h:32:0,
from digraph.c:14:
auto/config.h:76:15: error: duplicate 'unsigned'
#define dev_t unsigned
^
make[1]: *** [Makefile:2302: objects/charset.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2305: objects/diff.o] Error 1
make[1]: *** [Makefile:2308: objects/digraph.o] Error 1
make[1]: *** [Makefile:2299: objects/buffer.o] Error 1
make[1]: Leaving directory '/vim/vim-vim/vim-v7.1/src'
make: *** [Makefile:26: first] Error 2
+ bail Make failed
+ echo Make failed
Make failed
+ exit 1
The command '/bin/sh -c install_vim -tag v7.1 -name vim71 -py -build' returned a non-zero code: 1
blueyed commented
This was fixed in v7.1.148: vim/vim@e74455a
bounceme commented
closing, it's an issue with the old vim
blueyed commented
Re-opening: I have a fix for this already.