Closed erf closed 4 years ago
i get an error when trying to build latest (84c2620) on macOS.
here is the output from configure and make.
configure
make
~/projects/vis % ./configure checking for C compiler... cc checking whether C compiler works... yes checking whether compiler accepts -Werror=unknown-warning-option... yes checking whether compiler accepts -Werror=unused-command-line-argument... yes checking whether linker accepts -Werror=unknown-warning-option... yes checking whether linker accepts -Werror=unused-command-line-argument... yes checking whether compiler accepts -pipe... yes checking whether compiler accepts -O2... yes checking whether compiler accepts -ffunction-sections... yes checking whether compiler accepts -fdata-sections... yes checking whether linker accepts -Wl,--gc-sections... no checking whether compiler accepts -fPIE... yes checking whether compiler accepts -fstack-protector-all... yes checking whether linker accepts -Wl,-z,now... no checking whether linker accepts -Wl,-z,relro... no checking whether linker accepts -pie... no creating config.mk... done checking for pkg-config... yes checking for libcurses... checking for ncursesw... yes checking for libtermkey... yes checking for libtre... yes checking for liblua >= 5.2 ... checking for lua... yes checking for Lua statically linked liblpeg... checking for static lpeg... no checking for static lua5.3-lpeg... no checking for static lua5.2-lpeg... no checking for memrchr... no completing config.mk... done ~/projects/vis % sudo make Password: cc -pipe -O2 -ffunction-sections -fdata-sections -fPIE -fstack-protector-all -I/usr/local/Cellar/libtermkey/0.22/include -I/usr/local/Cellar/tre/0.8.0/include -I/usr/local/include/lua -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_3 -DLUA_COMPAT_ALL -std=c99 -D_POSIX_C_SOURCE=200809L -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -DNDEBUG -D_FORTIFY_SOURCE=2 -D_DARWIN_C_SOURCE -DVERSION=\"v0.6-33-g84c2620\" -DHAVE_MEMRCHR=0 -DVIS_PATH=\"/usr/local/share/vis\" -DCONFIG_HELP=1 -DCONFIG_CURSES=1 -DCONFIG_LUA=1 -DCONFIG_LPEG=0 -DCONFIG_TRE=1 -DCONFIG_SELINUX=0 -DCONFIG_ACL=0 array.c buffer.c libutf.c main.c map.c sam.c text.c text-motions.c text-objects.c text-util.c ui-terminal.c view.c vis.c vis-lua.c vis-modes.c vis-motions.c vis-operators.c vis-registers.c vis-marks.c vis-prompt.c vis-text-objects.c text-regex-tre.c -L/usr/local/Cellar/libtermkey/0.22/lib -ltermkey -lncurses -L/usr/local/Cellar/tre/0.8.0/lib -ltre -L/usr/local/lib -llua -lm -lc -o vis In file included from main.c:1175: ./config.h:107:26: error: use of undeclared identifier 'VIS_ACTION_TEXT_OBJECT_ENTIRE_OUTER'; did you mean 'VIS_ACTION_TEXT_OBJECT_LINE_OUTER'? { "ae", ACTION(TEXT_OBJECT_ENTIRE_OUTER) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:15:1: note: expanded from here VIS_ACTION_TEXT_OBJECT_ENTIRE_OUTER ^ main.c:307:2: note: 'VIS_ACTION_TEXT_OBJECT_LINE_OUTER' declared here VIS_ACTION_TEXT_OBJECT_LINE_OUTER, ^ In file included from main.c:1175: ./config.h:129:26: error: use of undeclared identifier 'VIS_ACTION_TEXT_OBJECT_ENTIRE_INNER'; did you mean 'VIS_ACTION_TEXT_OBJECT_LINE_INNER'? { "ie", ACTION(TEXT_OBJECT_ENTIRE_INNER) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:31:1: note: expanded from here VIS_ACTION_TEXT_OBJECT_ENTIRE_INNER ^ main.c:308:2: note: 'VIS_ACTION_TEXT_OBJECT_LINE_INNER' declared here VIS_ACTION_TEXT_OBJECT_LINE_INNER, ^ In file included from main.c:1175: ./config.h:146:26: error: use of undeclared identifier 'VIS_ACTION_SELECTIONS_COMBINE_UNION' { "z|", ACTION(SELECTIONS_COMBINE_UNION) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:44:1: note: expanded from here VIS_ACTION_SELECTIONS_COMBINE_UNION ^ In file included from main.c:1175: ./config.h:147:26: error: use of undeclared identifier 'VIS_ACTION_SELECTIONS_COMBINE_INTERSECT'; did you mean 'VIS_ACTION_SELECTIONS_INTERSECT'? { "z&", ACTION(SELECTIONS_COMBINE_INTERSECT) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:45:1: note: expanded from here VIS_ACTION_SELECTIONS_COMBINE_INTERSECT ^ main.c:283:2: note: 'VIS_ACTION_SELECTIONS_INTERSECT' declared here VIS_ACTION_SELECTIONS_INTERSECT, ^ In file included from main.c:1175: ./config.h:148:26: error: use of undeclared identifier 'VIS_ACTION_SELECTIONS_COMBINE_LONGER'; did you mean 'VIS_ACTION_SELECTIONS_COMPLEMENT'? { "z+", ACTION(SELECTIONS_COMBINE_LONGER) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:46:1: note: expanded from here VIS_ACTION_SELECTIONS_COMBINE_LONGER ^ main.c:284:2: note: 'VIS_ACTION_SELECTIONS_COMPLEMENT' declared here VIS_ACTION_SELECTIONS_COMPLEMENT, ^ In file included from main.c:1175: ./config.h:149:26: error: use of undeclared identifier 'VIS_ACTION_SELECTIONS_COMBINE_SHORTER' { "z-", ACTION(SELECTIONS_COMBINE_SHORTER) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:47:1: note: expanded from here VIS_ACTION_SELECTIONS_COMBINE_SHORTER ^ In file included from main.c:1175: ./config.h:150:26: error: use of undeclared identifier 'VIS_ACTION_SELECTIONS_COMBINE_LEFTMOST' { "z<", ACTION(SELECTIONS_COMBINE_LEFTMOST) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:48:1: note: expanded from here VIS_ACTION_SELECTIONS_COMBINE_LEFTMOST ^ In file included from main.c:1175: ./config.h:151:26: error: use of undeclared identifier 'VIS_ACTION_SELECTIONS_COMBINE_RIGHTMOST'; did you mean 'VIS_ACTION_SELECTIONS_ROTATE_RIGHT'? { "z>", ACTION(SELECTIONS_COMBINE_RIGHTMOST) }, ^ ./config.h:4:42: note: expanded from macro 'ACTION' #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], ^ <scratch space>:49:1: note: expanded from here VIS_ACTION_SELECTIONS_COMBINE_RIGHTMOST ^ main.c:278:2: note: 'VIS_ACTION_SELECTIONS_ROTATE_RIGHT' declared here VIS_ACTION_SELECTIONS_ROTATE_RIGHT, ^ 8 errors generated. make: *** [vis] Error 1
fixed it by deleting config.h
config.h
i get an error when trying to build latest (84c2620) on macOS.
here is the output from
configure
andmake
.