chiong lawrence
2012-May-29 19:29 UTC
[CentOS] iscsitarget-1.40.20 error during make in CentOS v6.1 x86_64bit
Hello, Need anyone's help regarding issues I encountered during make on iscsitarget-1.40.20 which I get from "svn co https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget/trunkiscsitarget" checkout revision 481 Issues where found below after a series of my command, as shown: [junix at thesisQRMproject iscsitarget]$ 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: [: 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/iscsitarget/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/iscsitarget/usr' make -C /lib/modules/2.6.32-131.21.1.el6.x86_64/build SUBDIRS=/ietd/iscsitarget/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 Tried check my current kernel version used and the kernel-devel and kernel-header that has been installed - [junix at thesisQRMproject iscsitarget]$ uname -r 2.6.32-131.21.1.el6.x86_64 [junix at thesisQRMproject iscsitarget]$ rpm -qa | grep kernel kernel-firmware-2.6.32-220.13.1.el6.noarch kernel-2.6.32-220.13.1.el6.x86_64 abrt-addon-kerneloops-2.0.4-14.el6.centos.x86_64 dracut-kernel-004-256.el6_2.1.noarch kernel-headers-2.6.32-131.2.1.el6.x86_64 kernel-2.6.32-220.2.1.el6.x86_64 kernel-2.6.32-131.21.1.el6.x86_64 kernel-devel-2.6.32-220.13.1.el6.x86_64 kernel-devel-2.6.32-131.2.1.el6.x86_64 kernel-2.6.32-71.el6.x86_64 libreport-plugin-kerneloops-2.0.5-20.el6.x86_64 [junix at thesisQRMproject iscsitarget]$ rpm -qa | grep gcc gcc-4.4.6-3.el6.x86_64 libgcc-4.4.6-3.el6.i686 libgcc-4.4.6-3.el6.x86_64 Verified the first error --> cc: /lib/modules/2.6.32-131.21.1.el6.x86_64/build/include/linux/version.h: No such file or directory [junix at thesisQRMproject iscsitarget]$ ll /lib/modules/2.6.32-131.21.1.el6.x86_64/build/include/linux/version.h ls: cannot access /lib/modules/2.6.32-131.21.1.el6.x86_64/build/include/linux/version.h: No such file or directory Verified the second error --> make: *** /lib/modules/2.6.32-131.21.1.el6.x86_64/build: No such file or directory. Stop. [junix at thesisQRMproject iscsitarget]$ ll /lib/modules/2.6.32-131.21.1.el6.x86_64/build lrwxrwxrwx 1 junix root 51 Dec 13 11:52 */lib/modules/2.6.32-131.21.1.el6.x86_64/build -> ../../../usr/src/kernels/2.6.32-131.21.1.el6.x86_64* [junix at thesisQRMproject iscsitarget]$ ll * /usr/src/kernels/2.6.32-131.2.1.el6.x86_64/* total 2952 drwxrwxr-x 25 junix root 4096 May 29 10:55 arch drwxrwxr-x 2 junix root 4096 May 29 10:55 block drwxrwxr-x 5 junix root 4096 May 29 10:55 crypto drwxrwxr-x 88 junix root 4096 May 29 10:55 drivers drwxrwxr-x 2 junix root 4096 May 29 10:55 firmware drwxrwxr-x 70 junix root 4096 May 29 10:55 fs drwxrwxr-x 21 junix root 4096 May 29 10:55 include drwxrwxr-x 2 junix root 4096 May 29 10:55 init drwxrwxr-x 2 junix root 4096 May 29 10:55 ipc drwxrwxr-x 7 junix root 4096 May 29 10:55 kernel drwxrwxr-x 7 junix root 4096 May 29 10:55 lib -rwxrwxr-x 1 junix root 56736 Sep 26 2011 Makefile -rwxrwxr-x 1 junix root 1092 Sep 26 2011 Makefile.common drwxrwxr-x 2 junix root 4096 May 29 10:55 mm -rwxrwxr-x 1 junix root 596750 Sep 26 2011 Module.symvers drwxrwxr-x 48 junix root 4096 May 29 10:55 net drwxrwxr-x 6 junix root 4096 May 29 10:55 samples drwxrwxr-x 12 junix root 4096 May 29 10:55 scripts drwxrwxr-x 7 junix root 4096 May 29 10:55 security drwxrwxr-x 21 junix root 4096 May 29 10:55 sound -rwxrwxr-x 1 junix root 2278502 Sep 26 2011 System.map drwxrwxr-x 3 junix root 4096 May 29 10:55 tools drwxrwxr-x 2 junix root 4096 May 29 10:55 usr drwxrwxr-x 3 junix root 4096 May 29 10:55 virt I noticed that all of the links where color "red". Is it the cause of the errors? If it was how do I fix it. I tried change the ownership to user "junix" and change the permission to 775 BUT still its persist after I issued the make command. Please help I'm stuck here. Can't figured it out how I can resolve this issue. Still learning on linux just a neophyte on this OS and very interested to learn. Thanks
m.roth at 5-cent.us
2012-May-29 19:51 UTC
[CentOS] iscsitarget-1.40.20 error during make in CentOS v6.1 x86_64bit
chiong lawrence wrote:> Hello, > > Need anyone's help regarding issues I encountered during make on > iscsitarget-1.40.20 which I get from "svn co > https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget/trunkiscsitarget" > checkout revision 481 > > Issues where found below after a series of my command, as shown: > > [junix at thesisQRMproject iscsitarget]$ make > *cc: > /lib/modules/2.6.32-131.21.1.el6.x86_64/build/include/linux/version.h: > No such file or directory*<snip>> Tried check my current kernel version used and the kernel-devel and > kernel-header that has been installed - > > [junix at thesisQRMproject iscsitarget]$ uname -r > 2.6.32-131.21.1.el6.x86_64 > > [junix at thesisQRMproject iscsitarget]$ rpm -qa | grep kernel<snip>> kernel-2.6.32-220.13.1.el6.x86_64<snip>> kernel-headers-2.6.32-131.2.1.el6.x86_64 > kernel-2.6.32-220.2.1.el6.x86_64 > kernel-2.6.32-131.21.1.el6.x86_64 > kernel-devel-2.6.32-220.13.1.el6.x86_64 > kernel-devel-2.6.32-131.2.1.el6.x86_64You're compiling for kernel 2.6.32-131.21.1; you only have kernel-devel for 32-131.2 aned 32-220.13. mark