OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004651 [lua] regular use tweak always 2010-12-31 17:09 2012-12-18 12:40
Reporter jon View Status public  
Assigned To dam
Priority normal Resolution fixed  
Status closed  
Summary 0004651: Dynamic shared object library location is incorrect.
Description 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.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010248)
dam (administrator)
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 (administrator)
2012-12-18 12:40

This is fixed in 5.2.1,REV=2012.12.18 and pushed to unstable/.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker