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: [devel] linkage_problems abiword unjoined
Date: Tue, 13 Jul 2010 00:19:14 +0400
Message-ID: <20100712201914.GN23050@altlinux.org> (raw)
In-Reply-To: <20100712191703.GM23050@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]

On Mon, Jul 12, 2010 at 11:17:03PM +0400, Alexey Tourbin wrote:
> Можно усовершенствовать проверку elfsym, добивив "локальные" условия -
> засчитывать разрешимость только по слинкованным библиотекам.  Но это
> сразу открывает a can of wo^W corner cases, начиная с того, что нужно
> ассоциировать файлы и сонеймы (см. warning чуть ниже), и кончая тем,
> что такая проверка будет зарубать недолинкованные плагины, а в схеме
> c -rdynamic executable недолинкованные плагины будут неизбежны (примеры:
> /bin/zsh, /usr/bin/Xorg).  И, кроме того, ELF всё же разрешает
> транзитивное разрешение символов.  И, кроме того, при большом желании
> в ELF можно зашить DT_NEEDED = libc-2.10.so вместо libc.so.6.
> 
> Я уже когда-то рисовал такой скрипт - qa-robot/linkage_problems.
> Жду когда он что-нибудь покажет.  Пока вижу только warnings.

Ну вот например показывает что libabiword-2.8 недолинкован с libX11.

[at@people at]$ fgrep libabiword-2.8 unjoined
abiword /usr/lib64/libabiword-2.8.so    U       XFreeModifiermap
abiword /usr/lib64/libabiword-2.8.so    U       XGetModifierMapping
abiword /usr/lib64/libabiword-2.8.so    U       XKeycodeToKeysym
abiword /usr/lib64/libabiword-2.8.so    U       XKeysymToKeycode
abiword /usr/lib64/libabiword-2.8.so    U       XParseGeometry
abiword-light   /usr/lib64/libabiword-2.8.so    U       XFreeModifiermap
abiword-light   /usr/lib64/libabiword-2.8.so    U	XGetModifierMapping
abiword-light   /usr/lib64/libabiword-2.8.so    U       XKeycodeToKeysym
abiword-light   /usr/lib64/libabiword-2.8.so    U       XKeysymToKeycode
abiword-light   /usr/lib64/libabiword-2.8.so    U       XParseGeometry
[at@people at]$ rpm -qpR /ALT/Sisyphus/files/x86_64/RPMS/abiword-2.8.4-alt1.x86_64.rpm |grep libX
[at@people at]$ 

Как могло получиться, что abiword недолинкован с libX11?
У нас же и в binutils подержка есть "подцепить недостающие библиотеки",
и pkg-config для линковки рекурсивно раскрывает список Libs.

Кстати, интересно тогда, что делать в lib.req, если некоторые символы
разрешаются в библиотеки, не перечисленные в DT_NEEDED.

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2010-07-12 20:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-10 23:43   ` [devel] Fwd: hylafax-5.2.7-alt5: Sisyphus/i586 test rebuild failed Led
2010-07-11  6:40     ` Денис Смирнов
2010-07-11  8:33       ` Dmitry V. Levin
2010-07-11  9:26         ` [devel] Q: second class packages in Sisyphus Dmitry V. Levin
2010-07-11 15:07           ` Michael Shigorin
2010-07-11 19:08             ` Yuri N. Sedunov
2010-07-12  5:14           ` Денис Смирнов
2010-07-12 16:47             ` Dmitry V. Levin
2010-07-12 16:54           ` Alexey Tourbin
2010-07-12 16:59             ` Dmitry V. Levin
2010-07-12 19:17               ` Alexey Tourbin
2010-07-12 20:19                 ` Alexey Tourbin [this message]
2010-07-13  8:07                   ` [devel] linkage_problems abiword unjoined Alexey Tourbin
2010-07-13  9:37                     ` Alexey Tourbin
2010-07-13 10:05                       ` Dmitry V. Levin
2010-07-13 10:37                     ` Kirill A. Shutemov
2010-07-12 22:10                 ` [devel] unjoined g_free Alexey Tourbin
2010-07-12 23:50                   ` Dmitry V. Levin
2010-07-15  8:01                   ` [devel] [cross] " Ildar Mulyukov
2010-07-12  5:17         ` [devel] Fwd: hylafax-5.2.7-alt5: Sisyphus/i586 test rebuild failed Денис Смирнов

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=20100712201914.GN23050@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