libio fails on glibc2 linux [was: Latest snapshot 971225]
Orn E. Hansen
oe.hansen@oehansen.pp.se
Mon Dec 29 11:17:00 GMT 1997
> 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
More information about the Gcc
mailing list