[Open-FCoE] Errors when trying to build openfctgt

Vladislav Bolkhovitin vst at vlnb.net
Mon Apr 21 16:40:03 UTC 2008


santosh rastapur wrote:
> Robert,
>  
>    After modifying scsi_tgt.h to scst.h in the mentioned places, I am 
> getting the below error.

Oops, it torn out that sg_set_buf() was part of the kernel prior 2.6.24. 
Fixed in r347.

Sorry,
Vlad

> 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 
> exist
> make -C /lib/modules/2.6.23-default/build M=/usr/src/open-fcoe-misc 
> SCST=/usr/src/fcoe/scst/trunk/scst CONFIG_TGT:=m
> make[1]: Entering directory `/usr/src/linux-2.6'
>   CC [M]  /usr/src/open-fcoe-misc/openfctgt/openfc_target.o
> In 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 here
> 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
> 
> Regards
> -Santosh




More information about the devel mailing list