Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread NGie Cooper

> On Nov 30, 2015, at 10:14, Konstantin Belousov  wrote:
> 
> On Mon, Nov 30, 2015 at 09:49:00AM -0800, John Baldwin wrote:
>> On Monday, November 30, 2015 09:33:49 AM NGie Cooper wrote:
>>> 
 On Nov 30, 2015, at 01:39, Konstantin Belousov  wrote:
>>> 
>>> ???
>>> 
 Just to explicitely state the obvious, the problem is that libkvm grown
 the dependency on libelf after r291406, and libelf lives in /usr. libkvm
 is used before /usr is mounted.
 
 I do not know what is the best way to handle it. Most simple is to move
 libelf to /lib. How feasible is to move libkvm to /usr/lib (and all
 stuff in / which needs libkvm) is the open question.
>>> 
>>> This patch should fix the problem in theory: 
>>> https://people.freebsd.org/~ngie/fix-libkvm-use-when-usr-and-root-split.patch
>>> Thanks,
>> 
>> Looks fine to me if kib@ is ok with it.
> 
> I do not have objections.

Fix committed in r291566 — thanks :)!

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread Konstantin Belousov
On Mon, Nov 30, 2015 at 09:49:00AM -0800, John Baldwin wrote:
> On Monday, November 30, 2015 09:33:49 AM NGie Cooper wrote:
> > 
> > > On Nov 30, 2015, at 01:39, Konstantin Belousov  
> > > wrote:
> > 
> > ???
> > 
> > > Just to explicitely state the obvious, the problem is that libkvm grown
> > > the dependency on libelf after r291406, and libelf lives in /usr. libkvm
> > > is used before /usr is mounted.
> > > 
> > > I do not know what is the best way to handle it. Most simple is to move
> > > libelf to /lib. How feasible is to move libkvm to /usr/lib (and all
> > > stuff in / which needs libkvm) is the open question.
> > 
> > This patch should fix the problem in theory: 
> > https://people.freebsd.org/~ngie/fix-libkvm-use-when-usr-and-root-split.patch
> > Thanks,
> 
> Looks fine to me if kib@ is ok with it.

I do not have objections.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread NGie Cooper

> On Nov 30, 2015, at 09:49, John Baldwin  wrote:
> 
> On Monday, November 30, 2015 09:33:49 AM NGie Cooper wrote:
>> 
>>> On Nov 30, 2015, at 01:39, Konstantin Belousov  wrote:
>> 
>> …
>> 
>>> Just to explicitely state the obvious, the problem is that libkvm grown
>>> the dependency on libelf after r291406, and libelf lives in /usr. libkvm
>>> is used before /usr is mounted.
>>> 
>>> I do not know what is the best way to handle it. Most simple is to move
>>> libelf to /lib. How feasible is to move libkvm to /usr/lib (and all
>>> stuff in / which needs libkvm) is the open question.
>> 
>> This patch should fix the problem in theory: 
>> https://people.freebsd.org/~ngie/fix-libkvm-use-when-usr-and-root-split.patch
>> Thanks,
> 
> Looks fine to me if kib@ is ok with it.

I’ll run the patch through make tinderbox on ref11-amd64.
Thanks!
-NGie
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread John Baldwin
On Monday, November 30, 2015 09:33:49 AM NGie Cooper wrote:
> 
> > On Nov 30, 2015, at 01:39, Konstantin Belousov  wrote:
> 
> …
> 
> > Just to explicitely state the obvious, the problem is that libkvm grown
> > the dependency on libelf after r291406, and libelf lives in /usr. libkvm
> > is used before /usr is mounted.
> > 
> > I do not know what is the best way to handle it. Most simple is to move
> > libelf to /lib. How feasible is to move libkvm to /usr/lib (and all
> > stuff in / which needs libkvm) is the open question.
> 
> This patch should fix the problem in theory: 
> https://people.freebsd.org/~ngie/fix-libkvm-use-when-usr-and-root-split.patch
> Thanks,

Looks fine to me if kib@ is ok with it.

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread NGie Cooper

> On Nov 30, 2015, at 01:39, Konstantin Belousov  wrote:

…

> Just to explicitely state the obvious, the problem is that libkvm grown
> the dependency on libelf after r291406, and libelf lives in /usr. libkvm
> is used before /usr is mounted.
> 
> I do not know what is the best way to handle it. Most simple is to move
> libelf to /lib. How feasible is to move libkvm to /usr/lib (and all
> stuff in / which needs libkvm) is the open question.

This patch should fix the problem in theory: 
https://people.freebsd.org/~ngie/fix-libkvm-use-when-usr-and-root-split.patch
Thanks,
-NGie
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread Matthew D. Fuller
On Mon, Nov 30, 2015 at 11:39:49AM +0200 I heard the voice of
Konstantin Belousov, and lo! it spake thus:
> 
> I do not know what is the best way to handle it. Most simple is to
> move libelf to /lib. How feasible is to move libkvm to /usr/lib (and
> all stuff in / which needs libkvm) is the open question.

To gild the moderately obvious, I question if we should just mask all
related problems forever, by just giving up tracking and moving
_everything_ into /lib.

According to du -A, /usr/lib/lib*.so* on my system is 11 meg.  /lib is
currently 9.4, so it's only about doubling the size.
/boot/kernel/kernel is 25, so the whole combined set is still smaller
than the kernel itself, never mind + the modules.

For that matter, everything under /usr/lib minus the .a files and the
debug/ tree is still only about 33 meg, so even if the net really
needs to be cast wider than lib*.so* (and it's not like we'd need to
move the symlinks themselves anyway), it can't spread very far.
Certainly we shouldn't be cavalier about blowing up the size of / for
no reason, but we're talking a pretty small increment.  Compared to
the kernel debug symbols before they got moved, it's miniscule.


-- 
Matthew Fuller (MF4839)   |  fulle...@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
   On the Internet, nobody can hear you scream.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread Konstantin Belousov
On Mon, Nov 30, 2015 at 10:04:46AM +0100, O. Hartmann wrote:
> Am Mon, 30 Nov 2015 10:07:59 +0200
> Konstantin Belousov  schrieb:
> 
> > On Sun, Nov 29, 2015 at 03:11:42PM -0500, Henry Hu wrote:
> > > On Sun, Nov 29, 2015 at 3:07 PM, O. Hartmann 
> > > wrote:
> > >   
> > > >
> > > > On most recent CURRENT (Revision: 291458), ob booting I receive this on
> > > > the console:
> > > >
> > > > Shared object "libelf.so.2" not found, required by "libkvm.so.6"
> > > >
> > > > What looking at the shared object cache with ldconfig -r, I find
> > > > libelf.so.2 as well as
> > > > libkvm.so.6 listed.
> > > >
> > > > What is this weird message?
> > > >  
> > >   
> > >  > locate libelf.so.2  
> > > ...
> > > /usr/lib/libelf.so.2
> > > ...  
> > > > locate libkvm.so.6  
> > > /lib/libkvm.so.6
> > > ...  
> > > > ldd /lib/libkvm.so.6  
> > > /lib/libkvm.so.6:
> > > libc.so.7 => /lib/libc.so.7 (0x800822000)
> > > 
> > > It's strange that your libkvm.so.6 depends on libelf.so.2. Where does it
> > > come from?  
> > 
> > Does the original reporter have root and /usr volumes split ?
> > Show the 'mount' output on the affected machine.
> 
> 
> Yes, I have split them, of course. / is a partition, /usr is also a 
> partition, also
> /var and /usr/local.
> 
> In fstab, / is the first, /usr the second getting mounted.
> 

Just to explicitely state the obvious, the problem is that libkvm grown
the dependency on libelf after r291406, and libelf lives in /usr. libkvm
is used before /usr is mounted.

I do not know what is the best way to handle it. Most simple is to move
libelf to /lib. How feasible is to move libkvm to /usr/lib (and all
stuff in / which needs libkvm) is the open question.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread O. Hartmann
Am Mon, 30 Nov 2015 10:06:58 +0100
"O. Hartmann"  schrieb:

> Am Sun, 29 Nov 2015 15:11:42 -0500
> Henry Hu  schrieb:
> 
> > On Sun, Nov 29, 2015 at 3:07 PM, O. Hartmann 
> > wrote:
> >   
> > >
> > > On most recent CURRENT (Revision: 291458), ob booting I receive this on
> > > the console:
> > >
> > > Shared object "libelf.so.2" not found, required by "libkvm.so.6"
> > >
> > > What looking at the shared object cache with ldconfig -r, I find
> > > libelf.so.2 as well as
> > > libkvm.so.6 listed.
> > >
> > > What is this weird message?
> > >
> >   
> >  > locate libelf.so.2
> > ...
> > /usr/lib/libelf.so.2
> > ...  
> > > locate libkvm.so.6
> > /lib/libkvm.so.6
> > ...  
> > > ldd /lib/libkvm.so.6
> > /lib/libkvm.so.6:
> > libc.so.7 => /lib/libc.so.7 (0x800822000)
> > 
> > It's strange that your libkvm.so.6 depends on libelf.so.2. Where does it
> > come from?  
> 
> ldd /lib/libkvm.so.6
> /lib/libkvm.so.6:
> libelf.so.2 => /usr/lib/libelf.so.2 (0x80120f000)
> libc.so.7 => /lib/libc.so.7 (0x800823000)
> 
> 
> This is only on one spefici box :-(

Sorry, have to correct my statement:

this is the case on every box running CURRENT.

> > 
> >   
> > > Regards,
> > >
> > > oh
> > >
> > 
> > 
> >   
> 
> 




pgpLZoGEZDhjq.pgp
Description: OpenPGP digital signature


Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread O. Hartmann
Am Sun, 29 Nov 2015 15:11:42 -0500
Henry Hu  schrieb:

> On Sun, Nov 29, 2015 at 3:07 PM, O. Hartmann 
> wrote:
> 
> >
> > On most recent CURRENT (Revision: 291458), ob booting I receive this on
> > the console:
> >
> > Shared object "libelf.so.2" not found, required by "libkvm.so.6"
> >
> > What looking at the shared object cache with ldconfig -r, I find
> > libelf.so.2 as well as
> > libkvm.so.6 listed.
> >
> > What is this weird message?
> >  
> 
>  > locate libelf.so.2  
> ...
> /usr/lib/libelf.so.2
> ...
> > locate libkvm.so.6  
> /lib/libkvm.so.6
> ...
> > ldd /lib/libkvm.so.6  
> /lib/libkvm.so.6:
> libc.so.7 => /lib/libc.so.7 (0x800822000)
> 
> It's strange that your libkvm.so.6 depends on libelf.so.2. Where does it
> come from?

ldd /lib/libkvm.so.6
/lib/libkvm.so.6:
libelf.so.2 => /usr/lib/libelf.so.2 (0x80120f000)
libc.so.7 => /lib/libc.so.7 (0x800823000)


This is only on one spefici box :-(
> 
> 
> > Regards,
> >
> > oh
> >  
> 
> 
> 




pgprbenA893E0.pgp
Description: OpenPGP digital signature


Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread O. Hartmann
Am Mon, 30 Nov 2015 10:07:59 +0200
Konstantin Belousov  schrieb:

> On Sun, Nov 29, 2015 at 03:11:42PM -0500, Henry Hu wrote:
> > On Sun, Nov 29, 2015 at 3:07 PM, O. Hartmann 
> > wrote:
> >   
> > >
> > > On most recent CURRENT (Revision: 291458), ob booting I receive this on
> > > the console:
> > >
> > > Shared object "libelf.so.2" not found, required by "libkvm.so.6"
> > >
> > > What looking at the shared object cache with ldconfig -r, I find
> > > libelf.so.2 as well as
> > > libkvm.so.6 listed.
> > >
> > > What is this weird message?
> > >  
> >   
> >  > locate libelf.so.2  
> > ...
> > /usr/lib/libelf.so.2
> > ...  
> > > locate libkvm.so.6  
> > /lib/libkvm.so.6
> > ...  
> > > ldd /lib/libkvm.so.6  
> > /lib/libkvm.so.6:
> > libc.so.7 => /lib/libc.so.7 (0x800822000)
> > 
> > It's strange that your libkvm.so.6 depends on libelf.so.2. Where does it
> > come from?  
> 
> Does the original reporter have root and /usr volumes split ?
> Show the 'mount' output on the affected machine.


Yes, I have split them, of course. / is a partition, /usr is also a partition, 
also
/var and /usr/local.

In fstab, / is the first, /usr the second getting mounted.

Kind regards,
oh


pgpSW3GLQU9vZ.pgp
Description: OpenPGP digital signature


Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-30 Thread Konstantin Belousov
On Sun, Nov 29, 2015 at 03:11:42PM -0500, Henry Hu wrote:
> On Sun, Nov 29, 2015 at 3:07 PM, O. Hartmann 
> wrote:
> 
> >
> > On most recent CURRENT (Revision: 291458), ob booting I receive this on
> > the console:
> >
> > Shared object "libelf.so.2" not found, required by "libkvm.so.6"
> >
> > What looking at the shared object cache with ldconfig -r, I find
> > libelf.so.2 as well as
> > libkvm.so.6 listed.
> >
> > What is this weird message?
> >
> 
>  > locate libelf.so.2
> ...
> /usr/lib/libelf.so.2
> ...
> > locate libkvm.so.6
> /lib/libkvm.so.6
> ...
> > ldd /lib/libkvm.so.6
> /lib/libkvm.so.6:
> libc.so.7 => /lib/libc.so.7 (0x800822000)
> 
> It's strange that your libkvm.so.6 depends on libelf.so.2. Where does it
> come from?

Does the original reporter have root and /usr volumes split ?
Show the 'mount' output on the affected machine.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

2015-11-29 Thread Henry Hu
On Sun, Nov 29, 2015 at 3:07 PM, O. Hartmann 
wrote:

>
> On most recent CURRENT (Revision: 291458), ob booting I receive this on
> the console:
>
> Shared object "libelf.so.2" not found, required by "libkvm.so.6"
>
> What looking at the shared object cache with ldconfig -r, I find
> libelf.so.2 as well as
> libkvm.so.6 listed.
>
> What is this weird message?
>

 > locate libelf.so.2
...
/usr/lib/libelf.so.2
...
> locate libkvm.so.6
/lib/libkvm.so.6
...
> ldd /lib/libkvm.so.6
/lib/libkvm.so.6:
libc.so.7 => /lib/libc.so.7 (0x800822000)

It's strange that your libkvm.so.6 depends on libelf.so.2. Where does it
come from?


> Regards,
>
> oh
>



-- 
Cheers,
Henry
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"