[Open-FCoE] Errors when trying to build openfctgt

Love, Robert W robert.w.love at intel.com
Sat Apr 19 01:23:48 UTC 2008


/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



More information about the devel mailing list