This is the mail archive of the libc-alpha@sourceware.cygnus.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: Fix for PR libc/1553


>>>>> Andreas Jaeger writes:

 > Ulrich, please apply the appended patch for glibc 2.1.3 and 2.2.
 > [...]

This revealed another bug:
/usr/src/build-glibc/main/nis/libnsl.so: undefined reference to `__strndup'

We need to export __strndup.

I'm appending a patch - and I'd like to see both patches *only* in glibc
2.2.

Andreas

2000-01-23  Andreas Jaeger  <aj@suse.de>

	* string/Versions: Add __strndup with version GLIBC_2.2.

	* string/bits/string2.h: Fix macro: check for __USE_GNU not
	__GNU_SOURCE.
	Reported by David Madore <david.madore@ens.fr>, closes PR libc/1553.

============================================================
Index: string/bits/string2.h
--- string/bits/string2.h	2000/01/03 16:58:39	1.46
+++ string/bits/string2.h	2000/01/23 18:08:10
@@ -1225,7 +1225,7 @@
 			  __retval; }))					      \
 		  : __strndup ((s), (n))))
 
-#  ifdef __GNU_SOURCE
+#  ifdef __USE_GNU
 #   define strndup(s, n) __strndup ((s), (n))
 #  endif
 # endif

--- string/Versions.~1~	Mon Oct  4 08:49:19 1999
+++ string/Versions	Sun Jan 23 20:35:51 2000
@@ -67,6 +67,9 @@
     strchrnul; __strverscmp;
   }
   GLIBC_2.2 {
+    # extern inline functions used by <bits/string2.h>
+    __strndup;
+
     # m*
     memrchr;
   }


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

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