Arla-0.43 on linux-2.6.17.4: Name clash over do_fsync

Niels Möller nisse at lysator.liu.se
Tue Aug 22 15:55:11 CEST 2006


I'm trying to build arla-0.43 for linux-2.6.17.4, with

  ./configure --with-pthreads --with-sys=/usr/local/src/linux-2.6.17.4
  make

I get the following compilation error:

make[3]: Entering directory `/home/local/src/arla-0.43/nnpfs/linux/kernel-source-tree'
  CC [M]  /home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_load.o
  CC [M]  /home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_dev.o
  CC [M]  /home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_common.o
  CC [M]  /home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_vfsops.o
  CC [M]  /home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_node.o
  CC [M]  /home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_message.o
  CC [M]  /home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_inodeops.o
/home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_inodeops.c:59: error: conflicting types for `do_fsync'
include/linux/fs.h:1494: error: previous declaration of `do_fsync'
make[4]: *** [/home/local/src/arla-0.43/nnpfs/linux/kbuild-work/nnpfs_inodeops.o] Error 1
make[3]: *** [_module_/home/local/src/arla-0.43/nnpfs/linux/kbuild-work] Error 2
make[3]: Leaving directory `/home/local/src/arla-0.43/nnpfs/linux/kernel-source-tree'
make[2]: *** [kbuild] Error 2

The linux header file fs.h declares

extern long do_fsync(struct file *file, int datasync);

and then arla's nnpfs_inodeps.c uses

static int
do_fsync(struct nnpfs *nnpfsp, struct nnpfs_node *xn, u_int flag);

After a replacing all occurences of do_fsync with do_nnpfs_fsync in
that file, compilation continues. I'll report any further problems in
separate mails.

Regards,
/Niels


More information about the Arla-drinkers mailing list