Hello
I'm trying to investigate why Lua fails loading a module on an appliance running uClinux:
Code:
appliance> ./lua -l luasql.sqlite3
./lua: can't resolve symbol '_luaL_ref'
When running ldd on a workstation...
Code:
workstation#/opt/uClinux-2010/bfin-linux-uclibc/bin/bfin-linux-uclibc-ldd
/var/tmp/lua-5.1.4/src/lua
ldd: can't map cache '/etc/ld.so.cache'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for 'not found'
checking sub-depends for '/lib/libc.so.6'
libdl.so.0 => not found (0x00000000)
libm.so.0 => not found (0x00000000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
libc.so.0 => not found (0x00000000)
libc.so.6 => /lib/libc.so.6 (0x00000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
... and then checking which libraries are available on the appliance...
Code:
appliance> find / -name "libdl.so.0"
/lib/libdl.so.0
appliance> find / -name "libm.so.0"
/lib/libm.so.0
appliance> find / -name "libgcc_s.so.1"
/lib/libgcc_s.so.1
appliance> find / -name "libc.so.0"
/lib/libc.so.0
appliance> find / -name "libc.so.6"
appliance> find / -name "ld-linux*"
appliance>
... it appears that a couple of them are missing.
Could those two missing shared libraries explain the issue I'm having?
Incidenty, is the source code for "ldd" available, so I can try cross-compiling and running it on the appliance?
Thank you.