This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Miscompilation of glibc with CVS mainline
Andreas Jaeger <aj@suse.de> writes:
> Andreas Jaeger <aj@suse.de> writes:
>
>> Jakub Jelinek <jakub@redhat.com> writes:
>> [...]
>>> Does:
>>> #define weak_extern(x) extern __typeof (x) x __attribute__((weak));
>>> work ok?
> [...]
> With your change in, it looked better but I had to disable the alias
> for res_init to fix compilation:
>
> res_libc.c:95: error: weak declaration of `__res_init_weak' must precede defininition
> make[2]: *** [/builds/glibc/main-gcc3.4/resolv/res_libc.os] Error 1
>
> And add declarations in libc-tsd.h. With these changes everything
> compiled but running the testsuite failed directly:
>
> make[2]: *** [/builds/glibc/main-gcc3.4/iconv/tst-iconv1.out] Error 139
I cannot reproduce that segmentation fault. I did a complete build
from scratch and now the testsuite passes (at least so far as I've run
it). I'll investigate further tomorrow and try to come up with a
complete patch,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj