[zfs-discuss] Trouble building zfs rc7 on 2.6.39

Ned Bass6 bass6 at llnl.gov
Mon Mar 19 15:29:39 EDT 2012


Perhaps configure failed to find the correct location of your kernel
headers.  What does 'grep ^LINUX Makefile' say?  What configure options
did you use?  Depending on your setup you might need to use
--with-linux= and/or --with-linux-obj= to set the paths explicitly.

Ned

On Mon, Mar 19, 2012 at 11:48:34AM -0700, Chad Milam wrote:
> In file included from /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/sys/dmu.h:514,
>                  from /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/sys/dsl_deleg.h:28,
>                  from /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/module/zcommon/../../module/zcommon/zfs_deleg.c:38:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:42: error: static declaration of ‘blk_fetch_request’ follows non-static declaration
> include/linux/blkdev.h:762: error: previous declaration of ‘blk_fetch_request’ was here
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘blk_fetch_request’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:45: error: implicit declaration of function ‘elv_next_request’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:45: warning: assignment makes pointer from integer without a cast
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:47: error: implicit declaration of function ‘blkdev_dequeue_request’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: At top level:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:55: error: expected ‘)’ before ‘*’ token
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:64: error: static declaration of ‘__blk_end_request’ follows non-static declaration
> include/linux/blkdev.h:785: error: previous declaration of ‘__blk_end_request’ was here
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘__blk_end_request’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:79: error: ‘struct request’ has no member named ‘hard_cur_sectors’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:80: error: implicit declaration of function ‘end_request’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: At top level:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:87: error: static declaration of ‘blk_end_request’ follows non-static declaration
> include/linux/blkdev.h:780: error: previous declaration of ‘blk_end_request’ was here
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:155: error: conflicting types for ‘blk_rq_pos’
> include/linux/blkdev.h:731: error: previous definition of ‘blk_rq_pos’ was here
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘blk_rq_pos’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:156: error: ‘struct request’ has no member named ‘sector’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: At top level:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:163: error: conflicting types for ‘blk_rq_sectors’
> include/linux/blkdev.h:748: error: previous definition of ‘blk_rq_sectors’ was here
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘blk_rq_sectors’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:164: error: ‘struct request’ has no member named ‘nr_sectors’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘__blk_queue_max_hw_sectors’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:212: error: implicit declaration of function ‘blk_queue_max_sectors’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘__blk_queue_max_segments’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:226: error: implicit declaration of function ‘blk_queue_max_phys_segments’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:227: error: implicit declaration of function ‘blk_queue_max_hw_segments’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: At top level:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:253: error: redefinition of ‘get_disk_ro’
> include/linux/genhd.h:417: error: previous definition of ‘get_disk_ro’ was here
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘get_disk_ro’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:256: error: ‘struct gendisk’ has no member named ‘part’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:257: error: ‘struct gendisk’ has no member named ‘part’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: At top level:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:266: error: redefinition of ‘rq_is_sync’
> include/linux/blkdev.h:527: error: previous definition of ‘rq_is_sync’ was here
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: In function ‘rq_is_sync’:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:267: error: ‘struct request’ has no member named ‘flags’
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:267: error: ‘REQ_RW_SYNC’ undeclared (first use in this function)
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:267: error: (Each undeclared identifier is reported only once
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:267: error: for each function it appears in.)
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h: At top level:
> /tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/include/linux/blkdev_compat.h:272: error: redefinition of ‘struct req_iterator’
> make[7]: *** [/tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/module/zcommon/../../module/zcommon/zfs_deleg.o] Error 1
> make[6]: *** [/tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/module/zcommon] Error 2
> make[5]: *** [_module_/tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/module] Error 2
> make[5]: Leaving directory `/usr/src/kernels/2.6.39.1-1.x86_64'
> make[4]: *** [modules] Error 2
> make[4]: Leaving directory `/tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0/module'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/tmp/zfs-build-root-QBdI9228/BUILD/zfs-0.6.0'
> error: Bad exit status from /tmp/zfs-build-root-QBdI9228/TMP/rpm-tmp.54938 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /tmp/zfs-build-root-QBdI9228/TMP/rpm-tmp.54938 (%build)
> make[1]: *** [rpm-common] Error 1
> make[1]: Leaving directory `/root/zfs/zfs-0.6.0-rc7'
> make: *** [rpm-modules] Error 2



More information about the zfs-discuss mailing list