[luci] luci modules not loading correctly

Andrew Grove agrove at deltamobile.com
Mon Aug 24 22:30:43 CEST 2009


Hello LuCI group,

I am trying to cross-compile LuCI to run on my linux based ARM9 embedded 
processor (not a Linksys WRT platform).  I have already compiled Lua 
5.1.4 and LuCI 0.8.6 for my target platform.  I can verify Lua works on 
my target by running Lua interactively and executing a few commands.  To 
launch the lucittpd server I wrote a script (similar to build/hostenv.sh 
in the source download) that sets up the Lua and other environment 
variables before starting lucittpd.  The lucittpd program runs be I get 
the below error:

...sr/local/luci/usr/lib/lua/luci/ttpd/handler/file.lua:21: loop or 
previous error loading module 'luci.fs'
/usr/local/luci/usr/lib/lua/luci/dispatcher.lua:28: loop or previous 
error loading module 'luci.fs'

The LuCI build files (the contents of the host directory in my build 
directory) are located at /usr/local/luci on my target platform.  I have 
done some digging in Lua and found that this error comes from loadlib.c: 
ll_require().  The strange thing is that if I setup my environment 
variables the same way and run Lua interactively, I can require 
"luci.fs" and access its function without any problems. 

The LuCI source built and ran just fine on my linux desktop, but I'm at 
a loss as to why it's not running on my target.  Has anyone experienced 
this behavior before?  Any input on what to try next would be appreciated. 



Thanks,


Andrew



More information about the luci mailing list