ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] __cxa_pure_virtual [#40700] FAILED MySQL.git=5.1.56-alt2
Date: Thu, 17 Mar 2011 10:48:32 +0300
Message-ID: <20110317074831.GD5365@altlinux.org> (raw)
In-Reply-To: <20110317072649.GC5365@altlinux.org>

On Thu, Mar 17, 2011 at 10:26:50AM +0300, Alexey Tourbin wrote:
> Разобраться, почему так происходит.
> 
> $ rpm -ql amarok |xargs fgrep -l __cxa_pure_virtual |xargs -Ix -n1 /usr/lib/rpm/ldd --bindings x '' |& grep __cxa_pure_virtual |sort -u -k4,4 -k7,7
>      28807:     binding file /usr/lib/kde3/bin/amarok [0] to /usr/lib64/libstdc++.so.6 [0]: normal symbol `__cxa_pure_virtual' [CXXABI_1.3]
>      28814:     binding file /usr/lib/kde3/bin/amarokapp [0] to /usr/lib64/libmysqlclient.so.16 [0]: normal symbol `__cxa_pure_virtual' [libmysqlclient _16]
> ...
> $ nm -D /usr/lib64/libstdc++.so.6 |fgrep __cxa_pure_virtual
> 00000000000ba8c0 T __cxa_pure_virtual
> $ nm -D /usr/lib64/libmysqlclient.so.16 |fgrep __cxa_pure_virtual
> 00000000000b9ad0 W __cxa_pure_virtual
> $ objdump -p /usr/lib/kde3/bin/amarok |grep -w NEEDED |egrep 'stdc|mysql'
>   NEEDED               libstdc++.so.6
> $ objdump -p /usr/lib/kde3/bin/amarokapp |grep -w NEEDED |egrep 'stdc|mysql'
>   NEEDED               libmysqlclient.so.16
>   NEEDED               libstdc++.so.6
> $
> 
> Т.е. в libmysqlclient.so.16 имеется weak symbol, а в libstdc++.so.6 -
> нормальный.  Но libmysqlclient.so.16 в списке требуемых библиотек идёт
> раньше, что по идее не дложно помешать предпочесть нормальный символ.

Ох, тут ещё versioning наслоился!
Предпочтение идёт по link-time версионированию.
Тогда взяла не Зинка, а bfd.  Ё-моё...

$ readelf -W --dyn-syms /usr/lib/kde3/bin/amarok /usr/lib/kde3/bin/amarokapp |grep __cxa_pure
    72: 0000000000402a60     0 FUNC    GLOBAL DEFAULT  UND __cxa_pure_virtual@CXXABI_1.3 (5)
   172: 0000000000403e38     0 FUNC    GLOBAL DEFAULT  UND __cxa_pure_virtual@libmysqlclient_16 (8)
$


  reply	other threads:[~2011-03-17  7:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-17  6:49 ` Alexey Tourbin
2011-03-17  7:07   ` REAL
2011-03-17  7:26     ` Alexey Tourbin
2011-03-17  7:48       ` Alexey Tourbin [this message]
2011-03-17  8:43   ` Sergey Y. Afonin
2011-03-17  9:20     ` Alexey Tourbin
2011-03-17 19:27       ` Alexey Tourbin

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=20110317074831.GD5365@altlinux.org \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git