ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] plugins linkage
@ 2006-06-07  7:42 Alexey Tourbin
  2006-06-07  9:09 ` Sergey Bolshakov
  2006-06-07 11:49 ` Dmitry V. Levin
  0 siblings, 2 replies; 5+ messages in thread
From: Alexey Tourbin @ 2006-06-07  7:42 UTC (permalink / raw)
  To: devel

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

Вопрос по линковке плагинов.  Стоит ли их линковать с "основной
библиотекой", которую они используют?  При условии, что их загружает
сама эта библиотека.

Собираю новую версию sqlite3 и наблюдаю:

undefined symbol: Tcl_BackgroundError   (/usr/lib/tcl/libtclsqlite3.so.0)
undefined symbol: Tcl_GetStringResult   (/usr/lib/tcl/libtclsqlite3.so.0)
undefined symbol: Tcl_GetCharLength     (/usr/lib/tcl/libtclsqlite3.so.0)
undefined symbol: Tcl_ListObjGetElements        (/usr/lib/tcl/libtclsqlite3.so.0)
undefined symbol: Tcl_GetDoubleFromObj  (/usr/lib/tcl/libtclsqlite3.so.0)
undefined symbol: Tcl_SetIntObj (/usr/lib/tcl/libtclsqlite3.so.0)

При этом в пакете нет бинарной зависимости на libtcl:

$ rpm -qpR sqlite3-tcl-3.3.6-alt1.athlon.rpm |grep tcl
$

В случае с перлом бинарная зависимость на libperl.so.5.8 появляется вследствие хака
в /usr/lib/rpm/find-requires:

$ grep libperl /usr/lib/rpm/*
/usr/lib/rpm/find-requires:libperl_so=
/usr/lib/rpm/find-requires:                     libperl)
/usr/lib/rpm/find-requires:                     nolibperl)
/usr/lib/rpm/find-requires:             if [ -n "$FIND_LIBPERL" -a -z "$libperl_so" -a -z "${f##*/usr/lib/perl?/*/auto/*.so}" ]; then
/usr/lib/rpm/find-requires:                     libperl_so=`perl -MConfig -e 'print "$Config{libperl}\n"'`
/usr/lib/rpm/find-requires:                     printf %s\\n "$libperl_so$braces$suffix"
$

Конкретизируя, вопрос вот в чем: предположим, что между запуском
приложения и загрузкой плагина "основная библиотека" обновилась.
Будет ли dlopen() загружать ещё одну (новую!) копию основной библиотеки?
Ясно, что это как минимум не желательно (а как максимум -- фатально).
Или же dlopen() "понимает", что библиотека уже загружена и второй раз
подгружать её не надо?

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-07 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-07  7:42 [devel] plugins linkage Alexey Tourbin
2006-06-07  9:09 ` Sergey Bolshakov
2006-06-07 10:40   ` Alexey Tourbin
2006-06-07 11:02     ` Sergey Bolshakov
2006-06-07 11:49 ` Dmitry V. Levin

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