Package: krb5
Version: 1.4.4-3
Tags: patch

When building with glibc 2.4/2.5 (experimental), krb5 FTBFS with

../../../src/util/support/threads.c: In function 'krb5int_pthread_loaded':
../../../src/util/support/threads.c:145: error: 
'pthread_mutexattr_setrobust_np' undeclared (first use in this function)
../../../src/util/support/threads.c:145: error: (Each undeclared identifier is 
reported only once
../../../src/util/support/threads.c:145: error: for each function it appears 
in.)
make[3]: *** [threads.o] Error 1

Attached patch fixes this.

Thanks,

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
diff -pruN 1.4.3-9/debian/changelog 1.4.3-9ubuntu1/debian/changelog
--- 1.4.3-9/debian/changelog    2006-09-20 14:18:03.000000000 +0100
+++ 1.4.3-9ubuntu1/debian/changelog     2006-09-20 14:17:36.000000000 +0100
@@ -1,3 +1,11 @@
+krb5 (1.4.3-9ubuntu1) edgy; urgency=low
+
+  * src/include/k5-thread.h: Define__USE_GNU when #include'ing pthread.h so
+    that src/util/support/threads.c has pthread_mutexattr_setrobust_np()
+    available. Fixes FTBFS.
+
+ -- Martin Pitt <[EMAIL PROTECTED]>  Wed, 20 Sep 2006 13:01:25 +0200
+
 krb5 (1.4.3-9) unstable; urgency=high
 
   * Add error checking to setuid, setreuid  to avoid local privilege
diff -pruN 1.4.3-9/src/include/k5-thread.h 
1.4.3-9ubuntu1/src/include/k5-thread.h
--- 1.4.3-9/src/include/k5-thread.h     2006-09-20 14:18:03.000000000 +0100
+++ 1.4.3-9ubuntu1/src/include/k5-thread.h      2006-09-20 14:17:36.000000000 
+0100
@@ -343,7 +343,9 @@ typedef k5_os_nothread_mutex k5_os_mutex
 
 #elif HAVE_PTHREAD
 
+#define __USE_GNU
 # include <pthread.h>
+#undef __USE_GNU
 
 /* Weak reference support, etc.
 

Attachment: signature.asc
Description: Digital signature

Reply via email to