iscsitarget-dkms package won't compile kernel module

Bug #1530853 reported by Martin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Confirmed
Undecided
Unassigned
iscsitarget (Debian)
Fix Released
Unknown

Bug Description

I'm trying to set up a Raspberry Pi running Raspbian Jessie as an iSCSI-target but installing the package iscsitarget-dkms yields the following error:

make KERNELRELEASE=4.1.13-v7+ -C /lib/modules/4.1.13-v7+/build M=/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build........(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.1.13-v7+ (armv7l)
Consult /var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/make.log for more information.

I attached the make.log file.

The patch at https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-extended/iscsitarget/files/fix-errors-observed-with-linux-3.19-and-greater.patch looks promising. However, I have yet to try this patch.

Revision history for this message
Martin (martin-kirsche+ubuntu) wrote :
Revision history for this message
Diederik (didi-debian) wrote :

How did you get/setup the /usr/src/linux-headers-4.1.13-v7+ directory (and contents)?
Be as specific as you can be.

Revision history for this message
Diederik (didi-debian) wrote :

And have you tried it with the patch applied? Did that change anything?

Revision history for this message
Diederik (didi-debian) wrote :

Just found https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786611 and that seems to confirm your issue.

Changed in raspbian:
status: New → Confirmed
Revision history for this message
Diederik (didi-debian) wrote :

And I have just been able to confirm the issue myself, see the attached iscsitarget.build.log

Changed in iscsitarget (Debian):
status: Unknown → New
Revision history for this message
Diederik (didi-debian) wrote :

With the attached patch, from the link in the OP, you can get it to compile, although with several warnings.

The question is whether you want to use this, because the driver seems to be in a BAD state. Trying to compile it on my host PC (Debian Sid, amd64) failed horribly and the linked Debian bug is mostly about abandoning the driver (and possible take over of maintainership).

If you're REALLY interested in this driver, you should try to activate upstream first. If that fails, which has a reasonable chance, you could try to fork it and put the code on GitHub/GitLab for example and start working on it and try to find other people interested in this driver to help you with it.
When you do, please also work on the Makefile so it's easy to compile for different kernel versions ;-)

Revision history for this message
Diederik (didi-debian) wrote :

Also linked to the ubuntu package:
https://bugs.launchpad.net/ubuntu/+source/iscsitarget

And there you can see several BIG bugs (too).

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "deb-bug786611.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Diederik (didi-debian) wrote :

Linking it with the Ubuntu package has consequences which I don't understand, thus I removed the bug link.
But in message 8 you can still see the link so you can see/follow the status/bugs there too.

no longer affects: iscsitarget (Ubuntu)
Changed in iscsitarget (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.