LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2012, 03:04 PM   #1
junix88
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Rep: Reputation: Disabled
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
 
Old 05-28-2012, 11:21 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I don't understand why you can't use the package but in any case, it looks like you probably don't have the kernel-devel package installed
 
Old 05-29-2012, 09:41 AM   #3
junix88
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi,

kernel-devel has already been installed as shown below. But still can't figure-it-out howto. Hope you can guide me on this just new to linux.

[root@myschooproject 1.4.20]# rpm -qa | fgrep kernel-devel
kernel-devel-2.6.32-220.17.1.el6.x86_64


Thanks
 
Old 05-29-2012, 11:34 AM   #4
junix88
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Guyz,

Thanks all. This has been resolved.

Best regards,

junix
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error : compile Ganglia on Centos cruzler Linux - Software 6 05-07-2010 05:04 AM
OpenSSH w/ Selinux compile error on CentOS 4.8 AlucardZero Linux - Software 2 03-16-2010 07:51 PM
distcc ERROR: compile dir.c on <server ip> failed DragonM15 Linux - Software 1 01-08-2009 03:24 PM
CentOS5.1 x86_64bit installation error dsids Linux - Software 5 04-24-2008 02:50 AM
kernel 2.6.8 compile error mkinitrd failed mcalizo Linux - Software 0 11-30-2004 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration