This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libio fails on glibc2 linux [was: Latest snapshot 971225]
- To: Andrey Slepuhin <pooh at msu dot ru>
- Subject: Re: libio fails on glibc2 linux [was: Latest snapshot 971225]
- From: "Orn E. Hansen" <oe dot hansen at oehansen dot pp dot se>
- Date: Mon, 29 Dec 1997 19:56:18 +0100 (CET)
- cc: "Orn E. Hansen" <oe dot hansen at oehansen dot pp dot se>, egcs at cygnus dot com
- Reply-To: "Orn E. Hansen" <oe dot hansen at oehansen dot pp dot se>
> Unfortunately, I cannot make appropriate fix due to the following
> reasons:
> _PTHREADS symbol was added in September by Ulrich Drepper, but
> regressions became visible after Jody Goldberg's rewrite of
> basic_string.
> I don't know how stable is current basic_string implementation and what
> are the relations between _PTHREADS symbol in libstdc++ and
> the same one in Teemu's mt-eh changes (unfortunately, current egcs tree
> only includes mt-eh config for sparc solaris:().
I've installed the latest 971225 snapshot, and then I applied a fix,
suggested by someone on the list, by defining _PTHREADS if it wasn't defined in
stl/stl_alloc.h this seems to fix the problem. I have not had any difficulties
with any code since, but I have a fairly large application, that uses both C
and C++ code and it compiles without any problems. This means that _PTHREADS
is always defined, which is working well here.
----------------------------------------------------------------------------
Orn Einar Hansen oe.hansen@oehansen.pp.se
oehansen@daimi.aau.dk
voice+fax; +46 035 217194