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
Cannot build new open-iscsi in Suse 10 SP2
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_update’ was here /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h: In function ‘crypto_hash_update’: /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h:27: error: implicit declaration of function ‘crypto_digest_update’ /home/guardkuo/open-iscsi-2.0-865/kernel/iscsi_2.6.20_compat.h: At top level: