Iscsitarget compile error

diaolin

Renowned Member
Jul 7, 2008
332
8
83
Trentino Italy
Hi, due to my personal need of the module iscsi_trgt i've tryed installing it
with the normal debian methods:

apt-get install iscsitarget-source
apt-get install build-essential

compiled via

m-a prepare
m-a update
m-a a-i iscsitarget

ERROR:

/usr/src/modules/iscsitarget/kernel/config.c: In function
│ ‘iet_procfs_init’:
│ /usr/src/modules/iscsitarget/kernel/config.c:46: error: ‘struct
│ proc_dir_entry’ has no member named ‘owner’
│ make[3]: *** [/usr/src/modules/iscsitarget/kernel/config.o] Error 1
│ make[2]: *** [_module_/usr/src/modules/iscsitarget/kernel] Error 2
│ make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-4-pve'
│ make[1]: *** [binary-modules] Error 2
│ make[1]: Leaving directory `/usr/src/modules/iscsitarget'
│ make: *** [kdist_build] Error 2

I did the same with a original Debian64 and the problem didn't appear!

Anyone has an idea????

Tx, Diaolin
 
yes, i need iscsitarget, i use it on amd64 and it's very stable and the administration on the fly works like a charm.

Is it a big problem? I see only that little error but.. i'm not a kernel guru! :-)

I'm working on a mixed solution with openvz+kvm+kvm-nbd mapped disks

Do you have a hint?

Tx, Diaolin
 
ARGGGGGGGGGGGGGGhhhh,,,,
withouth openvz!

Do you know the problem of this compile error? I did install it on Debian amd64 and it compiles with the 2.6.32 kernel witouth errors...
not with proxmox

Tx
 
Resolved...

installed the 1.4.20 version of iscsitarget-source using the squeeze repository

apt-get install iscsitarget-source -t squeeze

then

removed the squeeze repo

m-a prepare
m-a update
m-a a-i iscsitarget

ok, now it's ok but...

bingo, i've written a script for iscsitarget that works even with SCST

just changing the header for the script i can create a target dinamically associated with a qemu-nbd exported device....

Great, many thanks

Diaolin
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!