View Single Post
  #1   (View Single Post)  
Old 31st July 2009
mururoa mururoa is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 50
Default Strange lib problem

Hello,
First I have to say I use PC-BSD 7.1.1, based on FreeBSD 7.2. That may be related.
I had today a very strange lib problem.
I installed the kid game gcompris with the ports. No special problem found.
Once installed I tried to start it and I have the error :
Code:
$ gcompris
/libexec/ld-elf.so.1: Shared object "libicuuc.so.38" not found, required by "libicui18n.so.38"
$
But if I check it I can find the 'missing' lib :
Code:
$ ls -l /usr/local/lib/libicuuc*
lrwxr-xr-x  1 root  wheel       16 31 jul 13:58 /usr/local/lib/libicuuc.so -> libicuuc.so.38.1
lrwxr-xr-x  1 root  wheel       16 31 jul 13:58 /usr/local/lib/libicuuc.so.38 -> libicuuc.so.38.1
-r--r--r--  1 root  wheel  1438457 31 jul 13:58 /usr/local/lib/libicuuc.so.38.1
Mmm, all seems ok.
I check /etc/defaults/rc.conf and the ldconfig_paths include /usr/local/lib.
So I created /etc/libmap.conf and put in it :
Code:
libicuuc.so.38 /usr/local/lib/libicuuc.so.38.1
And this time the error is :
Code:
$ gcompris
/libexec/ld-elf.so.1: Shared object "/usr/local/lib/libicuuc.so.38.1" not found, required by "libicui18n.so.38"
I must admit that I'm lost at this point. It seems gcompris cant find the existing lib.
So I play a little with ldconfig like this :
Code:
# ldconfig -elf
[root@pcbsd /usr/local/lib]# ldd libicui18n.so.38.1
libicui18n.so.38.1:                                
        libicuuc.so.38 => not found (0x0)          
        libicudata.so.38 => /usr/local/lib/libicudata.so.38 (0x800c56000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x801845000)          
        libm.so.5 => /lib/libm.so.5 (0x801a51000)                        
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x801b6b000)                
        libc.so.7 => /lib/libc.so.7 (0x800633000)                        
[root@pcbsd /usr/local/lib]# ldconfig -i
[root@pcbsd /usr/local/lib]# ldd libicui18n.so.38.1
libicui18n.so.38.1:                                
ldd: libicui18n.so.38.1: Shared object "libicui18n.so.38.1" not found, required by "ldd"
libicui18n.so.38.1: exit status 1
Arg !
Some help ?
Reply With Quote