[PATCH] Binary compatibility fix for _res@GLIBC_2.0

Jakub Jelinek jakub@redhat.com
Tue Jul 22 06:47:00 GMT 2003


On Mon, Jul 21, 2003 at 05:04:54PM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jakub Jelinek wrote:
> 
> > --- libc/nptl/descr.h.jj	2003-07-08 09:54:08.000000000 -0400
> > +++ libc/nptl/descr.h	2003-07-17 13:58:42.000000000 -0400
> > @@ -27,15 +27,20 @@
> >  #include <sys/types.h>
> >  #include <hp-timing.h>
> >  #include <list.h>
> > +#ifdef __need_struct_pthread_size
> > +#define lll_lock_t int
> > +#else
> >  #include <lowlevellock.h>
> >  #include <pthreaddef.h>
> >  #include <dl-sysdep.h>
> > +#endif
> 
> Why is this necessary?

linuxthreads ld.so needs to know the size of NPTL struct pthread.
But when nptl-struct-pthread.sym is being compiled, it of course does not
have all the nptl necessary sysdep dirs in -I options, it has linuxthreads
instead.
Alternative to the above would be to add dummy lowlevellock.h and
pthreaddef.h headers to linuxthreads/sysdeps/pthread (where that
dummy lowlevellock.h would typedef int lll_lock_t; and pthreadef.h
would be empty).

	Jakub



More information about the Libc-hacker mailing list