when lua is being invoked from vim, the following error message shows up: E370: Could not load library liblua-5.1 Lua library cannot be loaded Fix: Patch as in the attached file. Patch details: Summary * This is a patch for <http://svnweb.freebsd.org/ports/head/editors/vim/Makefile?revision=335790> (Ports editors/vim r335790) to fix the following error when lua is being invoked from vim: E370: Could not load library liblua-5.1 Lua library cannot be loaded. * Two files are changed: Makefile and files/patch-configure ## on Makefile * Change CONF_OPT_LUA_PREFIX using ${LOCALBASE} to ${LUA_PREFIX} since <bsd.lua.mk> is assumed * /usr/ports/Mk/Uses/iconv.mk handles existence and non-existence of libiconv.so: always enable "USES+= iconv" ## on files/patch-configure * Rebuild from 7.4.110 src/auto/configure * move definition of "vi_cv_version_lua=${LUA_VER}" * add .so to "-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}.so\\\" in LUA_CFLAGS for properly loading the shared library of lua from /usr/local/lib/liblua-${LUA_VER}.so Patch attached with submission follows: How-To-Repeat: /usr/local/bin/vim type ":" to enter ex prompt then type "lua print(100)"
Responsible Changed From-To: freebsd-ports-bugs->sunpoet Over to maintainer (via the GNATS Auto Assign Tool)
This patch fixes the issue on FreeBSD 9.2. I commend it to the maintainer.
This bug hasn't been fixed on Port editors/vim 7.4.110_3. The maintainer sunpoet doesn't respond for a month. I've issued a new PR ports/185650 again including a one-line fix for 7.4.110_3. I'd be glad if bapt, who did the modification for 7.4.110_3, takes a look at this. Kenji Rikitake
State Changed From-To: open->closed should be fixed now.