Thread: drbd error -115
View Single Post
  #8  
Old 20th April 2009, 23:43
anandx anandx is offline
HowtoForge Supporter
 
Join Date: Oct 2008
Posts: 55
Thanks: 5
Thanked 6 Times in 5 Posts
Default

Ok here is the result of trying to build the rpm on new centos kernel.

Code:
rpmbuild --rebuild iscsitarget-0.4.12-6.src.rpm 

Installing iscsitarget-0.4.12-6.src.rpm
warning: user bastiaan does not exist - using root
warning: group bastiaan does not exist - using root
warning: user bastiaan does not exist - using root
warning: group bastiaan does not exist - using root
warning: user bastiaan does not exist - using root
warning: group bastiaan does not exist - using root
warning: user bastiaan does not exist - using root
warning: group bastiaan does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36449
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf iscsitarget-0.4.12
+ /bin/gzip -dc /usr/src/redhat/SOURCES/iscsitarget-0.4.12.tar.gz
+ tar -xvvf -
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/
-rw-r--r-- fujita/fujita  9279 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/target_disk.c
-rw-r--r-- fujita/fujita  4307 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/wthread.c
-rw-r--r-- fujita/fujita 10267 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi_hdr.h
-rw-r--r-- fujita/fujita  5899 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/param.c
-rw-r--r-- fujita/fujita  5908 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/config.c
-rw-r--r-- fujita/fujita  4016 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/volume.c
-rw-r--r-- fujita/fujita  1715 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iotype.c
-rw-r--r-- fujita/fujita 40739 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi.c
-rw-r--r-- fujita/fujita  2113 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/null-io.c
-rw-r--r-- fujita/fujita   638 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iotype.h
-rw-r--r-- fujita/fujita  3339 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/session.c
-rw-r--r-- fujita/fujita  6426 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/digest.c
-rw-r--r-- fujita/fujita 10251 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi.h
-rw-r--r-- fujita/fujita  2105 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/event.c
-rw-r--r-- fujita/fujita  5311 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/file-io.c
-rw-r--r-- fujita/fujita   594 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/digest.h
-rw-r--r-- fujita/fujita 15163 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/nthread.c
-rw-r--r-- fujita/fujita  5346 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/target.c
-rw-r--r-- fujita/fujita  2799 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/iscsi_dbg.h
-rw-r--r-- fujita/fujita  2239 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/tio.c
-rw-r--r-- fujita/fujita   543 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/Makefile
-rw-r--r-- fujita/fujita  5252 2005-09-12 06:03:38 iscsitarget-0.4.12/kernel/conn.c
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/include/
-rw-r--r-- fujita/fujita  2515 2005-09-12 06:03:38 iscsitarget-0.4.12/include/iet_u.h
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/manpages/
-rw-r--r-- fujita/fujita  9930 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/manpages/ietd.conf.5
-rw-r--r-- fujita/fujita  4798 2005-09-12 06:03:38 iscsitarget-0.4.12/doc/manpages/ietd.8
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/
-rw-r--r-- fujita/fujita  4753 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/iscsi_hdr.h
-rw-r--r-- fujita/fujita  6397 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/param.c
-rw-r--r-- fujita/fujita  1087 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/misc.h
-rw-r--r-- fujita/fujita 11947 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/ietadm.c
-rw-r--r-- fujita/fujita 12028 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/plain.c
-rw-r--r-- fujita/fujita  1088 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/param.h
-rw-r--r-- fujita/fujita  1058 2005-09-12 06:03:38 iscsitarget-0.4.12/usr/ietadm.h
-rw-r--r-- fujita/fujita   749 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/types.h
-rw-r--r-- fujita/fujita   561 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/config.h
-rw-r--r-- fujita/fujita 16156 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/chap.c
-rw-r--r-- fujita/fujita  3340 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/session.c
-rw-r--r-- fujita/fujita 16645 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/isns.c
-rw-r--r-- fujita/fujita 18259 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/iscsid.c
-rw-r--r-- fujita/fujita  2786 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/event.c
-rw-r--r-- fujita/fujita  7902 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/ctldev.c
-rw-r--r-- fujita/fujita  2345 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/log.c
-rw-r--r-- fujita/fujita 12858 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/isns.h
-rw-r--r-- fujita/fujita  5565 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/iscsid.h
-rw-r--r-- fujita/fujita  3284 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/message.c
-rw-r--r-- fujita/fujita 11456 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/ietd.c
-rw-r--r-- fujita/fujita  2423 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/target.c
-rw-r--r-- fujita/fujita   335 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/Makefile
-rw-r--r-- fujita/fujita  2813 2005-09-12 06:03:39 iscsitarget-0.4.12/usr/conn.c
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/
drwxr-xr-x fujita/fujita     0 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/
-rw-r--r-- fujita/fujita  1418 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd.gentoo
-rw-r--r-- fujita/fujita  1306 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd
-rw-r--r-- fujita/fujita  3134 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd.debian
-rw-r--r-- fujita/fujita  2178 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initd/initd.redhat
-rw-r--r-- fujita/fujita   194 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initiators.allow
-rw-r--r-- fujita/fujita   266 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/initiators.deny
-rw-r--r-- fujita/fujita  1888 2005-09-12 06:03:39 iscsitarget-0.4.12/etc/ietd.conf
-rw-r--r-- fujita/fujita  8083 2005-09-12 06:03:39 iscsitarget-0.4.12/ChangeLog
-rw-r--r-- fujita/fujita 18010 2005-09-12 06:03:39 iscsitarget-0.4.12/COPYING
-rw-r--r-- fujita/fujita  1599 2005-09-12 06:03:39 iscsitarget-0.4.12/Makefile
-rw-r--r-- fujita/fujita  2580 2005-09-12 06:03:39 iscsitarget-0.4.12/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd iscsitarget-0.4.12
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #2610 (iscsitarget-0.4.12-kernel-compat-2.6.10.patch):'
Patch #2610 (iscsitarget-0.4.12-kernel-compat-2.6.10.patch):
+ patch -p0 -s
+ echo 'Patch #2612 (iscsitarget-r1257-kernel-compat-2.6.12.patch):'
Patch #2612 (iscsitarget-r1257-kernel-compat-2.6.12.patch):
+ patch -p0 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.36449
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd iscsitarget-0.4.12
+ make KERNELSRC=/lib/modules/2.6.18-128.1.6.el5/build
make -C usr
make[1]: Entering directory `/usr/src/redhat/BUILD/iscsitarget-0.4.12/usr'
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ietd.o ietd.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o iscsid.o iscsid.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o conn.o conn.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o session.o session.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o target.o target.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o message.o message.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ctldev.o ctldev.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o log.o log.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o isns.o isns.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o chap.o chap.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o event.o event.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o param.o param.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o plain.o plain.c
cc ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o isns.o chap.o event.o param.o plain.o -o ietd -lcrypto
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include   -c -o ietadm.o ietadm.c
cc ietadm.o param.o -o ietadm
make[1]: Leaving directory `/usr/src/redhat/BUILD/iscsitarget-0.4.12/usr'
make -C /lib/modules/2.6.18-128.1.6.el5/build SUBDIRS=/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.c:7:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from include/linux/mm.h:4,
                 from include/linux/pagemap.h:7,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/tio.c:8:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.c:12:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from include/linux/module.h:9,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.c:13:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.c:12:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/nthread.c:13:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.c:9:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/err.h:4,
                 from include/linux/kthread.h:4,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/wthread.c:10:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.c:9:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/asm/bitops.h:8,
                 from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/proc_fs.h:4,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/config.c:10:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.c:10:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from include/linux/mm.h:4,
                 from include/linux/pagemap.h:7,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.c:10:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/digest.c:12:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.c:11:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/asm/atomic.h:4,
                 from include/linux/file.h:8,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/conn.c:12:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.c:7:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from include/linux/mm.h:4,
                 from include/linux/pagemap.h:7,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/session.c:8:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.c:7:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from include/linux/mm.h:4,
                 from include/linux/pagemap.h:7,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target.c:9:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.c:7:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from include/linux/mm.h:4,
                 from include/linux/pagemap.h:7,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/volume.c:8:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.c:7:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from include/linux/mm.h:4,
                 from include/linux/pagemap.h:7,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:10,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iotype.c:9:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.c:11:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/genhd.h:12,
                 from include/linux/blkdev.h:5,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.c:7:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/file-io.c:12:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.c:14:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/genhd.h:12,
                 from include/linux/blkdev.h:5,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.c:10:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/null-io.c:15:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi.h:16,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.c:12:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_hdr.h:15:1: warning: "__packed" redefined
In file included from include/linux/compiler-gcc4.h:4,
                 from include/linux/compiler.h:42,
                 from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/scsi/scsi.h:11,
                 from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.c:10:
include/linux/compiler-gcc.h:31:1: warning: this is the location of the previous definition
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/target_disk.c:13:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
  CC [M]  /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.o
In file included from /usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c:12:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:39:5: warning: "D_IOV" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/iscsi_dbg.h:51:5: warning: "D_DUMP_PDU" is not defined
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c: In function ‘event_init’:
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c:102: warning: passing argument 2 of ‘netlink_kernel_create’ makes integer from pointer without a cast
/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.c:102: error: too few arguments to function ‘netlink_kernel_create’
make[2]: *** [/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel/event.o] Error 1
make[1]: *** [_module_/usr/src/redhat/BUILD/iscsitarget-0.4.12/kernel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
make: *** [mods] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.36449 (%build)


RPM build errors:
    user bastiaan does not exist - using root
    group bastiaan does not exist - using root
    user bastiaan does not exist - using root
    group bastiaan does not exist - using root
    user bastiaan does not exist - using root
    group bastiaan does not exist - using root
    user bastiaan does not exist - using root
    group bastiaan does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.36449 (%build)
I tried another version iscsitarget-0.4.13-0.1266.1.src.rpm, it also gave errors.

Then I then tried to build it from source.

Code:
[root@san2 iscsitarget-0.4.17]# make

Applying Patch compat-2.6.22-2.6.23.patch
patching file kernel/block-io.c
patching file kernel/config.c
patching file kernel/digest.c
patching file kernel/event.c
Applying Patch compat-2.6.19-2.6.21.patch
patching file kernel/event.c
patching file kernel/iscsi.c
patching file kernel/tio.c
Applying Patch compat-2.6.14-2.6.18.patch
patching file kernel/iscsi.h
patching file kernel/digest.c
patching file kernel/file-io.c
patching file kernel/iscsi.c
patching file kernel/tio.c
make -C usr
make[1]: Entering directory `/root/iscsitarget-0.4.17/usr'
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o ietd.o ietd.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o iscsid.o iscsid.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o conn.o conn.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o session.o session.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o target.o target.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o message.o message.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o ctldev.o ctldev.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o log.o log.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o chap.o chap.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o event.o event.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o param.o param.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o plain.o plain.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o isns.o isns.c
cc ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o log.o chap.o event.o param.o plain.o isns.o -o ietd -lcrypto
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE    -c -o ietadm.o ietadm.c
cc ietadm.o param.o -o ietadm
make[1]: Leaving directory `/root/iscsitarget-0.4.17/usr'
make -C /lib/modules/2.6.18-128.1.6.el5/build SUBDIRS=/root/iscsitarget-0.4.17/kernel modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
  CC [M]  /root/iscsitarget-0.4.17/kernel/tio.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/iscsi.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/nthread.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/wthread.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/config.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/digest.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/conn.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/session.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/target.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/volume.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/iotype.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/file-io.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/null-io.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/target_disk.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/event.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/param.o
  CC [M]  /root/iscsitarget-0.4.17/kernel/block-io.o
  LD [M]  /root/iscsitarget-0.4.17/kernel/iscsi_trgt.o
  Building modules, stage 2.
  MODPOST
  CC      /root/iscsitarget-0.4.17/kernel/iscsi_trgt.mod.o
  LD [M]  /root/iscsitarget-0.4.17/kernel/iscsi_trgt.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.1.6.el5-i686'
[root@san2 iscsitarget-0.4.17]# make install
`usr/ietd' -> `/usr/sbin/ietd'
`usr/ietadm' -> `/usr/sbin/ietadm'
`etc/initd/initd.redhat' -> `/etc/init.d/iscsi-target'
`doc/manpages/ietadm.8' -> `/usr/share/man/man8/ietadm.8'
`doc/manpages/ietd.8' -> `/usr/share/man/man8/ietd.8'
`doc/manpages/ietd.conf.5' -> `/usr/share/man/man5/ietd.conf.5'
`ChangeLog' -> `/usr/share/doc/iscsitarget/ChangeLog'
`COPYING' -> `/usr/share/doc/iscsitarget/COPYING'
`README' -> `/usr/share/doc/iscsitarget/README'
`README.vmware' -> `/usr/share/doc/iscsitarget/README.vmware'
install: creating directory `/lib/modules/2.6.18-128.1.6.el5/kernel/iscsi'
`kernel/iscsi_trgt.ko' -> `/lib/modules/2.6.18-128.1.6.el5/kernel/iscsi/iscsi_trgt.ko'
Running depmod

[root@san2 iscsitarget-0.4.17]# insmod /lib/modules/2.6.18-128.1.6.el5/kernel/iscsi/iscsi_trgt.ko

[root@san2 iscsitarget-0.4.17]# lsmod | grep iscsi
iscsi_trgt             69852  0
So now source is getting compiled. Also i see that my raid card drivers are in the centos kernel itself. Will try the same on san1 as well.

Though i am still surprised, how come on the plus kernel, it won't compile

Also need to watch for the connect errors, which are really getting me worried.
Reply With Quote