Comment 10 for bug 534175

Revision history for this message
Paul H. Hargrove (phhargrove) wrote :

Using the karmic -rt kernel headers I can confirm that this is the only symbol causing configure-time problems. The one-line patch below is sufficient to resolve that issue.

However, there are also non-trivial changes in linux/semaphore.h that break things at compile time and will take some time to sort out.

diff -u -r1.410.2.13 configure.ac
--- configure.ac 19 Dec 2009 00:55:46 -0000 1.410.2.13
+++ configure.ac 8 Mar 2010 18:31:08 -0000
@@ -986,7 +986,7 @@
 fi

 # put_task_struct() requires one of these:
-CR_FIND_KSYM([__put_task_struct],[CODE])
+CR_FIND_KSYM([__put_task_struct],[CODE],[extern void __put_task_struct(struct task_struct *);])
 CR_FIND_KSYM([__put_task_struct_cb],[CODE])

 CR_CHECK_KERNEL_MEMBER([mm.task_size],[#include <linux/sched.h>],