[Open-FCoE] Errors when trying to build openfctgt

santosh rastapur sk_rastapur at hotmail.com
Mon Apr 21 15:38:50 UTC 2008


Robert,
 
   After modifying scsi_tgt.h to scst.h in the mentioned places, I am getting the below error.
 
linux-hn1g:/usr/src/open-fcoe-misc # make SCST=/usr/src/fcoe/scst/trunk/scst install_tgt[ ! -f openfc.ko ] || make clean        #clean since initiator  modules existmake -C /lib/modules/2.6.23-default/build M=/usr/src/open-fcoe-misc SCST=/usr/src/fcoe/scst/trunk/scst CONFIG_TGT:=mmake[1]: Entering directory `/usr/src/linux-2.6'  CC [M]  /usr/src/open-fcoe-misc/openfctgt/openfc_target.oIn file included from /usr/src/open-fcoe-misc/openfctgt/openfc_target.c:60:/usr/src/fcoe/scst/trunk/scst/include/scst.h:2358: error: redefinition of âsg_set_bufâinclude/linux/scatterlist.h:10: error: previous definition of âsg_set_bufâ was heremake[2]: *** [/usr/src/open-fcoe-misc/openfctgt/openfc_target.o] Error 1make[1]: *** [_module_/usr/src/open-fcoe-misc] Error 2make[1]: Leaving directory `/usr/src/linux-2.6'make: *** [tgt] Error 2
Regards
-Santosh
> Subject: RE: [Open-FCoE] Errors when trying to build openfctgt> Date: Fri, 18 Apr 2008 18:23:48 -0700> From: robert.w.love at intel.com> To: sk_rastapur at hotmail.com; devel at open-fcoe.org> > /usr/src/open-fcoe-misc/openfctgt/openfc_target.c:796: error: implicit declaration of function âscst_unregister_target_templateâ> make[2]: *** [/usr/src/open-fcoe-misc/openfctgt/openfc_target.o] Error 1> make[1]: *** [_module_/usr/src/open-fcoe-misc] Error 2> make[1]: Leaving directory `/usr/src/linux-2.6'> make: *** [tgt] Error 2> >  > I couldn't find the scsi_tgt.h file in this directory.>  > linux-hn1g:/usr/src/open-fcoe-misc # ls /usr/src/open-fcoe-misc/openfctgt/> .openfc_target.o.d  openfc_pkt.c  openfc_scst.c  openfc_scst_pkt.h  openfc_target.c  openfc_target.h>  > I had checked using >       git clone git://open-fcoe.org/openfc/open-fcoe-misc.git >  > Am i missing someting??>  > --------------------------------------------------------------------------> > There was a post to this list, yesterday I think, from the SCST maintainer. He has renamed scsi_tgt.h to scst.h in the SCST code base to avoid a conflict with a kernel file. We need to make the appropriate changes in our code to adjust for the change; the target is broken as you noticed until we get a patch in to fix it. As Yi pointed out yesterday, we think that if you just change the following #include lines in the code it should work, but we haven't tried or tested.> > File Line> 0 openfc_scst.c 61 #include "scsi_tgt.h"> 1 openfc_scst_pkt.h 24 #include "scsi_tgt.h"> 2 openfc_target.c 59 #include "scsi_tgt.h"> > //Rob
_________________________________________________________________
Education: Are exams worrying you all the day long? Write to MSN education experts for help.
http://education.in.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.open-fcoe.org/pipermail/fcoe-devel/attachments/20080421/9cdf2637/attachment.html>


More information about the devel mailing list