Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359077 - x11-libs/libgksu missing dependency dev-libs/eggdbus?
Summary: x11-libs/libgksu missing dependency dev-libs/eggdbus?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 19:35 UTC by Sebastian Pipping
Modified: 2011-03-17 13:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2011-03-15 19:35:03 UTC
$ gksu
gksu: error while loading shared libraries: libeggdbus-1.so.0: cannot open shared object file: No such file or directory

Interestingly, re-emerging gksu does not fail, though producing a binary with the very same problem:

$ ldd /usr/bin/gksu | grep 'not found'
	libeggdbus-1.so.0 => not found

Emerging dev-libs/eggdbus helped to fix this error.  Missing dependency?
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-03-15 19:46:00 UTC
# which gksu
# objdump -p $(which pidgin) | grep NEEDED

does the gksu command really have NEEDED entry for libeggdbus?

use something like objdump (binutils) or scanelf (pax-utils) instead of `ldd` because `ldd` prints it's dependencies libs too, like foobar -> libfoo -> libbar, then if libbar is broken running `ldd` on foobar would reproduce what you just reported.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-03-15 19:46:35 UTC
(In reply to comment #1)
> # which gksu
> # objdump -p $(which pidgin) | grep NEEDED

obvious typo there... should read gksu instead of pidgin. sorry :)
Comment 3 Pacho Ramos gentoo-dev 2011-03-15 19:59:51 UTC
I am running it without eggdbus with no problem:

$ ldd /usr/bin/gksu | grep 'not found'
$

please run:
$ grep eggdbus /usr/lib/*.la

To review .la files
Comment 4 Rafał Mużyło 2011-03-15 20:06:20 UTC
Here 'scanelf -n /usr/bin/gksu' gives:
ET_EXEC libgksu2.so.0,libgtk-x11-2.0.so.0,libgobject-2.0.so.0,libglib-2.0.so.0,libpthread.so.0,libc.so.6 /usr/bin/gksu

lddtree would be a better idea than ldd.
Unless it indeed is la file pollution, but wouldn't that result in failure to build, instead of runtime problems ?
Comment 5 Pacho Ramos gentoo-dev 2011-03-15 21:15:50 UTC
What does occur when you rebuild gksu (with revdep-rebuild or manually) without eggdbus?
Comment 6 Sebastian Pipping gentoo-dev 2011-03-15 23:19:41 UTC
(In reply to comment #1)
> # objdump -p $(which gksu) | grep NEEDED
> 
> does the gksu command really have NEEDED entry for libeggdbus?

Looks like not:

$ objdump -p $(which gksu) | grep NEEDED
  NEEDED               libgksu2.so.0
  NEEDED               libgtk-x11-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6


(In reply to comment #3)
> please run:
> $ grep eggdbus /usr/lib/*.la
> 
> To review .la files

$ grep eggdbus /usr/lib/*.la
[..]
/usr/lib/libgksu2.la:[..] -leggdbus-1 [..]


(In reply to comment #5)
> What does occur when you rebuild gksu (with revdep-rebuild or manually) without
> eggdbus?

gksu emerges fine with not eggdbus around.
Comment 7 Sebastian Pipping gentoo-dev 2011-03-15 23:24:09 UTC
(In reply to comment #4)
> lddtree would be a better idea than ldd.

Excellent pointer, never heard of lddtree before.


$ objdump -p /usr/lib/libgksu2.so.0 | grep NEEDED | grep egg
  NEEDED               libeggdbus-1.so.0

So x11-libs/libgksu does need libeggdbus?
Comment 8 Rafał Mużyło 2011-03-16 00:24:58 UTC
Well, given:
ET_DYN libutil.so.1,libgtk-x11-2.0.so.0,libgdk-x11-2.0.so.0,libatk-1.0.so.0,libgio-2.0.so.0,libpangoft2-1.0.so.0,libpangocairo-1.0.so.0,libgdk_pixbuf-2.0.so.0,libm.so.6,libcairo.so.2,libpng14.so.14,libpango-1.0.so.0,libfontconfig.so.1,libfreetype.so.6,libz.so.1,libexpat.so.1,libgobject-2.0.so.0,libgmodule-2.0.so.0,libgthread-2.0.so.0,librt.so.1,libgconf-2.so.4,libstartup-notification-1.so.0,libxcb-aux.so.0,libxcb-event.so.1,libxcb-atom.so.1,libSM.so.6,libuuid.so.1,libICE.so.6,libX11.so.6,libxcb.so.1,libXau.so.6,libXdmcp.so.6,libdl.so.2,libgnome-keyring.so.0,libgtop-2.0.so.7,libglib-2.0.so.0,libpthread.so.0,libc.so.6 /usr/lib/libgksu2.so

I'd say no - this probably is la file pollution, it still should have failed during build. But it doesn't really matter.
Comment 9 Pacho Ramos gentoo-dev 2011-03-16 09:08:28 UTC
Yes, I neither need eggdbus for libgksu:

$ objdump -p /usr/lib/libgksu2.so.0 | grep NEEDED | grep egg
$
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2011-03-16 14:24:23 UTC
as concluded, not a bug
Comment 11 Sebastian Pipping gentoo-dev 2011-03-16 14:42:01 UTC
(In reply to comment #10)
> as concluded, not a bug

Okay, understood.

How do I find out what to rebuild to have gksu work without libeggdbus as it should?  Thanks!
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2011-03-16 15:06:23 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > as concluded, not a bug
> 
> Okay, understood.
> 
> How do I find out what to rebuild to have gksu work without libeggdbus as it
> should?  Thanks!

emerge lafilefixer
lafilefixer --justfixit

then something like

find /usr/lib64 -name '*.la' -exec grep eggdbus {} +
find /usr/local -name '*.la' -exec grep eggdbus {} +

if that produces any matches, those files are broken... delete them, or at least delete references to eggdbus from them

then 

revdep-rebuild --library libeggdbus-1.so.0

hope that helps
Comment 13 Sebastian Pipping gentoo-dev 2011-03-17 13:41:19 UTC
(In reply to comment #12)

> hope that helps

Yes, thanks!