public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: gcc-3.2 with glibc-2.3 compile problem
@ 2002-10-05  1:33 Kaoru Fukui
  0 siblings, 0 replies; 3+ messages in thread
From: Kaoru Fukui @ 2002-10-05  1:33 UTC (permalink / raw)
  To: quinn; +Cc: gcc

On  4 Oct, Quinn Harris wrote:
> I was compiling gcc-3.2 with glibc-2.3 installed and encountered a
> compile error.  I made the changes as shown in the following patch to
> fix the problem.  Is this patch sane?  I have no knowledge of glibc, I
> just figured it out by comparing the /usr/include/ctype.h file from
> glibc-2.2.5 with glibc-2.3.  What would be the proper way to fix this
> problem?
> 

Already fixed by jakub.
Try gcc-3.2-branch

Kaoru

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc-3.2 with glibc-2.3 compile problem
  2002-10-05  0:40 Quinn Harris
@ 2002-10-05  3:22 ` Andreas Jaeger
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Jaeger @ 2002-10-05  3:22 UTC (permalink / raw)
  To: Quinn Harris; +Cc: gcc


From the glibc FAQ:

2.37.	When recompiling GCC, I get compilation errors in libstdc++.

{BH} You are trying to recompile gcc 3.2?  You need to patch gcc 3.2,
because some last minute changes were made in glibc 2.3 which were not
known when gcc 3.2 was released.  The patch is at

  http://www.haible.de/bruno/gcc-3.2-glibc-2.3-compat.diff

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

^ permalink raw reply	[flat|nested] 3+ messages in thread

* gcc-3.2 with glibc-2.3 compile problem
@ 2002-10-05  0:40 Quinn Harris
  2002-10-05  3:22 ` Andreas Jaeger
  0 siblings, 1 reply; 3+ messages in thread
From: Quinn Harris @ 2002-10-05  0:40 UTC (permalink / raw)
  To: gcc

I was compiling gcc-3.2 with glibc-2.3 installed and encountered a
compile error.  I made the changes as shown in the following patch to
fix the problem.  Is this patch sane?  I have no knowledge of glibc, I
just figured it out by comparing the /usr/include/ctype.h file from
glibc-2.2.5 with glibc-2.3.  What would be the proper way to fix this
problem?


--- /gcc-3.2/libstdc++-v3/config/os/gnu-linux/bits/ctype_noninline.h    2002-04-19 01:59:07.000000000 -0600
+++ /gcc-3.2-fix/libstdc++-v3/config/os/gnu-linux/bits/ctype_noninline.h       2002-10-04 23:03:47.000000000 -0600
@@ -42,7 +42,7 @@

   const ctype_base::mask*
   ctype<char>::classic_table() throw()
-  { return __ctype_b; }
+  { return *__ctype_b_loc(); }

 #if _GLIBCPP_C_LOCALE_GNU
   ctype<char>::ctype(__c_locale __cloc, const mask* __table, bool __del,
@@ -58,14 +58,14 @@
   ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
                     size_t __refs)
   : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del),
-  _M_toupper(__ctype_toupper), _M_tolower(__ctype_tolower),
+  _M_toupper(*__ctype_toupper_loc()), _M_tolower(*__ctype_tolower_loc()),
   _M_table(__table ? __table : classic_table())
   { _M_c_locale_ctype = _S_c_locale; }
 #endif

   ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) :
   __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del),
-  _M_toupper(__ctype_toupper), _M_tolower(__ctype_tolower),
+  _M_toupper(*__ctype_toupper_loc()), _M_tolower(*__ctype_tolower_loc()),
   _M_table(__table ? __table : classic_table())
   { _M_c_locale_ctype = _S_c_locale; }


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-05  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-05  1:33 gcc-3.2 with glibc-2.3 compile problem Kaoru Fukui
  -- strict thread matches above, loose matches on Subject: below --
2002-10-05  0:40 Quinn Harris
2002-10-05  3:22 ` Andreas Jaeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).