[WLANware] FFF 1.4.1 can't load library 'libm.so.0' bei rrdtool

Karsten Horsmann witchdoc at netzwech.de
Tue Oct 31 08:22:23 CET 2006


Hallo Sven-Ola,


also der Symlink unter /lib ist Müll. Sag ich jetzt mal so.

lrwxrwxrwx    1 root     root            9 Oct 30 17:46 /lib/libm.so.0 
-> libm-*.so

Nachdem ich diesen Symlink ersetzt hatte mit
rm /lib/libm.so.0
ln -s /lib/libm-0.9.27.so /lib/libm.so.0

ging es. Magst Du mal schauen, ich glaube es ist ein Bug.
Danke.

root at OLSR-APxy:~# ls -l /rom/lib/libm*
-rw-r--r--    1 root     root        25012 Oct  9 00:07 
/rom/lib/libm-0.9.27.so
lrwxrwxrwx    1 root     root           14 Oct 11 09:32 
/rom/lib/libm.so.0 -> libm-0.9.27.so
root at OLSR-APxy:~# rrdtool
rrdtool: can't load library 'libm.so.0'


root at OLSR-APxy:~# strace rrdtool
execve("/usr/bin/rrdtool", ["rrdtool"], [/* 10 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x2aaad000
readlink("/lib/ld-uClibc.so.0", "ld-uClibc-0.9.27.so", 1024) = 19
open("/lib/librrd.0", O_RDONLY)         = -1 ENOENT (No such file or 
directory)
open("/lib/librrd.0", O_RDONLY)         = -1 ENOENT (No such file or 
directory)
open("/usr/lib/librrd.0", O_RDONLY)     = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\20e\0"..., 
4096) = 4096
old_mmap(NULL, 847872, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2aaed000
old_mmap(0x2aaed000, 248548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 
3, 0) = 0x2aaed000
old_mmap(0x2ab69000, 337335, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED, 3, 0x3c000) = 0x2ab69000
close(3)                                = 0
munmap(0x2aaae000, 4096)                = 0
open("/lib/libz.so", O_RDONLY)          = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\340\17"..., 
4096) = 4096
old_mmap(NULL, 327680, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2abbc000
old_mmap(0x2abbc000, 62512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 
3, 0) = 0x2abbc000
old_mmap(0x2ac0b000, 1538, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0xf000) = 0x2ac0b000
close(3)                                = 0
munmap(0x2aaae000, 4096)                = 0
open("/lib/libm.so.0", O_RDONLY)        = -1 ENOENT (No such file or 
directory)
open("/lib/libm.so.0", O_RDONLY)        = -1 ENOENT (No such file or 
directory)
open("/usr/lib/libm.so.0", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/usr/X11R6/lib/libm.so.0", O_RDONLY) = -1 ENOENT (No such file or 
directory)
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x2aaae000
write(2, "", 0)                         = 0
write(2, "rrdtool", 7rrdtool)                  = 7
write(2, ": can\'t load library \'", 22: can't load library ') = 22
write(2, "libm.so.0", 9libm.so.0)                = 9
write(2, "\'\n", 2'
)                     = 2
munmap(0x2aaae000, 4096)                = 0
exit(16)                                = ?


root at OLSR-APxy:~# ls -l /lib/libm*
-rw-r--r--    1 root     root        25012 Oct  9 00:07 /lib/libm-0.9.27.so
lrwxrwxrwx    1 root     root            9 Oct 30 17:46 /lib/libm.so.0 
-> libm-*.so


root at OLSR-APxy:~# ls -l /lib/libm*
-rw-r--r--    1 root     root        25012 Oct  9 00:07 /lib/libm-0.9.27.so
lrwxrwxrwx    1 root     root            9 Oct 30 17:46 /lib/libm.so.0 
-> libm-*.so
root at OLSR-APxy:~# rm /lib/libm.so.0
root at OLSR-APxy:~# ls -l /lib/libm*
-rw-r--r--    1 root     root        25012 Oct  9 00:07 /lib/libm-0.9.27.so
root at OLSR-APxy:~# ln -s /lib/libm-0.9.27.so /lib/libm.so.0
root at OLSR-APxy:~# rrdtool

Sven-Ola Tuecke schrieb:
> Hi,
> 
> keine Ahnung was du da machst. Das rrdtool aus meinem Repo (unter 
> http://styx.commando.de/ipkg/packages/ ) nutzt die libm.so in der Form, wie 
> sie in der Default-Firmware vorhanden ist:
> 
> root at heidel-main:/lib# ls -l /rom/lib/libm*
> -rw-r--r--    1 root     root        25012 Oct  9 00:07 
> /rom/lib/libm-0.9.27.so
> lrwxrwxrwx    1 root     root           14 Oct 27 18:26 
> /rom/lib/libm.so.0 -> libm-0.9.27.so
> 
> Evt. Symlink in /lib geloescht? Oder mach'n "ipkg install strace" und 
> probier's nochmal damit. Oder ein "Neustart mit Format" und "ipkg 
> update;ipkg install freifunk-statistics-de".
> 
> HTH; Sven-Ola


-- 
MfG
Karsten Horsmann			http://www.netzwech.de



More information about the WLANware mailing list