[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Ian's solution [was: What hack in ld.so?]



> -----Original Message-----
> From: Gordon Matzigkeit [mailto:gord@trick.fig.org]
> Sent: Sunday, January 31, 1999 5:41 AM
> To: debian-devel@lists.debian.org; bug-libtool@gnu.org
> Subject: Ian's solution [was: What hack in ld.so?]
> 
> 
> Hi, all!
> 
> There's been so much traffic on this thread, that I suspect most
> people have missed the fact that Ian Lance Taylor has analyzed and
> *solved* the problems with interaction between libtool and
> libc5-compat shared libraries.
> 
> I'm quoting and reposting his message so that it doesn't get lost in
> the shuffle.  Please read and understand this message before posting
> more flameage.
> 
> >>>>> Ian Lance Taylor writes:
> 
>  ILT> I just spent some time looking at the ld.so sources.
>  ILT> Interestingly, it seems to me that everything will work
>  ILT> correctly in the sources I was looking at.  That is because the
>  ILT> libc5 dynamic linker on my system (RedHat 5.2) was modified to
>  ILT> search the library cache before using the application's
>  ILT> DT_RPATH.
> 
>  ILT> I think that is a hack that Debian is missing: it is the final
>  ILT> hack to the libc5 dynamic linker to change the search path to
>  ILT> account for the moved shared libraries even when rpath is used.
>  ILT> I have appended the RedHat patch below.  This is to ld.so-1.9.5.
>  ILT> Of course, this will technically break the handling of DT_RPATH.
>  ILT> However, we've already determined that DT_RPATH binaries will
>  ILT> not work correctly anyhow, because the shared libraries were
>  ILT> moved.  So using this patch should not make us any worse off.
> 
> [...]
> 
>  ILT> Although I can not test this, I now believe that if you take a
>  ILT> libtool program, compile it on a libc5 Slackware and try to run
>  ILT> it on a RedHat 5.2 system, it will work.
> 

I've not missed it :-)

I think it was quite good news for me: when my customers ask my advise,
I usually say that I'm using RedHat and that I had no problem with it,
so they buy RedHat (sorry for all the Debian guys :-() and Ian just said
that I will have no problems with them.

HOWEVER, this will mean that, if I have to use libtool with -rpath
hard-coded paths, that I will have to say to my customers: You *must*
use RedHat or take your risks and be prepared to become a Linux guru :-(

No so good after all...

Regards,
	
		Bernard

PS: Alexandre, I'm *not* a Debian maintainer, I'm not a Linux
distribution builder; I'm a software writer that want his programs to
work on as many systems as possible, with as few problems as possible,
and to be able to distribute these programs with a nice, quick,
installer because my users will be totally unable (Err.. perhaps not all
but many of them :-)) to understand what we are talking of, so have them
patch in the executables... :-(

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


Reply to: