removal of re_max_failures
Bruno Haible
bruno@clisp.org
Mon Apr 15 05:58:00 GMT 2002
Hi,
After installing glibc-20020408, I get bootup failures of the USB and the
sound system, due to this message:
/bin/gawk: relocation error: /bin/gawk: symbol re_max_failures, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Just removing an exported symbol from glibc without a fallback is a breakage
of binary compatibility. Better leave that symbol there for a while, with a
link-time warning, and remove it in a year. The following patch fixes it.
2002-04-14 Bruno Haible <bruno@clisp.org>
* posix/regex.c (re_max_failures): Add back symbol for binary
compatibility.
--- glibc-20020408/posix/regex.c.bak Thu Apr 4 20:11:47 2002
+++ glibc-20020408/posix/regex.c Mon Apr 15 11:54:26 2002
@@ -50,3 +50,12 @@
#include "regcomp.c"
#include "regexec.c"
#include "regex_internal.c"
+
+/* Binary backward compatibility. */
+#if _LIBC
+# include <shlib-compat.h>
+# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3)
+link_warning (re_max_failures, "the 're_max_failures' variable is obsolete and will go away.")
+int re_max_failures = 2000;
+# endif
+#endif
More information about the Libc-alpha
mailing list