Felix Koop <[EMAIL PROTECTED]> writes:

> Package: openafs-modules-source
> Version: 1.4.6.dfsg1-1
> Severity: normal
>
> I am running a lenny system with a xen kernel. When building the kernel
> module with module-assistant, the build stops with the following errors:
>
> /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.18-5-xen-vserver-amd64-MP/osi_sysctl.c:32:
>  error: 'CTL_UNNUMBERED' undeclared here (not in a function)
> /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.18-5-xen-vserver-amd64-MP/osi_sysctl.c:108:
>  error: initializer element is not a constant
> /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.18-5-xen-vserver-amd64-MP/osi_sysctl.c:108:
>  error: (near initialization for 'fs_sysctl_table[0].ctl_name')
>
> Kernel 2.6.18-5 is the current kernel with xen support in testing.

Could you try applying this patch to the source before building it and let
me know if it fixes the problem?  (You may have to apply the patch and
then recreate the openafs.tar.gz file so that module-assistant will do the
right thing.)

===================================================================
RCS file: /cvs/openafs/src/cf/linux-test1.m4,v
retrieving revision 1.3.2.10
retrieving revision 1.3.2.11
diff -u -r1.3.2.10 -r1.3.2.11
--- openafs/src/cf/linux-test1.m4       2007/11/27 20:48:00     1.3.2.10
+++ openafs/src/cf/linux-test1.m4       2007/12/08 17:47:50     1.3.2.11
@@ -46,8 +46,10 @@
 #
 AC_DEFUN([AC_TRY_KBUILD24], [
   ac_save_CPPFLAGS="$CPPFLAGS"
-  CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ $CPPFLAGS"
-  AC_TRY_COMPILE([$1], [$2], [$3], [$4])
+  CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ 
-Werror-implicit-function-declaration $CPPFLAGS"
+  AC_TRY_COMPILE([
+#include <linux/kernel.h>
+$1], [$2], [$3], [$4])
   CPPFLAGS="$ac_save_CPPFLAGS"])
 
 
===================================================================
RCS file: /cvs/openafs/src/cf/linux-test4.m4,v
retrieving revision 1.20.2.36
retrieving revision 1.20.2.37
diff -u -r1.20.2.36 -r1.20.2.37
--- openafs/src/cf/linux-test4.m4       2007/11/23 13:45:05     1.20.2.36
+++ openafs/src/cf/linux-test4.m4       2007/12/08 17:47:50     1.20.2.37
@@ -944,8 +944,7 @@
   AC_CACHE_VAL([ac_cv_linux_sysctl_table_checking], [
     AC_TRY_KBUILD(
 [#include <linux/sysctl.h>],
-[extern int sysctl_check_table(struct ctl_table *t);
-sysctl_check_table(NULL);],
+[ sysctl_check_table(NULL);],
       ac_cv_linux_sysctl_table_checking=yes,
       ac_cv_linux_sysctl_table_checking=no)])
   AC_MSG_RESULT($ac_cv_linux_sysctl_table_checking)])

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to