Falk Hueffner <[EMAIL PROTECTED]> writes:

> I've attached .config and autoconf.h.

Thanks.  I found it with that information.  The problem is caused by this
bit in src/cf/linux-test3.m4:

  AC_MSG_CHECKING(which kernel modules to build)
  if false; then
      MPS="MP SP"
  elif test "x$ac_cv_linux_config_modversions" = "xno" -a "$AFS_SYSKVERS" -lt 26
; then
      MPS="MP SP"
  else
  AC_CACHE_VAL(ac_cv_linux_config_smp, [
  AC_TRY_COMPILE(
[#include <linux/config.h>
],
[#ifndef CONFIG_SMP
lose;
#endif
],
  ac_cv_linux_config_smp=yes,
  ac_cv_linux_config_smp=no)])
  dnl AC_MSG_RESULT($ac_cv_linux_config_smp)
      if test "x$ac_cv_linux_config_smp" = "xyes"; then
          MPS=MP
      else
          MPS=SP
      fi
  fi

For some reason, the OpenAFS configure script tries to always build both
MP and SP modules if CONFIG_MODVERSIONS is not set and the kernel version
is less than 2.6.  However, your build doesn't set CONFIG_MODVERSIONS.

As near as I can tell, that test is bogus, since if CONFIG_SMP isn't set,
not all the right defines may be available to even attempt a build of an
SMP module.  I believe the elif clause should simply be removed.

I'll report this as an upstream bug as well.  In the meantime, if you have
a moment, could you confirm that the following patch fixes the problem for
you?  I think it should.

--- openafs/configure.orig      2005-04-13 16:58:36.000000000 -0700
+++ openafs/configure   2005-05-08 14:28:50.000000000 -0700
@@ -7548,8 +7548,6 @@
 echo $ECHO_N "checking which kernel modules to build... $ECHO_C" >&6
   if false; then
       MPS="MP SP"
-  elif test "x$ac_cv_linux_config_modversions" = "xno" -a "$AFS_SYSKVERS" -lt 
26; then
-      MPS="MP SP"
   else
   if test "${ac_cv_linux_config_smp+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
windlord:/usr/src/modules# fdiff openafs/configure-libafs
--- openafs/configure-libafs.orig       2005-04-13 16:58:36.000000000 -0700
+++ openafs/configure-libafs    2005-05-08 14:29:06.000000000 -0700
@@ -7548,8 +7548,6 @@
 echo $ECHO_N "checking which kernel modules to build... $ECHO_C" >&6
   if false; then
       MPS="MP SP"
-  elif test "x$ac_cv_linux_config_modversions" = "xno" -a "$AFS_SYSKVERS" -lt 
26; then
-      MPS="MP SP"
   else
   if test "${ac_cv_linux_config_smp+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6

-- 
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