[Felipe Contreras <al593181@mail.mty.itesm.mx>] bug in useldt.h
Andreas Jaeger
aj@suse.de
Sat Dec 8 04:15:00 GMT 2001
Greg Schafer <gschafer@zip.com.au> writes:
> Hello
>
> Andreas Jaeger <aj@suse.de> writes:
>
>> I can't reproduce this with current CVS sources. Can anybody else
>> reproduce this or has anybody an idea what might be the problem?
>
> I have managed to figure out the sequence of events that can
> reproduce this problem.
>
> In summary, the bug only occurs if you install glibc on a
> completely blank system ie: glibc is not installed yet. If you
> install glibc when an existing glibc is already in place, the
> bug does not surface and everything works as expected.
>
> This snippet of code from "linuxthreads/sysdeps/i386/i686/pt-machine.h"
>
> #if __ASSUME_LDT_WORKS > 0
> #include "../useldt.h"
> #endif
>
> (which is only activated by passing --enable-kernel=2.3.99 and greater
> to ./configure) seems to get mis-compiled in the first instance.
>
> I suspect it is something to do with ./configure finding different
> results depending on whether you have a glibc installed or not.
>
> Example diffs of glibc-build dir:
>
> from "glibc-build/config.h"
>
> -/* #undef HAVE_ASM_SET_DIRECTIVE */
> +#define HAVE_ASM_SET_DIRECTIVE 1
> and this from "glibc-build/config.make"
>
> -have-z-nodelete = no
> -have-z-nodlopen = no
> -have-z-initfirst = no
> +have-z-nodelete = yes
> +have-z-nodlopen = yes
> +have-z-initfirst = yes
> -sizeof-long-double = 0
> +sizeof-long-double = 12
All of the above means that your tools are not set up correctly,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-alpha
mailing list