[OpenAFS] Error rebuilding src rpms with linux 2.6.23 fc7
Jacob Slife
jslife@modwest.com
Wed, 31 Oct 2007 11:13:22 -0600
Greetings,
Has anyone else encountered any problems rebuilding openafs-kernel
against the new fc7 2.6.23 kernel?
$> rpmbuild --rebuild --target=i686 openafs-1.4.4-fc7.3.src.rpm
Installing openafs-1.4.4-fc7.3.src.rpm
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.58688
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ : @@@
+ : @@@ kernel version: 2.6.23.1-10.fc7
+ : @@@ base kernel version:2.6.23.1-10.fc7
+ : @@@ kernel modules dir: /lib/modules/2.6.23.1-10.fc7
+ : @@@ kernel source dir: /lib/modules/2.6.23.1-10.fc7/build
+ : @@@ kernel type: up
+ : @@@ PAM modules dir: /lib/security
+ : @@@ build userspace: 0
+ : @@@ build modules: 1
+ : @@@ arch: i386
+ : @@@ target cpu: i686
+ : @@@
+ : @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ cd /usr/src/redhat/BUILD
+ rm -rf openafs-1.4.3
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/openafs-1.4.3-src.tar.bz2
+ tar -xf -
...
...
...
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:266:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:
In function 'afs_alloc_inode':
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:276:
error: 'afs_inode_cachep' undeclared (first use in this function)
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:276:
error: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:276:
error: for each function it appears in.)
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:
In function 'afs_destroy_inode':
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:287:
error: 'afs_inode_cachep' undeclared (first use in this function)
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:
At top level:
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:291:
error: expected declaration specifiers or '...' before 'kmem_cache_t'
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:
In function 'afs_init_inodecache':
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:309:
error: 'afs_inode_cachep' undeclared (first use in this function)
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:312:
warning: passing argument 5 of 'kmem_cache_create' from incompatible
pointer type
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:312:
error: too many arguments to function 'kmem_cache_create'
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:
In function 'afs_destroy_inodecache':
/usr/src/redhat/BUILD/openafs-1.4.3/src/libafs/MODLOAD-2.6.23.1-10.fc7-SP/osi_vfsops.c:321:
error: 'afs_inode_cachep' undeclared (first use in this function)
--------
Jacob Slife