Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2014 00:56:35 GMT
From:      Kenji Rikitake <kenji@k2r.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185650: editors/vim: liblua-5.2.so is not loaded when invoked from vim command
Message-ID:  <201401110056.s0B0uZci091972@oldred.freebsd.org>
Resent-Message-ID: <201401110100.s0B1027H045417@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185650
>Category:       ports
>Synopsis:       editors/vim: liblua-5.2.so is not loaded when invoked from vim command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 11 01:00:02 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Kenji Rikitake
>Release:        10.0-PRERELEASE
>Organization:
>Environment:
FreeBSD minimax.priv.k2r.org 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #23 r260159: Wed Jan  1 17:18:05 JST 2014     root@minimax.priv.k2r.org:/usr/obj/usr/src/sys/K2RKERNEL  amd64
>Description:
/usr/local/lib/liblua-5.2 is not loaded when lua script is invoked from vim.

Error message:
E370: Could not load library liblua-5.2
Lua library cannot be loaded.
>How-To-Repeat:
vim
:lua print(_VERSION)
>Fix:
The shared library suffix (.so) is not added in DYNAMIC_LUA_DLL. Patch attached.

This has been an unresolved issue since December 2013. See PR ports/184588 for the details. The maintainer has not been responded as of 11-JAN-2014 0055UTC.

Patch attached with submission follows:

--- files/OLD/patch-configure.orig	2013-12-03 04:48:37.000000000 +0900
+++ files/patch-configure	2014-01-11 09:28:58.000000000 +0900
@@ -42,7 +42,7 @@
        LUA_LIBS=""
 -      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
 +      vi_cv_version_lua=${LUA_VER}
-+      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}\\\" $LUA_CFLAGS"
++      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"liblua-${vi_cv_version_lua}.so\\\" $LUA_CFLAGS"
      fi
      if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
         test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401110056.s0B0uZci091972>