iscsitarget-1.4.20 failed / error during compile in CentOS 6.0 x86_64bit
Hello there,
I'm new to linux and I do really need steps-how-to-Fix regarding issues I encountered in CentOS v6.0 x86_64 when I tried to issue make command for iscsitarget-1.4.20 (can not use scsi-target-utils as an option because openQRM uses only the iscsitarget the 3rd party package). After I extracted the tar files and cd to /usr/src/local/iscsitarget-1.4.20. I issued command as follows:
[root@myschooproject 1.4.20]# make
cc: /lib/modules/2.6.32-71.el6.x86_64/build/include/linux/version.h: No such file or directory
cc: no input files
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
/bin/sh: line 0: [: too many arguments
make -C usr
make[1]: Entering directory `/ietd/1.4.20/usr'
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o ietd.o ietd.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o iscsid.o iscsid.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o conn.o conn.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o session.o session.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o target.o target.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o message.o message.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o ctldev.o ctldev.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o log.o log.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o chap.o chap.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o event.o event.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o param.o param.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o plain.o plain.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o isns.o isns.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o md5.o md5.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o sha1.o sha1.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 md5.o sha1.o -o ietd
cc -O2 -fno-inline -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE -c -o ietadm.o ietadm.c
cc ietadm.o param.o -o ietadm
make[1]: Leaving directory `/ietd/1.4.20/usr'
make -C /lib/modules/2.6.32-71.el6.x86_64/build SUBDIRS=/ietd/1.4.20/kernel modules
make: *** /lib/modules/2.6.32-71.el6.x86_64/build: No such file or directory. Stop.
make: *** [kernel] Error 2
[root@myschooproject 1.4.20]# uname -r
2.6.32-71.el6.x86_64
[root@myschooproject 1.4.20]# rpm -qa | grep kernel
kernel-devel-2.6.32-220.17.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
kernel-headers-2.6.32-220.17.1.el6.x86_64
dracut-kernel-004-256.el6_2.1.noarch
kernel-firmware-2.6.32-220.17.1.el6.noarch
kernel-2.6.32-220.17.1.el6.x86_64
[root@myschooproject 1.4.20]# rpm -qa | grep gcc
libgcc-4.4.6-3.el6.x86_64
gcc-c++-4.4.6-3.el6.x86_64
gcc-gfortran-4.4.6-3.el6.x86_64
gcc-4.4.6-3.el6.x86_64
[root@isocabinet 1.4.20]# ll /lib/modules/
total 8
drwxr-xr-x 7 root root 4096 May 28 10:00 2.6.32-220.17.1.el6.x86_64
drwxr-xr-x 7 root root 4096 May 16 14:38 2.6.32-71.el6.x86_64
[root@myschooproject 1.4.20]#
Any help is very much appreciated.
Junix
|