This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu 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]

The gcc-2.95.2/glibc-2.2 interoperability patch is incomplete!


The patch at <http://clisp.cons.org/~haible/gcc-glibc-2.2-compat.diff>
is missing a patch, so that libio does not pass its testsuite, and
fseek() in the stdio-on-libio implementation does not work.

Specifically, it is missing this piece from Franz Sirl's post
`[PATCH] Backport patchset V2 for the gcc-2_95-branch', posted to
gcc-patches@gcc.gnu.org on the 9th:

(This is not the complete patch, just the bit we need to get libio
working)

2000-09-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

       (_IO_pos_BAD): Use _IO_off_t instead of _IO_fpos_t.

diff -u -p -r1.3 iolibio.h
--- libio/iolibio.h     1998/02/24 20:09:50     1.3
+++ libio/iolibio.h     2000/11/09 19:49:27
@@ -38,7 +38,11 @@ extern int _IO_obstack_vprintf __P ((str
                                     _IO_va_list));
 extern int _IO_obstack_printf __P ((struct obstack *, const char *, ...));
 #ifndef _IO_pos_BAD
-#define _IO_pos_BAD ((_IO_fpos_t)(-1))
+# if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001
+#  define _IO_pos_BAD ((_IO_off64_t) -1)
+# else
+#  define _IO_pos_BAD ((_IO_off_t) -1)
+# endif
 #endif
 #define _IO_clearerr(FP) ((FP)->_flags &= ~(_IO_ERR_SEEN|_IO_EOF_SEEN))
 #define _IO_fseek(__fp, __offset, __whence) \


-- 
`The phrase `causes storage to be reserved', doesn't mean that it causes
 storage to be reserved.  This is a fundamental misunderstanding of
 Standardeze.' --- Mike Stump on the GCC list

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