Public bug reported:

On a totally clean server install of Wily installing zfsutils-linux ends
up with a build failure of spl, typically:

Setting up zfs-dkms (0.6.4.2-0ubuntu1.2) ...
Loading new zfs-0.6.4.2 DKMS files...
First Installation: checking all kernels...
Building only for 4.2.0-25-generic
Building initial module for 4.2.0-25-generic
configure: error:
        *** Please make sure the kmod spl devel <kernel> package for your
        *** distribution is installed then try again.  If that fails you
        *** can specify the location of the spl objects with the
        *** '--with-spl-obj=PATH' option.
Error! Bad return status for module build on kernel: 4.2.0-25-generic (x86_64)
Consult /var/lib/dkms/zfs/0.6.4.2/build/make.log for more information.

The issue is that the configure script in SPL is building a simple test
program but the linking fails because libc-dev is not yet installed even
though gcc is.  The libc-dev package gets installed a little while
later.

A fix is to modify spl-linux: debian/control and add in the libc-dev
dependency on spl-dkms to ensure this package is already installed
before SPL runs the test.

Package: spl-dkms
Depends: ${misc:Depends}, libc-dev, dkms (>= 2.2.0.2), file, lsb-release
Recommends: spl

Normally, dkms driver builds just build against the kernel without such
pre-checks, so we don't hit this with normal dkms packages.  Note that
this issue does not seem to bite a lot of users probably because libc-
dev is already installed.

** Affects: zfs-linux (Ubuntu)
     Importance: High
     Assignee: Colin Ian King (colin-king)
         Status: In Progress

** Changed in: zfs-linux (Ubuntu)
       Status: New => In Progress

** Changed in: zfs-linux (Ubuntu)
   Importance: Undecided => High

** Changed in: zfs-linux (Ubuntu)
     Assignee: (unassigned) => Colin Ian King (colin-king)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1536299

Title:
  spl build failure on a clean install of Wily

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1536299/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to