From: Andrew Savchenko <bircoph@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Why doesn't revdep-rebuild catch undefined symbol errors?
Date: Sun, 28 Oct 2018 13:36:57 +0300 [thread overview]
Message-ID: <20181028133657.aeedd2d7fe129f5e545521e6@gentoo.org> (raw)
In-Reply-To: <pqrnp0$esm$1@blaine.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2064 bytes --]
On Thu, 25 Oct 2018 09:30:00 +0300 Nikos Chantziaras wrote:
> Trying to rebuild media-sound/pavucontrol or any other package that uses
> dev-cpp/cairomm (like pulseeffects) will fail with:
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../lib64/libcairomm-1.0.so:
> undefined reference to `cairo_script_create'
>
> and a bunch of other "undefined reference" errors in libcairomm-1.0.so.
> I don't know what broke cairomm. But I thought revdep-rebuild would
> catch this. It doesn't.
>
> Now this is a rebuild of pavucontrol, so if I run:
>
> ldd -r /usr/bin/pavucontrol
>
> I will get:
>
> undefined symbol: cairo_script_create_for_stream
> (/usr/lib64/libcairomm-1.0.so.1)
> undefined symbol: cairo_script_set_mode (/usr/lib64/libcairomm-1.0.so.1)
> undefined symbol: cairo_script_surface_create
> (/usr/lib64/libcairomm-1.0.so.1)
> undefined symbol: cairo_script_from_recording_surface
> (/usr/lib64/libcairomm-1.0.so.1)
> undefined symbol: cairo_script_create (/usr/lib64/libcairomm-1.0.so.1)
> undefined symbol: cairo_script_surface_create_for_target
> (/usr/lib64/libcairomm-1.0.so.1)
> undefined symbol: cairo_script_get_mode (/usr/lib64/libcairomm-1.0.so.1)
> undefined symbol: cairo_script_write_comment
> (/usr/lib64/libcairomm-1.0.so.1)
>
> If I rebuild dev-cpp/cairomm manually (emerge -1 dev-cpp/cairomm), the
> error goes away, and the affected packages can now be emerged successfully.
>
> Shouldn't revdep-rebuild catch this problem? Shouldn't it check
> installed binaries for "undefined symbol" errors?
revdep-rebuild catches libraries from removed packages (including
removed older versions) still in use by other packages. Though with
proper subslot dependencies revdep-rebuild is rarely needed.
If for some reason library containing required symbol was
forcefully removed, revdep-rebuild cannot magically recreate that
symbol.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-10-28 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-25 6:30 [gentoo-user] Why doesn't revdep-rebuild catch undefined symbol errors? Nikos Chantziaras
2018-10-28 10:36 ` Andrew Savchenko [this message]
2018-10-28 11:54 ` [gentoo-user] " Nikos Chantziaras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181028133657.aeedd2d7fe129f5e545521e6@gentoo.org \
--to=bircoph@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox