From: Ross S. W. W. <RW...@me...> - 2010-04-28 15:07:38
|
Anton Altaparmakov [mailto:ai...@ca...] wrote: > > Hi, > > Trying to use the iscsitarget.spec file from > iscsitarget-1.4.20.1 on SLES 10 SP3. I copied the spec file > from the .tar.gz to /usr/src/packages/SPECS and I copied the > .tar.gz to /usr/src/packages/SOURCES and then ran: > > cd /usr/src/packages/SPECS > rpmbuild -ba iscsitarget.spec > > And I get a long recursion which bombs out. )-: See bottom > of this message for the output from the rpmbuild command... > > I don't understand why this happens but if I do this change > to the spec file, it then does not recurse and proceeds (and > then fails as explained in my other post - if I then apply > the patch from my other post inside the .spec file as well, > then the rpmbuild completes): > > --- iscsitarget.spec.old 2010-04-28 15:57:13.000000000 +0100 > +++ iscsitarget.spec 2010-04-28 15:57:29.000000000 +0100 > @@ -223,7 +223,7 @@ fi > %if %dkms > %{__make} usr > %else > -%{__make} KERNELSRC=/lib/modules/%{kernel}/build > +%{__make} #KERNELSRC=/lib/modules/%{kernel}/build > %endif > %endif > > > The relevant bit of the rpmbuild output is then: > > cc ietadm.o param.o -o ietadm > make[1]: Leaving directory > `/usr/src/packages/BUILD/iscsitarget-1.4.20.1/usr' > /usr/bin/make -C /lib/modules/2.6.16.60-0.62.1-smp/build > SUBDIRS=/usr/src/packages/BUILD/iscsitarget-1.4.20.1/kernel modules > make[1]: Entering directory > `/usr/src/linux-2.6.16.60-0.62.1-obj/x86_64/smp' > /usr/bin/make -C ../../../linux-2.6.16.60-0.62.1 > O=../linux-2.6.16.60-0.62.1-obj/x86_64/smp modules > CC [M] /usr/src/packages/BUILD/iscsitarget-1.4.20.1/kernel/tio.o > CC [M] /usr/src/packages/BUILD/iscsitarget-1.4.20.1/kernel/iscsi.o > [...] > > Not sure what the problem is but it must be in the makefile > somewhere... What does, /lib/modules/2.6.16.60-0.62.1-smp/build, link to on your host (if anything)? I suspect it links to itself. -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. |