[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [dm-devel] CVS pull of device mapper




Brian Wood
Intel Corporation 
Digital Enterprise Group
Manageability & Platform Software Division
brian j wood intel com

>-----Original Message-----
>From: dm-devel-bounces redhat com [mailto:dm-devel-bounces redhat com]
On
>Behalf Of Mike Snitzer
>Sent: Monday, July 30, 2007 2:50 PM
>To: device-mapper development
>Subject: Re: [dm-devel] CVS pull of device mapper
>
>On 7/30/07, Wood, Brian J <brian j wood intel com> wrote:
>> Hello everyone, I've just built a test system with Fedora 7 and am
>> having a problem with running dmeventd after getting the latest pull
>> from the CVS tree. From the "make" and "make install" commands
>> everything is error free, but when I run the dmeventd daemon I get
this
>> error:
>>
>> /sbin/dmeventd: error while loading shared libraries:
>> libdevmapper-event.so.1.02: cannot open shared object file: No such
file
>> or directory
>>
>> I've looked in /lib and there is an instance of
>> libdevmapper-event.so.1.02 (and a symbolic link named
>> libdevmapper-event.so), so I'm confused as to why the daemon can't
find
>> them? When I run configure the only parameters I'm passing in are
>> "--enable-debug" and "--enable-dmeventd"
>
>Try using ldconfig (-v can be useful) and ldd /sbin/dmeventd
>

I exported the variable LD_DEBUG=all and found that it's searching the
/lib64 libraries for the .so (which it should since this is a F7 x86_64
load). Here is a dump of the output:

/sbin/dmeventd
      3127:
      3127:     file=libdl.so.2 [0];  needed by /sbin/dmeventd [0]
      3127:     find library=libdl.so.2 [0]; searching
      3127:      search cache=/etc/ld.so.cache
      3127:       trying file=/lib64/libdl.so.2
      3127:
      3127:     file=libdl.so.2 [0];  generating link map
      3127:       dynamic: 0x0000003c7ba02da0  base: 0x0000000000000000
size: 0x0000000000203100
      3127:         entry: 0x0000003c7b800e10  phdr: 0x0000003c7b800040
phnum:                  9
      3127:
      3127:
      3127:     file=libdevmapper.so.1.02 [0];  needed by /sbin/dmeventd
[0]
      3127:     find library=libdevmapper.so.1.02 [0]; searching
      3127:      search cache=/etc/ld.so.cache
      3127:       trying file=/lib64/libdevmapper.so.1.02
      3127:
      3127:     file=libdevmapper.so.1.02 [0];  generating link map
      3127:       dynamic: 0x0000003c83011038  base: 0x0000000000000000
size: 0x00000000002128c8
      3127:         entry: 0x0000003c82e039f0  phdr: 0x0000003c82e00040
phnum:                  5
      3127:
      3127:
      3127:     file=libpthread.so.0 [0];  needed by /sbin/dmeventd [0]
      3127:     find library=libpthread.so.0 [0]; searching
      3127:      search cache=/etc/ld.so.cache
      3127:       trying file=/lib64/libpthread.so.0
      3127:
      3127:     file=libpthread.so.0 [0];  generating link map
      3127:       dynamic: 0x0000003c7d614db0  base: 0x0000000000000000
size: 0x0000000000219370
      3127:         entry: 0x0000003c7d405720  phdr: 0x0000003c7d400040
phnum:                  9
      3127:
      3127:
      3127:     file=libdevmapper-event.so.1.02 [0];  needed by
/sbin/dmeventd [0]
      3127:     find library=libdevmapper-event.so.1.02 [0]; searching
      3127:      search cache=/etc/ld.so.cache
      3127:      search
path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x8
6_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64(system search path)
      3127:       trying
file=/lib64/tls/x86_64/libdevmapper-event.so.1.02
      3127:       trying file=/lib64/tls/libdevmapper-event.so.1.02
      3127:       trying file=/lib64/x86_64/libdevmapper-event.so.1.02
      3127:       trying file=/lib64/libdevmapper-event.so.1.02
      3127:       trying
file=/usr/lib64/tls/x86_64/libdevmapper-event.so.1.02
      3127:       trying file=/usr/lib64/tls/libdevmapper-event.so.1.02
      3127:       trying
file=/usr/lib64/x86_64/libdevmapper-event.so.1.02
      3127:       trying file=/usr/lib64/libdevmapper-event.so.1.02
      3127:
/sbin/dmeventd: error while loading shared libraries:
libdevmapper-event.so.1.02: cannot open shared object file: No such file
or directory


One thing I noticed when building/installing was that my .so being put
into into /lib in the stdout messages?

Two questions:

1. How come my ld.so.cache doesn't have this to be searched if the make
file is putting it there?

2. Why didn't this problem occur on my FC6 x86_64 system? Both were just
out of the box systems, so did something change in F7 that I didn't
realize.

Thanks for the help on this puzzling issue :)

>--
>dm-devel mailing list
>dm-devel redhat com
>https://www.redhat.com/mailman/listinfo/dm-devel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]