Summary: | net-fs/openafs-1.4.4_p20070724 compile fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Stefaan De Roeck (RETIRED) <stefaan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dev-zero, net-fs |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Replace kmem_cache_t with struct kmem_cache
Patch to compile on 2.6.23 |
Description
Juergen Rose
2007-08-28 14:25:26 UTC
Question: Did you intend to build it for 2.6.23-rc3 or for 2.6.22-gentoo-r5? We're still sorting out support for 2.6.22, so 2.6.23 will have to wait until that is dealt with. Any experiences with 2.6.22 and this version of openafs are welcomed on bug #185130. I started to build it for 2.6.23-rc3. Now I try to build it for 2.6.22-gentoo-r5. I will send my remarks to bug #185130. get the same result with kernel 2.6.23-rc5. The kmem_cache* related errors are definetely because of kernel 2.6.23 since they changed the interface in those functions. Created attachment 130488 [details, diff] Replace kmem_cache_t with struct kmem_cache (In reply to comment #3) > get the same result with kernel 2.6.23-rc5. > > The kmem_cache* related errors are definetely because of kernel 2.6.23 since > they changed the interface in those functions. > kmem_cache_t had been marked as deprecated since 2.6.20. Try the attached patch, please. I seem to get CC [M] /var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.o /var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.c: In function 'afs_init_inodecache': /var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.c:312: error: too many arguments to function 'kmem_cache_create' make[6]: *** [/var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.o] Error 1 Seems that the prototype of kmem_cache_create changes from (linux-2.6.22-gen too-r6): struct kmem_cache *kmem_cache_create(const char *, size_t, size_t, unsigned long, void (*)(void *, struct kmem_cache *, unsigned long), void (*)(void *, struct kmem_cache *, unsigned long)); to (linux-2.6.23-rc6): struct kmem_cache *kmem_cache_create(const char *, size_t, size_t, unsigned long, void (*)(void *, struct kmem_cache *, unsigned long)); Created attachment 133313 [details, diff]
Patch to compile on 2.6.23
This patch will allow openafs-kernel to compile on the 2.6.23 kernel
Patch applied in net-fs/openafs-kernel-1.4.5_pre1 |