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

Re: Bug#165699: progress on the glibc 2.3 / php4 issues



On Sun, Dec 15, 2002 at 05:25:47PM -0500, Daniel Jacobowitz wrote:

> > The only possible way I can imagine it makes sense for this to happen is
> > if php4 is linked with -Bsymbolic (which it does not appear to be); PHP4
> > calls crypt() while loaded the first time, causing the symbol name to be
> > resolved to the libcrypto.so version; the linker caches this because
> > Apache needs crypt() as well; and things go downhill.  Does that sound
> > about right?

> Except that I don't think -Bsymbolic is actually necessary for that. 
> I'd need to brush up on my ELF specs to figure out what's really
> supposed to happen here...

Hmm. Perhaps this is the nature of the linker change in 2.3?  My
understanding, at least from reading the GNU info docs, is that
preference is given to libraries that the calling object is directly
linked against IFF -Bsymbolic was used.  If the ELF standard permits the
runtime linker to do this when -Bsymbolic was /not/ used, then it's
cleary a bug for the PHP DSO to depend on the 2.2 behavior.

-- 
Steve Langasek
postmodern programmer

Attachment: pgprCXAS9DQk6.pgp
Description: PGP signature


Reply to: