Hello,

Any help or hint to compile open-iscsi-2.0-870.2 for kernel 2.6.28 ?

I'm trying on a Bluewhite64 12.2 running kernel 2.6.28.2:

r...@test:/usr/local/src/open-iscsi-2.0-870.2# uname -a
Linux test 2.6.28.2 #1 SMP Sun Feb 1 09:32:16 BRST 2009 x86_64 Intel(R)
Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

r...@test:/usr/local/src/open-iscsi-2.0-870.2# gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux/4.2.4/specs
Target: x86_64-pc-linux
Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared
--enable-languages=ada,c,c++,fortran,java,objc --disable-multilib
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --build=x86_64-pc-linux --target=x86_64-pc-linux
--host=x86_64-pc-linux
Thread model: posix
gcc version 4.2.4

I have inserted the line "linux_2_6_28: $(unpatch_code)" but still getting
errors:

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':
/usr/local/src/open-iscsi-2.0-870.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 `/usr/local/src/open-iscsi-2.0-870.2/usr'
make -C kernel
make[1]: Entering directory `/usr/local/src/open-iscsi-2.0-870.2/kernel'
make -C /lib/modules/2.6.28.2/build M=`pwd` KBUILD_OUTPUT=  V=0 modules
make[2]: Entering directory `/usr/src/linux-2.6.28.2'
  CC [M]  /usr/local/src/open-iscsi-2.0-870.2/kernel/scsi_transport_iscsi.o
/usr/local/src/open-iscsi-2.0-870.2/kernel/scsi_transport_iscsi.c: In
function 'iscsi_add_session':
/usr/local/src/open-iscsi-2.0-870.2/kernel/scsi_transport_iscsi.c:704:
warning: 'err' may be used uninitialized in this function
  CC [M]  /usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.o
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1505: error: return
type is an incomplete type
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c: In function
'iscsi_eh_cmd_timed_out':
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1509: error: variable
'rc' has initializer but incomplete type
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1509: error:
'EH_NOT_HANDLED' undeclared (first use in this function)
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1509: error: (Each
undeclared identifier is reported only once
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1509: error: for each
function it appears in.)
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1509: error: storage
size of 'rc' isn't known
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1522: error:
'EH_RESET_TIMER' undeclared (first use in this function)
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1555: warning:
'return' with a value, in function returning void
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1509: warning: unused
variable 'rc'
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c: In function
'iscsi_host_alloc':
/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.c:1910: warning:
assignment from incompatible pointer type
make[3]: *** [/usr/local/src/open-iscsi-2.0-870.2/kernel/libiscsi.o] Error 1
make[2]: *** [_module_/usr/local/src/open-iscsi-2.0-870.2/kernel] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.28.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/open-iscsi-2.0-870.2/kernel'
make: *** [all] Error 2

Thanks in advance for any help/hint.

[]s, Jero

ps: sorry about my bad english

--~--~---------~--~----~------------~-------~--~----~
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