Using Proxmox 4.2 whith kernel:
# uname -a
Linux proxmost1 4.4.16-1-pve #1 SMP Wed Aug 31 15:14:37 CEST 2016 x86_64 GNU/Linux
trying to install iscsitarget and iscsitarget-dkms fails with:
# apt-get install iscsitarget iscsitarget-dkms
...
Building module:
cleaning build area....
make KERNELRELEASE=4.4.16-1-pve -C /lib/modules/4.4.16-1-pve/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.4.16-1-pve (x86_64)
Consult /var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/make.log for more information.
Errors were encountered while processing:
iscsitarget
Error in make.log is:
/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.c: In function ‘cmnd_skip_pdu’:
/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.c:492:16: error: ‘struct msghdr’ has no member named ‘msg_iov’
conn->read_msg.msg_iov = conn->read_iov;
^
/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.c:493:16: error: ‘struct msghdr’ has no member named ‘msg_iovlen’
conn->read_msg.msg_iovlen = ++i;
...etc
Seams to be an old (solved ?) bug in ubuntu:
https://bugs.launchpad.net/ubuntu/+source/iscsitarget/+bug/1483415
Any suggestion welcome to build iscsi kernel module.
Thanks
Patrick
# uname -a
Linux proxmost1 4.4.16-1-pve #1 SMP Wed Aug 31 15:14:37 CEST 2016 x86_64 GNU/Linux
trying to install iscsitarget and iscsitarget-dkms fails with:
# apt-get install iscsitarget iscsitarget-dkms
...
Building module:
cleaning build area....
make KERNELRELEASE=4.4.16-1-pve -C /lib/modules/4.4.16-1-pve/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.4.16-1-pve (x86_64)
Consult /var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/make.log for more information.
Errors were encountered while processing:
iscsitarget
Error in make.log is:
/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.c: In function ‘cmnd_skip_pdu’:
/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.c:492:16: error: ‘struct msghdr’ has no member named ‘msg_iov’
conn->read_msg.msg_iov = conn->read_iov;
^
/var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.c:493:16: error: ‘struct msghdr’ has no member named ‘msg_iovlen’
conn->read_msg.msg_iovlen = ++i;
...etc
Seams to be an old (solved ?) bug in ubuntu:
https://bugs.launchpad.net/ubuntu/+source/iscsitarget/+bug/1483415
Any suggestion welcome to build iscsi kernel module.
Thanks
Patrick