1 |
Am 15.04.2012 01:38, schrieb Pandu Poluan: |
2 |
> |
3 |
> On Apr 15, 2012 2:10 AM, "Florian Philipp" <lists@×××××××××××.net |
4 |
> <mailto:lists@×××××××××××.net>> wrote: |
5 |
>> |
6 |
>> Am 14.04.2012 18:34, schrieb Alan McKinnon: |
7 |
>> > On Sat, 14 Apr 2012 23:10:30 +0700 |
8 |
>> > Pandu Poluan <pandu@××××××.info <mailto:pandu@××××××.info>> wrote: |
9 |
>> > |
10 |
>> >>> Or direct dynamically linked libraries? |
11 |
>> >>> equery files -f obj sys-fs/lvm2 | xargs ldd 2>/dev/null |
12 |
>> >>> |
13 |
>> >>> Or kernel features? |
14 |
>> >>> |
15 |
>> >> |
16 |
>> >> The libraries, actually. Sadly I currently don't have access to a |
17 |
>> >> Gentoo box, so I would really appreciate it if I can get the output |
18 |
>> >> of the ldd. |
19 |
>> > |
20 |
>> > |
21 |
>> > Here you go. I blindly ran ldd on anything that looked binary or |
22 |
> executable but not a symlink (so there's several false positives): |
23 |
>> > |
24 |
>> > alanm@khamul ~ $ ldd /sbin/lvm |
25 |
>> > linux-vdso.so.1 => (0x00007fffca444000) |
26 |
>> > libudev.so.0 => /usr/lib64/libudev.so.0 (0x00007ff92e7a3000) |
27 |
>> > libdl.so.2 => /lib64/libdl.so.2 (0x00007ff92e59f000) |
28 |
>> > libdevmapper-event.so.1.02 => |
29 |
> /lib64/libdevmapper-event.so.1.02 (0x00007ff92e399000) |
30 |
>> > libdevmapper.so.1.02 => /lib64/libdevmapper.so.1.02 |
31 |
> (0x00007ff92e160000) |
32 |
>> > libreadline.so.6 => /lib64/libreadline.so.6 (0x00007ff92df19000) |
33 |
>> > libc.so.6 => /lib64/libc.so.6 (0x00007ff92db6d000) |
34 |
>> > librt.so.1 => /lib64/librt.so.1 (0x00007ff92d964000) |
35 |
>> > /lib64/ld-linux-x86-64.so.2 (0x00007ff92e9b1000) |
36 |
>> > libncurses.so.5 => /lib64/libncurses.so.5 (0x00007ff92d70f000) |
37 |
>> > libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff92d4f1000) |
38 |
>> [...] |
39 |
>> |
40 |
>> As I was slightly bored and thought it might help, I took the liberty to |
41 |
>> clean that up a bit: |
42 |
>> equery files -f obj sys-fs/lvm2 | xargs ldd 2>/dev/null | |
43 |
>> grep -E -o '=> [^ ]+' | cut -d ' ' -f 2 | sort -u |
44 |
>> /lib64/libc.so.6 |
45 |
>> /lib64/libdevmapper-event-lvm2.so.2.02 |
46 |
>> /lib64/libdevmapper-event.so.1.02 |
47 |
>> /lib64/libdevmapper.so.1.02 |
48 |
>> /lib64/libdl.so.2 |
49 |
>> /lib64/liblvm2cmd.so.2.02 |
50 |
>> /lib64/libncurses.so.5 |
51 |
>> /lib64/libpthread.so.0 |
52 |
>> /lib64/libreadline.so.6 |
53 |
>> /lib64/librt.so.1 |
54 |
>> /lib64/libudev.so.0 |
55 |
>> |
56 |
>> Hope this helps, |
57 |
>> Florian Philipp |
58 |
>> |
59 |
> |
60 |
> Kewl! Based on the names, I assume they're the actual files (i.e. |
61 |
> symlinks already dereferenced)? |
62 |
> |
63 |
> Rgds, |
64 |
> |
65 |
|
66 |
No: |
67 |
equery files -f obj sys-fs/lvm2 | xargs ldd 2>/dev/null | |
68 |
grep -E -o '=> [^ ]+' | cut -d' ' -f 2 | sort -u | xargs ls -l | |
69 |
awk '{print $9 $10 $11}' |
70 |
|
71 |
/lib64/libc.so.6->libc-2.13.so |
72 |
/lib64/libdevmapper-event-lvm2.so.2.02 |
73 |
/lib64/libdevmapper-event.so.1.02 |
74 |
/lib64/libdevmapper.so.1.02 |
75 |
/lib64/libdl.so.2->libdl-2.13.so |
76 |
/lib64/liblvm2cmd.so.2.02 |
77 |
/lib64/libncurses.so.5->libncurses.so.5.9 |
78 |
/lib64/libpthread.so.0->libpthread-2.13.so |
79 |
/lib64/libreadline.so.6->libreadline.so.6.2 |
80 |
/lib64/librt.so.1->librt-2.13.so |
81 |
/lib64/libudev.so.0->libudev.so.0.11.5 |