Bug 9352

Summary: ldd -u говорит неправду
Product: Sisyphus Reporter: Anton Farygin <rider>
Component: glibc-utilsAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, icesik, ldv, php-coder, placeholder, wrar
Version: unstable   
Hardware: all   
OS: Linux   

Description Anton Farygin 2006-03-31 17:35:10 MSD
$ ldd -u /usr/bin/xcpufreq 
Unused direct dependencies:
        /usr/lib64/libhw.so.0
        /lib64/libgcc_s.so.1
        /lib64/libc.so.6
        /usr/lib64/libstdc++.so.6

выглядит как-то подозрительно.

пакет libhw-tools
Comment 1 Dmitry V. Levin 2006-03-31 17:45:45 MSD
$ ldd -u /bin/ls
Unused direct dependencies:
        /lib/librt.so.1
        /lib/libtinfo.so.5

Короче говоря, не работает ldd -u.
Comment 2 Andrey Rahmatullin 2006-05-01 15:24:52 MSD
На $(rpm -qf =ldd), а то так не найти.

Кстати, ldd -u -r работает (вроде бы) правильно.
Comment 3 Dmitry V. Levin 2006-05-01 15:35:38 MSD
$ env -i LD_DEBUG=unused LD_TRACE_LOADED_OBJECTS=1 LD_BIND_NOW=1
/lib/ld-linux.so.2 /bin/ls 
$ env -i LD_DEBUG=unused LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux.so.2 /bin/ls 
Unused direct dependencies:
        /lib/librt.so.1
        /lib/libtinfo.so.5

Так что действительно достаточно пропатчить скрипт.
Comment 4 Andrey Rahmatullin 2006-05-01 15:51:12 MSD
(In reply to comment #3)
> Так что действительно достаточно пропатчить скрипт.
Какой скрипт, и на предмет чего?


Comment 5 Dmitry V. Levin 2006-05-01 16:05:02 MSD
Скрипт elf/ldd.bash.in на тему bind_now=yes в режиме --unused.
Comment 6 Dmitry V. Levin 2006-05-16 21:24:02 MSD
Fixed in 2.3.6-alt5.