libc6: ld.so.cache not being read

Bug #1051459 reported by Nathan Rennie-Waldock
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Raspbian
Fix Released
Undecided
Unassigned

Bug Description

In 2.13-35, ld.so seems to be ignoring ld.so.cache. Last version I know it was working in is 2.13-33.

Part of `LD_DEBUG=libs ldd /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin`:
      1202: find library=libbcm_host.so [0]; searching
      1202: search cache=/etc/ld.so.cache
      1202: search path=/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf:/lib:/usr/lib (system search path)
      1202: trying file=/lib/arm-linux-gnueabihf/libbcm_host.so
      1202: trying file=/usr/lib/arm-linux-gnueabihf/libbcm_host.so
      1202: trying file=/lib/libbcm_host.so
      1202: trying file=/usr/lib/libbcm_host.so
        libbcm_host.so => not found

root:~# cat /etc/ld.so.conf.d/vmcs.conf
/opt/vc/lib
root:~# rm -f /etc/ld.so.cache
root:~# ldconfig
root:~# ldconfig -p | grep libbcm_host
        libbcm_host.so (libc6,2048) => /opt/vc/lib/libbcm_host.so
root:~# LD_LIBRARY_PATH=/opt/vc/lib/ ldd /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin | grep libbcm
        libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x40f9c000)

With 2.13-33:
root:~# LD_DEBUG=libs ldd /opt/xbmc-bcm/xbmc-bin/lib/xbmc/xbmc.bin
      1871: find library=libbcm_host.so [0]; searching
      1871: search cache=/etc/ld.so.cache
      1871: trying file=/opt/vc/lib/libbcm_host.so
        libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x40f6f000)

Revision history for this message
Federico Cuello (fedux) wrote :

Same here in ArchLinux arm for RB-pi

Revision history for this message
peter green (plugwash) wrote :

Is this still an issue in current versions of raspbian? I notice there have been a few revisions to the eglibc packaging since you reported this.

Revision history for this message
peter green (plugwash) wrote :

This seems to be an issue of inadequate cleanup during various changes in the way ldconfig handles hard float libraries. It just hit again in some cases with the latest update.

I'm now in discussion with the debian arm porters about fixing this.

Revision history for this message
peter green (plugwash) wrote :

BTW in the meantime the manual fix for anyone encoutering this issue is to do the following as root.

rm /etc/ld.so.cache
rm /var/cache/ldconfig/aux-cache
ldconfig

Revision history for this message
peter green (plugwash) wrote :

Should now be fixed in version 2.13-38+rpi2

Changed in raspbian:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.