[Top][All Lists]

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

glibc bug(s)

From: DiSToAGe
Subject: glibc bug(s)
Date: Mon, 30 Sep 2002 17:44:33 +0200


I think a have found a bug in glibc 2.2.5 that exists in the last cvs too.

I'm trying to cross compile the glibc 2.2.5 for m69k linux. I'm currently on
linux i586.
I'm pass the first step (creating my gcc 3.2 for m68k and binutils 2.13)
without problem, than I'm using it to compile glibc 2.2.5.

1) During this compilation I have an error on
sysdeps/generic/profile-counter.h "structure has no member named sc_pc".

I check on cvs and see that file
/sysdeps/unix/sysv/linux/m68k/profile-counter.h have been moved to
sysdeps/generic/ for a very long time ago (6 years). Than other machine have
been updated (4years) /sysdeps/unix/sysv/linux/i386/ (to use signals...) and
most of system configured to use the i386 file (powerpc, hppa...). But the
sysdeps/generic had not updated so there his an error on sc_pc. (it could be
an old problem...)

I see that alpha version /sysdeps/unix/sysv/linux/alpha/profile-counter.h
and mips version /sysdeps/unix/sysv/linux/mips/profile-counter.h have been
moved to generic too. I suppose that there can be a problem on these systems
too ??

So a made a little patch to correct temporarily my profile-counter.h in
generic like the i386 version (you can see profile-counter.h.patch).

2) Than the sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h would be wrong
too. I made annother patch for this version to correct temporarily this file

3) I had another problem with my sigcontext structure in
sysdeps/unix/sysv/linux/m68k/register-dump.h "structure has no member named
sc_fpstate". So I made my third patch (register-dump.h.patch).

Than my compilation goes good to the end. I could made all the static
libraries libc.a and dynamique libc.so.6 ...
I tryed the static one with gcc in a little apps and it seems to work well.

I look in the glibc bug database but don't see anything about these.

I know that my patches are not correct and only for temporarily use, I
suppose they disable the sigcontext fonctionnality and the registerdump must
not work anymore, and I don't know if they respect the structure of the

Could you send me feedback on this and perhaps it will help you discover
some other problems for alpha and mips ??


Attachment: profil-counter.h.patch
Description: Binary data

Attachment: sigcontextinfo.h.patch
Description: Binary data

Attachment: register-dump.h.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]