This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: glibc 2.1.94 and gcc


[Bruno Haible]
> (I'm not comfortable with using a system compiled with a snapshot
> compiler, and unpatched gcc-2.95.2 doesn't let me build libstdc++
> with new glibc.)

  Wise.  I tried to bully my way through it and got sock of it though.

  In addition to Ben Collins's gcc-glibc-2.2-compat.diff patch, I had to
add this one (attached) to a stock gcc-2.95.2 to get it to compile.
With it, I'm able to compile glibc (-2.1.94) with gcc-2.95.2 (patched)
and then turn around and recompile gcc under glibc (which I couldn't do
before, with the errors you yourself have seen).

  I finally had to dump egcs-20000828 because it was going to cause me to
have to patch too many programs.  99% of the problems were bad porting
(primarily bad prototypes), but they also did some things like drop
-traditional.  That is when I dropped the snapshot.  ):

--- ./libio/libio.h.OLD	Wed Sep 20 12:56:31 2000
+++ ./libio/libio.h	Wed Sep 20 14:11:20 2000
@@ -136,6 +136,7 @@
 #define _IO_IS_APPENDING 0x1000
 #define _IO_IS_FILEBUF 0x2000
 #define _IO_BAD_SEEN 0x4000
+#define _IO_USER_LOCK 0x8000		/*  mimic glibc-2.1.94 libio.h  */
 
 /* These are "formatting flags" matching the iostream fmtflags enum values. */
 #define _IO_SKIPWS 01

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