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 utils/fwparam_ibft make[1]: Entering directory `/root/open-iscsi-2.0-870.3/utils/ fwparam_ibft' cc -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -c -o fwparam_ibft.o fwparam_ibft.c cc -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -c -o fw_entry.o fw_entry.c cc -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -c -o prom_lex.o prom_lex.c <stdout>:1622: warning: ‘yyunput’ defined but not used cc -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -c -o prom_parse.tab.o prom_parse.tab.c cc -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -c -o fwparam_ppc.o fwparam_ppc.c fwparam_ppc.c: In function ‘loop_devs’: fwparam_ppc.c:352: warning: passing argument 4 of ‘qsort’ from incompatible pointer type make[1]: Leaving directory `/root/open-iscsi-2.0-870.3/utils/ fwparam_ibft' make -C usr make[1]: Entering directory `/root/open-iscsi-2.0-870.3/usr' cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o util.o util.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o io.o io.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o auth.o auth.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o login.o login.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o log.o log.c log.c:334: warning: ‘__dump_char’ defined but not used cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o md5.o md5.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o sha1.o sha1.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iface.o iface.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o idbm.o idbm.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o sysdeps.o sysdeps.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o sysfs.o sysfs.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iscsi_sysfs.o iscsi_sysfs.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o netlink.o netlink.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o initiator.o initiator.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o scsi.o scsi.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o actor.o actor.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o mgmt_ipc.o mgmt_ipc.c mgmt_ipc.c: In function ‘event_loop’: mgmt_ipc.c:645: warning: implicit declaration of function ‘sysfs_cleanup’ cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o isns.o isns.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o transport.o transport.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iscsid.o iscsid.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysdeps.o sysfs.o iscsi_sysfs.o netlink.o initiator.o scsi.o actor.o mgmt_ipc.o isns.o transport.o iscsid.o -o iscsid cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o strings.o strings.c strings.c: In function ‘enlarge_data’: strings.c:83: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘size_t’ strings.c:83: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 4 has type ‘size_t’ cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o discovery.o discovery.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iscsiadm.o iscsiadm.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysdeps.o sysfs.o iscsi_sysfs.o ../utils/ fwparam_ibft/fw_entry.o ../utils/fwparam_ibft/fwparam_ibft.o ../utils/ fwparam_ibft/fwparam_ppc.o ../utils/fwparam_ibft/prom_lex.o ../utils/ fwparam_ibft/prom_parse.tab.o strings.o discovery.o iscsiadm.o -o iscsiadm cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iscsistart.o iscsistart.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o statics.o statics.c cc -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux - DNETLINK_ISCSI=8 -D_GNU_SOURCE -static netlink.o util.o io.o auth.o login.o log.o md5.o sha1.o iface.o idbm.o sysdeps.o sysfs.o iscsi_sysfs.o initiator.o scsi.o actor.o mgmt_ipc.o isns.o transport.o ../utils/fwparam_ibft/fw_entry.o ../utils/fwparam_ibft/ fwparam_ibft.o ../utils/fwparam_ibft/fwparam_ppc.o ../utils/ fwparam_ibft/prom_lex.o ../utils/fwparam_ibft/prom_parse.tab.o iscsistart.o statics.o -o iscsistart login.o: In function `resolve_address': /root/open-iscsi-2.0-870.3/usr/login.c:168: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking make[1]: Leaving directory `/root/open-iscsi-2.0-870.3/usr' make -C kernel make[1]: Entering directory `/root/open-iscsi-2.0-870.3/kernel' echo "Patching source code for linux-2.6.14-19 ..." Patching source code for linux-2.6.14-19 ... if [ -e cur_patched ]; then \ make -C . clean; \ fi patch -p1 < 2.6.14-19_compat.patch patching file iscsi_tcp.c patching file iscsi_tcp.h patching file libiscsi.c patching file libiscsi.h patching file open_iscsi_compat.h patching file scsi_transport_iscsi.c patching file scsi_transport_iscsi.h cp 2.6.14-19_compat.patch has_14to19_patch ln -s has_14to19_patch cur_patched 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? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---