Skip to content

compile error of zfs in vdev_disk.c #130

@imraven

Description

@imraven

Hello and thank you for taking the time to read this.

Distribution: Ubuntu 11.04 AMD64
Kernel: Linux 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
SPL/ZFS version: latest git clone as of 2011-10-10

SPL compiles fine but the ZFS package does not. After ./configure I run 'make' to which the following error is produced:

make[2]: Entering directory `/root/src/zfs/module'
make -C /usr/src/linux-headers-2.6.38-11-generic SUBDIRS=`pwd`  modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.38-11-generic'
  CC [M]  /root/src/zfs/module/zfs/../../module/zfs/vdev_disk.o
/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.c: In function ‘vdev_disk_open’:
/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.c:126:2: error: implicit declaration of function ‘open_bdev_excl’
/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.c:126:7: warning: assignment makes pointer from integer without a cast
/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.c: In function ‘vdev_disk_close’:
/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.c:161:3: error: implicit declaration of function ‘close_bdev_excl’
/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.c: In function ‘vdev_disk_read_rootlabel’:
/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.c:605:7: warning: assignment makes pointer from integer without a cast
make[5]: *** [/root/src/zfs/module/zfs/../../module/zfs/vdev_disk.o] Error 1
make[4]: *** [/root/src/zfs/module/zfs] Error 2
make[3]: *** [_module_/root/src/zfs/module] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.38-11-generic'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/root/src/zfs/module'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/zfs'
make: *** [all] Error 2

Please let me know if there is any other information I can provide.

Thanks,

Brandon

PS: The reason I'm trying to use a git clone is because I'm having an issue running the rollback command. It keeps giving me 'dataset is busy' error. I read on another thread that updating to the latest git solves the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions