[Ocfs2-users] 1.2.6 compile failures

E. de Ruiter eric at nitrate.nl
Tue Jun 26 04:53:27 PDT 2007


Hi,

I'm trying to compile ocfs2 1.2.6 on a 2.6.21 kernel (with rsbac and pax
patches), but I can't get this to work ..
In 2.6.20 there was an change in the definition of the INIT_WORK macro
(http://lkml.org/lkml/2006/12/5/269)
this seems to cause my problems (see below) but even after removing the
third parameter of the INIT_WORK calls
the compile fails (see second compile failure).
Can these compile failures be fixed? Or do I have to use the ocfs2
version included in the vanilla kernel? (if so, how
do the versions in the kernel (1.3.3 in 2.6.21) relate to the ocfs2
releases?)

Thanks,

  Eric de Ruiter


Initial compile failure

    make -C fs
    make[1]: Entering directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs'
    make -C ocfs2 stamp-md5
    make[2]: Entering directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2'
    make[2]: Leaving directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2'
    make -C ocfs2/cluster stamp-md5
    make[2]: Entering directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/cluster'
    make[2]: Leaving directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/cluster'
    make -C ocfs2/dlm stamp-md5
    make[2]: Entering directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/dlm'
    make[2]: Leaving directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/dlm'
    make -C /home/accountadmin/linux-2.6.21.1-rsbac-1.3.4-pax/ 
    M=/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs modules
    make[2]: Entering directory
    `/home/accountadmin/linux-2.6.21.1-rsbac-1.3.4-pax'
      CC [M] 
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/aio.o
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/aio.c:45:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/inode.h:115:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/aio.c:
    In function `ocfs2_file_aio_read':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/aio.c:281:
    warning: passing arg 2 of `generic_file_aio_read' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/aio.c:
    In function `ocfs2_file_aio_write':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/aio.c:381:
    warning: passing arg 4 of `generic_file_aio_write_nolock' makes
    integer from pointer without a cast
      CC [M] 
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.o
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:39:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/inode.h:115:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:40:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/journal.h:136:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:
    In function `ocfs2_schedule_truncate_log_flush':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:1228:
    warning: passing arg 1 of `cancel_delayed_work' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:1231:
    warning: passing arg 2 of `queue_delayed_work' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:
    In function `ocfs2_truncate_log_shutdown':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:1410:
    warning: passing arg 1 of `cancel_delayed_work' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:1442:76:
    macro "INIT_WORK" passed 3 arguments, but takes just 2
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:
    In function `ocfs2_truncate_log_init':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:1442:
    error: `INIT_WORK' undeclared (first use in this function)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:1442:
    error: (Each undeclared identifier is reported only once
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.c:1442:
    error: for each function it appears in.)
    make[4]: ***
    [/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2/alloc.o]
    Error 1
    make[3]: ***
    [/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs/ocfs2] Error 2
    make[2]: ***
    [_module_/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs] Error 2
    make[2]: Leaving directory
    `/home/accountadmin/linux-2.6.21.1-rsbac-1.3.4-pax'
    make[1]: *** [build-modules] Error 2
    make[1]: Leaving directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6/fs'
    make: *** [fs] Error 2


Compile failure after removing third parameter of INIT_WORK

      CC [M] 
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/aio.o
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/aio.c:45:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/inode.h:115:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/aio.c:
    In function `ocfs2_file_aio_read':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/aio.c:281:
    warning: passing arg 2 of `generic_file_aio_read' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/aio.c:
    In function `ocfs2_file_aio_write':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/aio.c:381:
    warning: passing arg 4 of `generic_file_aio_write_nolock' makes
    integer from pointer without a cast
      CC [M] 
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.o
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:39:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/inode.h:115:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:40:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/journal.h:136:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:
    In function `ocfs2_schedule_truncate_log_flush':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:1228:
    warning: passing arg 1 of `cancel_delayed_work' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:1231:
    warning: passing arg 2 of `queue_delayed_work' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:
    In function `ocfs2_truncate_log_shutdown':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:1410:
    warning: passing arg 1 of `cancel_delayed_work' from incompatible
    pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:
    In function `ocfs2_truncate_log_init':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/alloc.c:1442:
    warning: assignment from incompatible pointer type
    <snip> **lots of** warning: `kmem_cache_t' is deprecated (declared
    at include/linux/slab.h:17)</snip>
     CC [M] 
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.o
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:45:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/inode.h:115:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:46:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/journal.h:136:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:
    In function `ocfs2_file_write':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:201:
    warning: missing initializer
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:201:
    warning: (near initialization for `info.wl_extended')
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:239:
    warning: implicit declaration of function `generic_file_write_nolock'
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:
    In function `ocfs2_file_read':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:323:
    warning: implicit declaration of function `generic_file_read'
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:
    At top level:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:391:
    warning: initialization from incompatible pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/file.c:392:
    warning: initialization from incompatible pointer type
    <snip> **lots of** warning: `kmem_cache_t' is deprecated (declared
    at include/linux/slab.h:17)</snip>
     CC [M] 
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.o
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:59:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/inode.h:115:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    In file included from
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:60:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/journal.h:136:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:80:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:82:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:
    In function `ocfs2_alloc_inode':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:325:
    error: `SLAB_NOFS' undeclared (first use in this function)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:325:
    error: (Each undeclared identifier is reported only once
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:325:
    error: for each function it appears in.)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:
    At top level:
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:948:
    warning: `kmem_cache_t' is deprecated (declared at
    include/linux/slab.h:17)
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:
    In function `ocfs2_initialize_super':
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:1320:
    warning: assignment from incompatible pointer type
    /data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.c:1433:
    warning: assignment from incompatible pointer type
    make[4]: ***
    [/data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2/super.o]
    Error 1
    make[3]: ***
    [/data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs/ocfs2]
    Error 2
    make[2]: ***
    [_module_/data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs]
    Error 2
    make[2]: Leaving directory
    `/home/accountadmin/linux-2.6.21.1-rsbac-1.3.4-pax'
    make[1]: *** [build-modules] Error 2
    make[1]: Leaving directory
    `/data/images/keymaker/home/accountadmin/ocfs2-1.2.6-patched/fs'
    make: *** [fs] Error 2





More information about the Ocfs2-users mailing list