On 09/28/2009 03:04 PM, Xenophod wrote:
> I'm trying to build the open-iscsi module for a xen kernel provided by
> 3Tera/Applogic (based on CentOS 5.1 I believe).
> I have the kernel source from the vendor and I'm not sure if I'm doing
> this right.
> Here is the command I'm running:
>
> # make KSRC=/root/rpm/BUILD/xen-3.2.2-src/linux-2.6.18-xen.hg \
> KBUILD_OUTPUT=/root/rpm/BUILD/xen-3.2.2-src/build-linux-2.6.18-
> xenU_x86_32
>


> make -C /root/rpm/BUILD/xen-3.2.2-src/linux-2.6.18-xen.hg M=`pwd`
> KBUILD_OUTPUT=/root/rpm/BUILD/xen-3.2.2-src/build-linux-2.6.18-
> xenU_x86_32  V=0 modules
> make[2]: Entering directory `/root/rpm/BUILD/xen-3.2.2-src/
> linux-2.6.18-xen.hg'
>    CC [M]  /root/open-iscsi-2.0-870.3/kernel/scsi_transport_iscsi.o
> In file included from /root/open-iscsi-2.0-870.3/kernel/
> scsi_transport_iscsi.h:34,
>                   from /root/open-iscsi-2.0-870.3/kernel/
> scsi_transport_iscsi.c:33:
> /root/open-iscsi-2.0-870.3/kernel/open_iscsi_compat.h:190: error:
> redefinition of ‘shost_priv’
> /root/rpm/BUILD/xen-3.2.2-src/linux-2.6.18-xen.hg/include/scsi/
> scsi_host.h:644: error: previous definition of ‘shost_priv’ was here
> /root/open-iscsi-2.0-870.3/kernel/open_iscsi_compat.h:218: error:
> redefinition of ‘scsi_set_resid’
> /root/rpm/BUILD/xen-3.2.2-src/linux-2.6.18-xen.hg/include/scsi/
> scsi_cmnd.h:150: error: previous definition of ‘scsi_set_resid’ was
> here
> /root/open-iscsi-2.0-870.3/kernel/open_iscsi_compat.h:223: error:
> redefinition of ‘scsi_get_resid’
> /root/rpm/BUILD/xen-3.2.2-src/linux-2.6.18-xen.hg/include/scsi/
> scsi_cmnd.h:155: error: previous definition of ‘scsi_get_resid’ was
> here
> /root/open-iscsi-2.0-870.3/kernel/scsi_transport_iscsi.c: In function
> ‘__iscsi_unblock_session’:
> /root/open-iscsi-2.0-870.3/kernel/scsi_transport_iscsi.c:551: warning:
> unused variable ‘ihost’
> make[4]: *** [/root/open-iscsi-2.0-870.3/kernel/
> scsi_transport_iscsi.o] Error 1
> make[3]: *** [_module_/root/open-iscsi-2.0-870.3/kernel] Error 2
> make[2]: *** [modules] Error 2
> make[2]: Leaving directory `/root/rpm/BUILD/xen-3.2.2-src/linux-2.6.18-
> xen.hg'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/open-iscsi-2.0-870.3/kernel'
> make: *** [all] Error 2
>
>
> I've tried this with both open-iscsi-2.0-870.3 and open-iscsi-2.0-871
> sources and I get the same results.
> Is there something I'm doing wrong? Am I missing some tools that I
> should get through yum?
>

The open-iscsi kernel build code supports upstream kernels and in some 
cases where someone modified the core patches to support it some 
specific red hat kernels. It does not support other vendor kernels well, 
because we have no idea what is in there, or the build system is not 
smart enough to figure out what is going on, or because I messed up on 
the compat code and did not make it generic enough.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to