Mantis - lua
Viewing Issue Advanced Details
4651 regular use tweak always 2010-12-31 17:09 2012-12-18 12:40
jon  
dam  
normal  
closed  
fixed  
none    
none  
0004651: Dynamic shared object library location is incorrect.
The shared object library location is incorrect in this executable and should be defined as "/opt/csw". e.g. loading the lua-gd component then I get an error such as follows:

module 'gd' not found:

        no field package.preload['gd']
        no file './gd.lua'
        no file '/usr/local/share/lua/5.1/gd.lua'
        no file '/usr/local/share/lua/5.1/gd/init.lua'
        no file '/usr/local/lib/lua/5.1/gd.lua'
        no file '/usr/local/lib/lua/5.1/gd/init.lua'
        no file './gd.so'
        no file '/usr/local/lib/lua/5.1/gd.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'

The expectation is that the shared object directory is "/opt/csw/lib/lua/5.1" which means that LUA_ROOT in luaconf.h should be changed from "/usr/local" to "/opt/csw". The directories "/opt/csw/lib/lua/5.1" and "/opt/csw/share/lua/5.1" do exist in the package install however at the moment they are not being accessed by the binary that has been built.

BTW: Thanks for packaging it.
Issue History
2010-12-31 17:09 jon New Issue
2012-12-18 09:41 dam Status new => assigned
2012-12-18 09:41 dam Assigned To => dam
2012-12-18 09:43 dam Note Added: 0010248
2012-12-18 09:43 dam Status assigned => acknowledged
2012-12-18 12:40 dam Note Added: 0010251
2012-12-18 12:40 dam Status acknowledged => closed
2012-12-18 12:40 dam Resolution open => fixed

Notes
(0010248)
dam   
2012-12-18 09:43   
The current package 5.2.1,REV=2012.07.03 has a similar error missing a slash:

dam@unstable10s [unstable10s]:/home/dam/mgar/pkg > lua
Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require "gd"
stdin:1: module 'gd' not found:
        no field package.preload['gd']
        no file '/opt/cswshare/lua/5.2/gd.lua'
        no file '/opt/cswshare/lua/5.2/gd/init.lua'
        no file '/opt/cswlib/lua/5.2/gd.lua'
        no file '/opt/cswlib/lua/5.2/gd/init.lua'
        no file './gd.lua'
        no file '/opt/cswlib/lua/5.2/gd.so'
        no file '/opt/cswlib/lua/5.2/loadall.so'
        no file './gd.so'
(0010251)
dam   
2012-12-18 12:40   
This is fixed in 5.2.1,REV=2012.12.18 and pushed to unstable/.