ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Anton Kachalov <mouse@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Q: rtldi -- панацея от проблем при смене glibc?
Date: Sat, 12 Jun 2004 11:00:13 +0400
Message-ID: <20040612070013.GA21068@lrn.ru> (raw)
In-Reply-To: <40C9B5A7.9090102@syktsu.ru>

On Fri, Jun 11, 2004 at 05:37:43PM +0400, Vladimir Lettiev wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Здравствуйте.
> Долго читал споры и переживания в рассылке по поводу миграции glibc
> 2.2->2.3, что перестают работать многие коммерческие продукты и т.д.
> Наткнулся сегодня на анонс на freshmeat программы rtldi (
> http://www.bitwagon.com/rtldi/rtldi.html ). Вот собственно описание:

<грыз>

> 
> И даже погонял предложенную для теста программу -- действительно, судя
> по strace, программа используют ту libc, которая лежала в том каталоге,
> в котором она запускалась...
>
> Является ли это возможным решением для запуска коммерческого ПО, которое
> не работает с новой glibc?
Для уже собранных Ельфов нужно использовать конструкцию вида:
/lib/2.2.6/ld-linux.so.2 --library-path /lib/2.2.6:$LD_LIBRARY_PATH
/mnt/disk/bin/ls
если натравить strace на всё это, то будем иметь:
open("/lib/2.2.6/libpthread.so.0", O_RDONLY) = 3
...
open("/lib/2.2.6/libc.so.6", O_RDONLY)  = 3

и мы получили, что хотели и без всякого rtldi.
А вот если линковать прогу с --dynamic-linker=/path/to/rtldi, то тогда да.

ЗЫ. может я что-то не так понял? ;-)

Rgds,
Anton



      reply	other threads:[~2004-06-12  7:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-11 13:37 Vladimir Lettiev
2004-06-12  7:00 ` Anton Kachalov [this message]

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=20040612070013.GA21068@lrn.ru \
    --to=mouse@altlinux.ru \
    --cc=devel@altlinux.ru \
    /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