[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Investigating "can't resolve symbol"?
- From: Gilles Ganault <gilles.ganault@...>
- Date: Tue, 25 Jan 2011 23:24:34 +0100
Sorry for having to ask for help again :-/ When trying to load the
LuaSQL module on the appliance running uClinux-dist, I get the
/var/tmp> ./lua -lluasql.sqlite3
./lua: can't resolve symbol '_luaL_ref'
As the appliance didn't have "ldd", I fetched it from the latest
uClinux-dist and cross-compiled it with the same toolchain:
/var/tmp> ./ldd /usr/local/lib/lua/5.1.4/luasql/sqlite3.so
ldd: can't open cache '/etc/ld.so.cache'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for '/lib/libc.so.0'
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x220e460)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
libc.so.0 => /lib/libc.so.0 (0x00000000)
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
So it looks like LuaSQL has the libraries it needs.
The LuaSQL page says: "All LuaSQL drivers follow the package model for
Lua 5.1 and therefore should be "installed" in your package.path."
I don't know what package.path is. Could it explain the error above?
Do I need to perform an additional action after putting sqlite3.so in
Thank you for any help.