Bug#520304: openafs-modules-source: Can't build openafs kernel module with 2.6.28 kernel

2009-03-18 Thread Ben Poliakoff
Package: openafs-modules-source
Version: 1.4.8.dfsg1-2
Severity: normal


I'm trying to use kernel version 2.6.28.x on a lenny box.  I've built 
the kernel from source (using make-kpkg), and I'm using a backported 
version of the openafs package (from testing).  I grabbed 1.4.8dfsg1-2 
because the changelog mentioned that it should support the 2.6.28 
kernel.

The userland openafs builds fine, but when I try to build the kernel 
module with module-assistant the build fails with the following error:

-
...
  CC [M]  
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.o
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c: 
In function 'xdr_DiskName':
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c:351: 
warning: passing argument 2 of 'afs_xdr_opaque' from incompatible 
pointer type
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c: 
In function 'xdr_ViceDisk':
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c:685: 
warning: passing argument 2 of 'xdr_DiskName' from incompatible pointer 
type
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c: 
At top level:
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c:1512: 
error: expected declaration specifiers or '...' before 
'ViceStatistics64'
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c: 
In function 'xdr_ViceStatistics64':
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c:1514: 
error: 'objp' undeclared (first use in this function)
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c:1514: 
error: (Each undeclared identifier is reported only once
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c:1514: 
error: for each function it appears in.)
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.c:1514: 
error: 'STATS64_VERSION' undeclared (first use in this function)
make[5]: *** 
[/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP/Kvice.xdr.o] 
Error 1
make[4]: *** 
[_module_/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP] 
Error 2
make[4]: Leaving directory `/usr/local/src/linux/2.6.28/linux-2.6.28'
make[3]: *** [openafs.ko] Error 2
make[3]: Leaving directory 
`/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.28-bp01-MP'
make[2]: *** [linux_compdirs] Error 2
make[2]: Leaving directory `/usr/src/modules/openafs/src/libafs'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/modules/openafs'
make: *** [build-stamp] Error 2
-

I've tried building against linux kernel 2.6.28 and 2.6.28.8; getting 
the same error for both versions.

Is this a known issue?  

I'll try building the kernel module from the openafs 1.4.x stable CVS 
branch to see if that addresses the issue.

Ben

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28.8-bp01 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openafs-modules-source depends on:
ii  bison   1:2.3.dfsg-5 A parser generator that is compati
ii  debhelper   7.0.15   helper programs for debian/rules
ii  flex2.5.35-6 A fast lexical analyzer generator.
ii  kernel-package  11.015   A utility for building Linux kerne
ii  module-assistant0.10.11.0tool to make module package creati

openafs-modules-source recommends no packages.

openafs-modules-source suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#520304: openafs-modules-source: Can't build openafs kernel module with 2.6.28 kernel

2009-03-18 Thread Ben Poliakoff
* Ben Poliakoff b...@reed.edu [20090318 11:12]:
 
 I'll try building the kernel module from the openafs 1.4.x stable CVS 
 branch to see if that addresses the issue.
 

OK, interestingly I can successfully build the module for kernel version
2.6.28.x *without* using module-assistant.  The following steps worked
with both the openafs-1.4.8.dfsg1 source archive and with a checkout of
openafs-stable-1_4_x:

./configure
make only_libafs_tree
cd libafs_tree
make

So is this a module-assistant bug?

Ben

-- 

PGP fingerprint:  A131 F813 7A0F C5B7 E74D  C972 9118 A94D 6AF5 2019


pgpVqFPqovyuz.pgp
Description: PGP signature


Bug#520304: openafs-modules-source: Can't build openafs kernel module with 2.6.28 kernel

2009-03-18 Thread Russ Allbery
Ben Poliakoff b...@reed.edu writes:

 OK, interestingly I can successfully build the module for kernel version
 2.6.28.x *without* using module-assistant.  The following steps worked
 with both the openafs-1.4.8.dfsg1 source archive and with a checkout of
 openafs-stable-1_4_x:

 ./configure
 make only_libafs_tree
 cd libafs_tree
 make

 So is this a module-assistant bug?

Did you run module-assistant clean immediately before trying the build
with module-assistant?  This has bitten me before.  Without clean, it just
unpacks the tarball over top of whatever happens to be there, which means
that you can end up with files left over from a previous build.

-- 
Russ Allbery (r...@debian.org)   http://www.eyrie.org/~eagle/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#520304: openafs-modules-source: Can't build openafs kernel module with 2.6.28 kernel

2009-03-18 Thread Ben Poliakoff
* Russ Allbery r...@debian.org [20090318 13:29]:
 Ben Poliakoff b...@reed.edu writes:
 
  OK, interestingly I can successfully build the module for kernel version
  2.6.28.x *without* using module-assistant.  The following steps worked
  with both the openafs-1.4.8.dfsg1 source archive and with a checkout of
  openafs-stable-1_4_x:
 
  ./configure
  make only_libafs_tree
  cd libafs_tree
  make
 
  So is this a module-assistant bug?
 
 Did you run module-assistant clean immediately before trying the build
 with module-assistant?  This has bitten me before.  Without clean, it just
 unpacks the tarball over top of whatever happens to be there, which means
 that you can end up with files left over from a previous build.

Thanks, you were right on target:

module-assistant clean openafs-modules
module-assistant a-b openafs-modules

worked flawlessly.  Sorry for the false alarm, and thanks for the 'm-a
clean' tip.

I guess this bug can be closed.

Ben

-- 

PGP fingerprint:  A131 F813 7A0F C5B7 E74D  C972 9118 A94D 6AF5 2019


pgpOqJTBx1v3V.pgp
Description: PGP signature