This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libio fails on glibc2 linux [was: Latest snapshot 971225]


> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]