[Pkg-iscsi-maintainers] Bug#696383: dkms module fails to build with: error: implicit declaration of function get_io_context

Christian Kujau bugs at nerdbynature.de
Thu Dec 20 07:48:49 UTC 2012

Package: iscsitarget-dkms
Severity: important

Installing iscsitarget-dkms tries to compile the iscsitarget module. This fails for the installed
kernel linux-image-3.6-trunk-amd64 with the following message from

make: Entering directory `/usr/src/linux-headers-3.6-trunk-amd64'
  LD      /var/lib/dkms/iscsitarget/
  LD      /var/lib/dkms/iscsitarget/
  CC [M]  /var/lib/dkms/iscsitarget/
  CC [M]  /var/lib/dkms/iscsitarget/
  CC [M]  /var/lib/dkms/iscsitarget/
  CC [M]  /var/lib/dkms/iscsitarget/
/var/lib/dkms/iscsitarget/ In function 'worker_thread':
/var/lib/dkms/iscsitarget/ error: implicit declaration of function 'get_io_context' [-Werror=implicit-function-declaration]
/var/lib/dkms/iscsitarget/ warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[4]: *** [/var/lib/dkms/iscsitarget/] Error 1
make[3]: *** [/var/lib/dkms/iscsitarget/] Error 2
make[2]: *** [_module_/var/lib/dkms/iscsitarget/] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-headers-3.6-trunk-amd64'

This has been reported in Ubuntu's Launchpad too:


....and their latest seems to contain a fix:

   > Fix DKMS compatibility with Linux 3.5 kernel (LP: #1045706):
   >  - d/p/iscsitarget-svn{444,471}.patch: Cherry picked patches from
   >   upstream VCS trunk, resolving dkms build failures with > linux 3.5.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.6-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages iscsitarget-dkms depends on:
ii  dkms
ii  make  3.81-8.2

Versions of packages iscsitarget-dkms recommends:
ii  linux-headers-3.6-trunk-amd64 [linux-headers]  3.6.9-1~experimental.1

Versions of packages iscsitarget-dkms suggests:
ii  iscsitarget

-- debconf-show failed

More information about the Pkg-iscsi-maintainers mailing list