Just saw the thread about rhel5 symbol problems, which seems to be my
issue. Tried to apply the patch from Erez to 869.2 source, but it
failed :(

On Aug 26, 2:03 am, v42bis <[EMAIL PROTECTED]> wrote:
> open-iscsi 869.2 doesn't seem to want to compile for me. I am
> compiling against linux-2.6.18 with openvz patches applied 
> fromhttp://wiki.openvz.org/Download/kernel/rhel5/028stab057.2
>
> Any ideas?
>
> ak1-vz1:~/open-iscsi-2.0-869.2# make
> make -C utils/fwparam_ibft
> make[1]: Entering directory `/root/open-iscsi-2.0-869.2/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
> fw_entry.c: In function ‘dump_mac’:
> fw_entry.c:41: warning: unused variable ‘i’
> 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-869.2/utils/
> fwparam_ibft'
> make -C usr
> make[1]: Entering directory `/root/open-iscsi-2.0-869.2/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:325: 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 iscsi_sysfs.o iscsi_sysfs.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 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
> 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 iscsi_sysfs.o idbm.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
> 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 iscsi_sysfs.o idbm.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 iscsi_sysfs.o idbm.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-869.2/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-869.2/usr'
> make -C kernel
> make[1]: Entering directory `/root/open-iscsi-2.0-869.2/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_compat.h
> patching file iscsi_tcp.c
> patching file iscsi_tcp.h
> patching file libiscsi.c
> Hunk #2 succeeded at 976 (offset 2 lines).
> Hunk #3 succeeded at 1735 (offset 1 line).
> Hunk #4 succeeded at 1887 (offset 1 line).
> patching file libiscsi.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 /lib/modules/2.6.18-prep-92.1.1.el5.028stab057.2-ovz/build
> M=`pwd` KBUILD_OUTPUT=  V=0 modules
> make[2]: Entering directory `/usr/src/linux-2.6.18'
>   CC [M]  /root/open-iscsi-2.0-869.2/kernel/scsi_transport_iscsi.o
> In file included from /root/open-iscsi-2.0-869.2/kernel/
> scsi_transport_iscsi.h:33,
>                  from /root/open-iscsi-2.0-869.2/kernel/
> scsi_transport_iscsi.c:33:
> /root/open-iscsi-2.0-869.2/kernel/iscsi_compat.h:135: error:
> conflicting types for ‘is_power_of_2’
> include/linux/log2.h:53: error: previous definition of ‘is_power_of_2’
> was here
> /root/open-iscsi-2.0-869.2/kernel/iscsi_compat.h:178: error:
> redefinition of ‘scsi_set_resid’
> include/scsi/scsi_cmnd.h:150: error: previous definition of
> ‘scsi_set_resid’ was here
> /root/open-iscsi-2.0-869.2/kernel/iscsi_compat.h:183: error:
> redefinition of ‘scsi_get_resid’
> include/scsi/scsi_cmnd.h:155: error: previous definition of
> ‘scsi_get_resid’ was here
> /root/open-iscsi-2.0-869.2/kernel/scsi_transport_iscsi.c: In function
> ‘__iscsi_unblock_session’:
> /root/open-iscsi-2.0-869.2/kernel/scsi_transport_iscsi.c:381: warning:
> unused variable ‘ihost’
> make[3]: *** [/root/open-iscsi-2.0-869.2/kernel/
> scsi_transport_iscsi.o] Error 1
> make[2]: *** [_module_/root/open-iscsi-2.0-869.2/kernel] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.6.18'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/open-iscsi-2.0-869.2/kernel'
> make: *** [all] Error 2
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to