Re: Cannot build new open-iscsi in Suse 10 SP2
I'm getting the same messages when I try to build on my CentOS VM running a Xen Kernel. On Sep 15, 9:39 pm, Liming wrote: > I tried to build new open-iscsi(2.0-871) in Suse 10 SP2 but it failed. > I got some error message. The kernel version is 2.6.16-60. Do any one > know how to fix it?? > > > > goddard-suse:/home/guardkuo/open-iscsi-2.0-865 # make KSRC=/usr/src/ > linux KBUILD_OUTPUT=/usr/src/linux-obj/i386/smp > make -C usr > make[1]: Entering directory `/home/guardkuo/open-iscsi-2.0-865/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 > io.c:86: warning: ‘get_hwaddress_from_netdev’ defined but not used > 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 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 iscsi_sysfs.o idbm.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 iscsi_sysfs.o idbm.o initiator.o queue.o > actor.o mgmt_ipc.o isns.o transport.o iscsistart.o statics.o -o > iscsistart > login.o: In function `resolve_address': > /home/guardkuo/open-iscsi-2.0-865/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 `/home/guardkuo/open-iscsi-2.0-865/usr' > make -C kernel > make[1]: Entering directory `/home/guardkuo/open-iscsi-2.0-865/kernel' > echo "Patching source code for linux-2.6.16-18 ..." > Patching source code for linux-2.6.16-18 ... > if [ -e cur_patched ]; then \ > make -C . clean; \ > fi > patch -p1 < 2.6.16-18_compat.patch > patching file iscsi_2.6.20_compat.h > patching file iscsi_tcp.h > Hunk #1 succeeded at 52 (offset 3 lines). > patching file libiscsi.c > Hunk #1 succeeded at 760 (offset 44 lines). > Hunk #2 succeeded at 1527 (offset 19 lines). > patching file libiscsi.h > patching file scsi_transport_iscsi.c > patching file scsi_transport_iscsi.h > Hunk #1 succeeded at 182 (offset 6 lines). > cp 2.6.16-18_compat.patch has_16to18_patch > ln -s has_16to18_patch cur_patched > make -C /usr/src/linux M=`pwd` KBUILD_OUTPUT=/usr/src/linux-obj/i386/ > smp V=0 modules > make[2]: Entering directory `/usr/src/linux-2.6.16.60-0.21' > CC [M] /home/guardkuo/open-iscsi-2.0-865/kernel/ > scsi_transport_iscsi.o > CC [M] /home/guardkuo/open-iscsi-2.0-865/kernel/libiscsi.o > CC [M] /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_tcp.o > In file included from /home/guardkuo/open-iscsi-2.0-865/kernel/ > iscsi_tcp.h:55, > from /home/guardkuo/open-iscsi-2.0-865/kernel/ > iscsi_tcp.c:45: > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h:4: > error: redefinition of ‘struct hash_desc’ > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h:10: > error: redefinition of ‘crypto_hash_init’ > /usr/src/linux-2.6.16.60-0.21/include/linux/crypto.h:949: error: > previous definition of ‘crypto_hash_init’ was here > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h: In > function ‘crypto_hash_init’: > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h:11: > error: implicit declaration of function ‘crypto_digest_init’ > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h: At top > level: > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h:18: > error: redefinition of ‘crypto_hash_digest’ > /usr/src/linux-2.6.16.60-0.21/include/linux/crypto.h:968: error: > previous definition of ‘crypto_hash_digest’ was here > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h: In > function ‘crypto_hash_digest’: > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h:19: > error: implicit declaration of function ‘crypto_digest_digest’ > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h: At top > level: > /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h:26: > error: redefinition of ‘crypto_hash_update’ > /usr/src/linux-2.6.16.60-0.21/include/linux/crypto.h:956: error: > previous definition of ‘crypto_hash_updat
building from source fails on "custom cloud/xen" kernel.
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 :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 i