iscsitarget-1.4.20.2 issues during make command
Posted: 2012/05/17 22:57:53
Hello there,
I'm new to linux and I do really need steps-how-to-Fix regarding issues I encountered during kernel module compilation of iscsitarget-1.4.20.2 (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.2. I issued command as follows:
[root@thesisQRMproject iscsitarget-1.4.20.2]# make
cc: /lib/modules/2.6.32-131.21.1.el6.x86_64/build/include/linux/version.h: No such file or directory
cc: no input files
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -lt: unary operator expected
make -C usr
make[1]: Entering directory `/usr/src/local/iscsitarget-1.4.20.2/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 -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE -c -o md5.o md5.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -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 -g -I../include -D_GNU_SOURCE -c -o ietadm.o ietadm.c
cc ietadm.o param.o -o ietadm
make[1]: Leaving directory `/usr/src/local/iscsitarget-1.4.20.2/usr'
make -C /lib/modules/2.6.32-131.21.1.el6.x86_64/build SUBDIRS=/usr/src/local/iscsitarget-1.4.20.2/kernel modules
make: *** /lib/modules/2.6.32-131.21.1.el6.x86_64/build: No such file or directory. Stop.
make: *** [kernel] Error 2
UNFORTUNATELY, there was errors as shown above. Tried the following commands to confirm files not in the directory as shown above:
[root@thesisQRMproject iscsitarget-1.4.20.2]# find /lib/modules/`uname -r` -name version.h
[root@thesisQRMproject iscsitarget-1.4.20.2]#
[root@thesisQRMproject iscsitarget-1.4.20.2]# find /lib/modules/`uname -r` -name build
/lib/modules/2.6.32-131.21.1.el6.x86_64/build
version.h file confirmed that it was not existed in the directory BUT /lib/modules/2.6.32-131.21.1.el6.x86_64/build was being found.
Any help is very much appreciated.
Thank you.
I'm new to linux and I do really need steps-how-to-Fix regarding issues I encountered during kernel module compilation of iscsitarget-1.4.20.2 (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.2. I issued command as follows:
[root@thesisQRMproject iscsitarget-1.4.20.2]# make
cc: /lib/modules/2.6.32-131.21.1.el6.x86_64/build/include/linux/version.h: No such file or directory
cc: no input files
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -le: unary operator expected
/bin/sh: line 0: [: -lt: unary operator expected
make -C usr
make[1]: Entering directory `/usr/src/local/iscsitarget-1.4.20.2/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 -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include -D_GNU_SOURCE -c -o md5.o md5.c
cc -O2 -fno-inline -Wall -Wstrict-prototypes -g -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 -g -I../include -D_GNU_SOURCE -c -o ietadm.o ietadm.c
cc ietadm.o param.o -o ietadm
make[1]: Leaving directory `/usr/src/local/iscsitarget-1.4.20.2/usr'
make -C /lib/modules/2.6.32-131.21.1.el6.x86_64/build SUBDIRS=/usr/src/local/iscsitarget-1.4.20.2/kernel modules
make: *** /lib/modules/2.6.32-131.21.1.el6.x86_64/build: No such file or directory. Stop.
make: *** [kernel] Error 2
UNFORTUNATELY, there was errors as shown above. Tried the following commands to confirm files not in the directory as shown above:
[root@thesisQRMproject iscsitarget-1.4.20.2]# find /lib/modules/`uname -r` -name version.h
[root@thesisQRMproject iscsitarget-1.4.20.2]#
[root@thesisQRMproject iscsitarget-1.4.20.2]# find /lib/modules/`uname -r` -name build
/lib/modules/2.6.32-131.21.1.el6.x86_64/build
version.h file confirmed that it was not existed in the directory BUT /lib/modules/2.6.32-131.21.1.el6.x86_64/build was being found.
Any help is very much appreciated.
Thank you.