Murga-Projects Forums
murgaLua: cannot load shared libraries? - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: murgaLua: cannot load shared libraries? (/showthread.php?tid=176)


murgaLua: cannot load shared libraries? - pdinoto - 08-17-2007 03:15 AM

Hello,

I am trying to use murgaLua in a kind-of-embedded linux.
That is, a small linux I built using T2 (http://www.t2-project.org) which has a kdrive based X and busybox. Once built, I copied murgaLua (both std and _nonXft) and this is what I get when trying to execute it:

# ./bin/murgaLua
./bin/murgaLua: error while loading shared libraries: libsqlite3.so.0: cannon open shared object file: No such file or directory

of course, there is no such library, but since

# ldd ./bin/murgaLua

confirms it is "not a dynamic executable", I am a little puzzled.

Is this a glibc mismatch problem?

OTOH, I have a "development" version of that very same system, where I could build a matching murgaLua, but so far I had no luck with build-murgaLua-Linux.sh.

John, can you spare a sec and give us a "rebuild your murgaLua from sources" session? :-)

Regards!
///Pablo


RE: murgaLua: cannot load shared libraries? - pdinoto - 08-17-2007 03:58 AM

Ok, I managed to build my own murgaLua "by hand" (used the script build-murgaLua-Linux.sh as a guide) on the same buildroot the "small linux" was built with.

I get my brand new murgaLua_nonXft that gives the same error.

I could not attach a file to this thread, so I am pasting strace for the failing murgaLua next.

Hope this helps!


strace ./bin/murgaLua - pdinoto - 08-17-2007 04:02 AM

Code:
sh-3.2# strace ./bin/murgaLua
execve("./bin/murgaLua", ["./bin/murgaLua"], [/* 37 vars */]) = 0
old_mmap(0xc58000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOU
S, -1, 0xc58000) = 0xc58000
readlink("/proc/self/exe", "/root/murgaLua/bin/murgaLua", 4096) = 27
old_mmap(0x8048000, 1191936, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x804
8000
old_mmap(0x8048000, 1143099, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x8048000
mprotect(0x8048000, 1143096, PROT_READ|PROT_EXEC) = 0
old_mmap(0x8160000, 25995, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0
x117000) = 0x8160000
mprotect(0x8160000, 25992, PROT_READ|PROT_WRITE) = 0
old_mmap(0x8167000, 15596, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0
) = 0x8167000
brk(0x816b000)                          = 0x816b000
open("/lib/ld-linux.so.2", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \10\0\000"..., 512) = 512
old_mmap(NULL, 94208, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fd3000
old_mmap(0xb7fd3000, 82352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb7fd3000
old_mmap(0xb7fe8000, 5536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x14000) = 0xb7f
e8000
close(3)                                = 0
munmap(0xc01000, 360448)                = 0
brk(0)                                  = 0x816b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0777, st_size=13104, ...}) = 0
old_mmap(NULL, 13104, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fcf000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0|G\0\000"..., 512) = 512
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fce000
fstat64(3, {st_mode=S_IFREG|0777, st_size=74780, ...}) = 0
old_mmap(NULL, 82400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fb9000
old_mmap(0xb7fca000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x
10000) = 0xb7fca000
old_mmap(0xb7fcc000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0
) = 0xb7fcc000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\230\n\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0777, st_size=9952, ...}) = 0
old_mmap(NULL, 12416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fb5000
old_mmap(0xb7fb7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x
1000) = 0xb7fb7000
close(3)                                = 0
open("/usr/X11/lib/libXext.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\224%\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0777, st_size=45984, ...}) = 0
old_mmap(NULL, 48828, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fa9000
old_mmap(0xb7fb4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x
a000) = 0xb7fb4000
close(3)                                = 0
open("/usr/X11/lib/libX11.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\274B\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0777, st_size=859240, ...}) = 0
old_mmap(NULL, 855848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ed8000
old_mmap(0xb7fa5000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0
xcc000) = 0xb7fa5000
close(3)                                = 0
open("/lib/tls/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory
)
stat64("/lib/tls/i686/sse2", 0xbfc182c4) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbfc182c4)     = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbfc182c4)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbfc182c4)          = -1 ENOENT (No such file or directory)
open("/lib/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbfc182c4)    = -1 ENOENT (No such file or directory)
open("/lib/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbfc182c4)         = -1 ENOENT (No such file or directory)
open("/lib/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbfc182c4)         = -1 ENOENT (No such file or directory)
open("/lib/libsqlite3.so.0", O_RDONLY)  = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open("/usr/lib/tls/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or direc                                 tory)
stat64("/usr/lib/tls/i686/sse2", 0xbfc182c4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbfc182c4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2", 0xbfc182c4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbfc182c4)      = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory                                 )
stat64("/usr/lib/i686/sse2", 0xbfc182c4) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbfc182c4)     = -1 ENOENT (No such file or directory)
open("/usr/lib/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/sse2", 0xbfc182c4)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0777, st_size=8192, ...}) = 0
writev(2, [{"./bin/murgaLua", 14}, {": ", 2}, {"error while loading shared libra"..., 36},                                  {": ", 2}, {"libsqlite3.so.0", 15}, {": ", 2}, {"cannot open shared object file", 30}, {":                                  ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10./bin/murgaLua: error while loading                                  shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directo                                 ry
) = 129
exit_group(127)                         = ?
Process 30463 detached
sh-3.2# strace ./bin/murgaLua
execve("./bin/murgaLua", ["./bin/murgaLua"], [/* 37 vars */]) = 0
old_mmap(0xc58000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0xc58000) = 0xc58000
readlink("/proc/self/exe", "/root/murgaLua/bin/murgaLua", 4096) = 27
old_mmap(0x8048000, 1191936, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x8048000
old_mmap(0x8048000, 1143099, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x8048000
mprotect(0x8048000, 1143096, PROT_READ|PROT_EXEC) = 0
old_mmap(0x8160000, 25995, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0x117000) = 0x8160000
mprotect(0x8160000, 25992, PROT_READ|PROT_WRITE) = 0
old_mmap(0x8167000, 15596, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x8167000
brk(0x816b000)                          = 0x816b000
open("/lib/ld-linux.so.2", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \10\0\000"..., 512) = 512
old_mmap(NULL, 94208, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe9000
old_mmap(0xb7fe9000, 82352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb7fe9000
old_mmap(0xb7ffe000, 5536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x14000) = 0xb7ffe000
close(3)                                = 0
munmap(0xc01000, 360448)                = 0
brk(0)                                  = 0x816b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0777, st_size=13104, ...}) = 0
old_mmap(NULL, 13104, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe5000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0|G\0\000"..., 512) = 512
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe4000
fstat64(3, {st_mode=S_IFREG|0777, st_size=74780, ...}) = 0
old_mmap(NULL, 82400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fcf000
old_mmap(0xb7fe0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0xb7fe0000
old_mmap(0xb7fe2000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fe2000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\230\n\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0777, st_size=9952, ...}) = 0
old_mmap(NULL, 12416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fcb000
old_mmap(0xb7fcd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xb7fcd000
close(3)                                = 0
open("/usr/X11/lib/libXext.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\224%\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0777, st_size=45984, ...}) = 0
old_mmap(NULL, 48828, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fbf000
old_mmap(0xb7fca000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0xb7fca000
close(3)                                = 0
open("/usr/X11/lib/libX11.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\274B\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0777, st_size=859240, ...}) = 0
old_mmap(NULL, 855848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eee000
old_mmap(0xb7fbb000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xcc000) = 0xb7fbb000
close(3)                                = 0
open("/lib/tls/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2", 0xbffeee94) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbffeee94)     = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbffeee94)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbffeee94)          = -1 ENOENT (No such file or directory)
open("/lib/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbffeee94)    = -1 ENOENT (No such file or directory)
open("/lib/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbffeee94)         = -1 ENOENT (No such file or directory)
open("/lib/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbffeee94)         = -1 ENOENT (No such file or directory)
open("/lib/libsqlite3.so.0", O_RDONLY)  = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open("/usr/lib/tls/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/sse2", 0xbffeee94) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbffeee94) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2", 0xbffeee94) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbffeee94)      = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/sse2/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/sse2", 0xbffeee94) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbffeee94)     = -1 ENOENT (No such file or directory)
ENOENT (No such file or directory)", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libsqlite3.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0777, st_size=8192, ...}) = 0
writev(2, [{"./bin/murgaLua", 14}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libsqlite3.so.0", 15}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10./bin/murgaLua: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
) = 129
exit_group(127)                         = ?
Process 30484 detached




RE: murgaLua: cannot load shared libraries? - mikshaw - 08-17-2007 05:55 AM

I'm not sure what you're expecting.
Unless you modify the source, or statically link the library, you will need libsqlite3.so.0 on the target machine to run murgaLua no matter where its built.


RE: murgaLua: cannot load shared libraries? - pdinoto - 08-17-2007 06:36 AM

I understood murgaLua executable had all lua+fltk+sqlite used libraries compiled into it.

Since I don't need fltk libraries to run murgaLua, I did not expected to need libsqlite either.

Does it need anything else?


RE: murgaLua: cannot load shared libraries? - mikshaw - 08-17-2007 07:58 AM

MurgaLua uses libsqlite the same way it uses libxft. They are both libraries that are accessed at runtime, and not statically linked into the binary. FLTK is a completely different situation. As I understand it FLTK is a set of headers, not a library, so the code needs to be statically bound to Lua in order to use it with Lua. I'm guessing that if FLTK could be used as a dynamic library it would be.


RE: murgaLua: cannot load shared libraries? - JohnMurga - 08-20-2007 09:33 PM

mikshaw, that is only true for the Linux builds ...

murgaLua CAN be compiled with sqLite statically (as is done for mac and windows).

I'll post instructions for this when I get home tonight.

(I've been away)

Cheers
JohnM


RE: murgaLua: cannot load shared libraries? - mikshaw - 08-20-2007 11:55 PM

Quote:
that is only true for the Linux builds

I assumed that, yes, but pdinoto's issue *is* with linux =o)

Welcome back.


RE: murgaLua: cannot load shared libraries? - JohnMurga - 08-21-2007 12:15 AM

mikshaw Wrote:

Quote:
that is only true for the Linux builds

I assumed that, yes, but pdinoto's issue *is* with linux =o)


:-)

Yup, but it's only necessary to change one line in the Makefile to make the
Linux build static like the windows/mac builds ... But I don't have the code here :-(

Cheers
JohnM


RE: murgaLua: cannot load shared libraries? - mikshaw - 08-21-2007 01:57 AM

I guess that would be the LDFLAGS line? Not much idea how it would be changed, though.


RE: murgaLua: cannot load shared libraries? - pdinoto - 08-21-2007 04:00 AM

Well, having that as compile time option is great!

I hope to be able to craft a T2 package for murgaLua as soon as I finish dealing with some weird build problems I am having...

BTW, John, do you use T2 as part of work in PuppyLinux?

Thanks!


RE: murgaLua: cannot load shared libraries? - JohnMurga - 08-21-2007 04:43 PM

pdinoto Wrote:
Well, having that as compile time option is great!

It's not really an "option" as such :-)

Look for the line "linux_LINK_OPT = -l sqlite3" in the "src/Makefile", and change it to "/usr/local/lib/libsqlite3.a" (same as "macos_LINK_OPT").

pdinoto Wrote:
I hope to be able to craft a T2 package for murgaLua as soon as I finish dealing with some weird build problems I am having...

Cool, thanks !

pdinoto Wrote:
BTW, John, do you use T2 as part of work in PuppyLinux?

Nope, mostly due to the fact that I haven't had time to do anything with Puppy for many months :-(

Cheers
JohnM


RE: murgaLua: cannot load shared libraries? - pdinoto - 08-21-2007 08:07 PM

Ok, now I got it.

The fact that was misleading me is that upx compression hides the real required libraries from ldd.

If you run ldd on a not-yet-upx´ed binary, here shows the real dependencies:

sh-3.2# ldd ./bin/murgaLua
libpthread.so.0 => /lib/libpthread.so.0 (0xb7f01000)
libdl.so.0 => /lib/libdl.so.0 (0xb7efd000)
libXext.so.6 => /usr/X11/lib/libXext.so.6 (0xb7ef1000)
libX11.so.6 => /usr/X11/lib/libX11.so.6 (0xb7e20000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb7dd2000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7cfd000)
libm.so.0 => /lib/libm.so.0 (0xb7cf1000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7ce7000)
libc.so.0 => /lib/libc.so.0 (0xb7c9f000)
libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xb7c9c000)
libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xb7c97000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7f17000)