[Open-FCoE] Errors when trying to build openfctgt

santosh rastapur sk_rastapur at hotmail.com
Sat Apr 19 01:09:02 UTC 2008


Hi,
 
I am seeing the below errors when trying to build openfctgt
 
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.o/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:59:22: error: scsi_tgt.h: No such file or directoryIn file included from /usr/src/open-fcoe-misc/openfctgt/openfc_target.c:69:/usr/src/open-fcoe-misc/openfctgt/openfc_scst_pkt.h:149: error: expected specifier-qualifier-list before âscst_data_directionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:90: warning: âstruct scst_tgt_templateâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:90: warning: its scope is only this definition or declaration, which is probably not what you want/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:92: warning: âstruct scst_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:93: warning: âstruct scst_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:94: warning: âstruct scst_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:95: warning: âstruct scst_mgmt_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:116: error: variable âopenfct_tgt_templeteâ has initializer but incomplete type/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:117: error: unknown field ânameâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:117: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:117: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:118: error: unknown field âsg_tablesizeâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:118: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:118: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:119: error: unknown field âuse_clusteringâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:119: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:119: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:120: error: unknown field âxmit_response_atomicâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:120: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:120: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:121: error: unknown field ârdy_to_xfer_atomicâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:121: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:121: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:122: error: unknown field âdetectâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:122: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:122: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:123: error: unknown field âreleaseâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:123: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:123: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:124: error: unknown field âxmit_responseâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:124: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:124: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:125: error: unknown field ârdy_to_xferâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:125: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:125: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:126: error: unknown field âon_free_cmdâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:126: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:126: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:127: error: unknown field âtask_mgmt_fn_doneâ specified in initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:127: warning: excess elements in struct initializer/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:127: warning: (near initialization for âopenfct_tgt_templeteâ)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:160: error: conflicting types for âopenfct_detectâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:90: error: previous declaration of âopenfct_detectâ was here/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:177: warning: âstruct scst_mgmt_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:178: error: conflicting types for âopenfct_task_mgmt_fn_doneâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:95: error: previous declaration of âopenfct_task_mgmt_fn_doneâ was here/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_session_createâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:209: error: implicit declaration of function âscst_register_sessionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:210: warning: assignment makes pointer from integer without a cast/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:216: error: implicit declaration of function âscst_sess_set_tgt_privâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_discovery_doneâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:258: error: implicit declaration of function âscst_registerâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:258: warning: assignment makes pointer from integer without a cast/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:268: error: implicit declaration of function âscst_tgt_set_tgt_privâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_alloc_session_doneâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:292: error: implicit declaration of function âscst_unregister_sessionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_free_sess_doneâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:321: error: implicit declaration of function âscst_sess_get_tgt_privâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:321: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_target_releaseâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:341: error: implicit declaration of function âscst_tgt_get_tgt_privâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:341: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_process_scsi_cmdâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:373: error: âstruct fc_scsi_pktâ has no member named âfcidâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:380: error: âstruct fc_scsi_pktâ has no member named ât_stateâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:388: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:388: error: implicit declaration of function âscst_rx_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:389: error: âstruct fc_scsi_pktâ has no member named âcdbâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:389: error: âSCST_ATOMICâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:389: error: (Each undeclared identifier is reported only once/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:389: error: for each function it appears in.)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:391: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:395: error: implicit declaration of function âscst_cmd_set_tagâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:395: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:395: error: âstruct fc_scsi_pktâ has no member named âexidâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:396: error: implicit declaration of function âscst_cmd_set_tgt_privâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:396: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:398: error: implicit declaration of function âscst_cmd_set_expectedâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:398: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:399: error: âstruct fc_scsi_pktâ has no member named âdata_directionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:400: error: implicit declaration of function âscst_cmd_init_doneâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:400: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:400: error: âSCST_CONTEXT_DIRECTâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: At top level:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:406: warning: âstruct scst_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:407: error: conflicting types for âopenfct_xmit_responseâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:92: error: previous declaration of âopenfct_xmit_responseâ was here/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_xmit_responseâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:408: error: âSCST_TGT_RES_SUCCESSâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:418: error: implicit declaration of function âscst_cmd_get_sessionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:418: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:423: error: implicit declaration of function âscst_cmd_get_tgt_privâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:423: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:425: error: implicit declaration of function âscst_cmd_get_resp_data_lenâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:426: error: implicit declaration of function âscst_cmd_get_sgâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:426: warning: assignment makes pointer from integer without a cast/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:427: error: implicit declaration of function âscst_cmd_get_sg_cntâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:435: error: âstruct fc_scsi_pktâ has no member named âdata_directionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:435: error: implicit declaration of function âscst_cmd_get_data_directionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:436: error: âstruct fc_scsi_pktâ has no member named ârq_resultâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:436: error: implicit declaration of function âscst_cmd_get_statusâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:437: error: âstruct fc_scsi_pktâ has no member named âsense_bufferâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:437: error: implicit declaration of function âscst_cmd_get_sense_bufferâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:438: error: âstruct fc_scsi_pktâ has no member named âsense_buffer_lenâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:438: error: implicit declaration of function âscst_cmd_get_sense_buffer_lenâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:440: error: implicit declaration of function âscst_cmd_get_tgt_resp_flagsâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:442: error: âSCST_TSC_FLAG_STATUSâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:445: error: âSCST_TGT_RES_FATAL_ERRORâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:449: error: âstruct fc_scsi_pktâ has no member named âdata_directionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:449: error: âSCST_DATA_WRITEâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:450: error: âstruct fc_scsi_pktâ has no member named âresidualâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:451: error: implicit declaration of function âSCST_SENSE_VALIDâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:451: error: âstruct fc_scsi_pktâ has no member named âsense_bufferâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:453: error: âstruct fc_scsi_pktâ has no member named ârq_resultâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:456: error: âstruct fc_scsi_pktâ has no member named âresidualâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:457: error: âstruct fc_scsi_pktâ has no member named ârq_resultâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:458: error: âstruct fc_scsi_pktâ has no member named âresidualâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:459: error: âstruct fc_scsi_pktâ has no member named ârq_resultâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_cmd_completeâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:474: error: âstruct fc_scsi_pktâ has no member named ât_stateâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:475: error: implicit declaration of function âscst_tgt_cmd_doneâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:475: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: At top level:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:478: warning: âstruct scst_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:479: error: conflicting types for âopenfct_rdy_to_xferâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:93: error: previous declaration of âopenfct_rdy_to_xferâ was here/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_rdy_to_xferâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:484: error: âSCST_TGT_RES_SUCCESSâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:487: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:490: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:492: error: implicit declaration of function âscst_cmd_get_bufflenâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:493: warning: assignment makes pointer from integer without a cast/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:495: error: âstruct fc_scsi_pktâ has no member named âdata_directionâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:497: error: âstruct fc_scsi_pktâ has no member named ât_stateâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_data_receivedâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:511: error: âSCST_RX_STATUS_SUCCESSâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:513: error: âstruct fc_scsi_pktâ has no member named âfcidâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:517: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:517: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:522: error: âstruct fc_scsi_pktâ has no member named ât_stateâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:523: error: implicit declaration of function âscst_rx_dataâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:523: error: âstruct fc_scsi_pktâ has no member named âscst_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:523: error: âSCST_CONTEXT_DIRECTâ undeclared (first use in this function)/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: At top level:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:529: warning: âstruct scst_cmdâ declared inside parameter list/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:530: error: conflicting types for âopenfct_on_free_cmdâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:94: error: previous declaration of âopenfct_on_free_cmdâ was here/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_on_free_cmdâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:532: warning: cast to pointer from integer of different size/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:536: error: âstruct fc_scsi_pktâ has no member named ât_stateâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_initâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:732: error: implicit declaration of function âscst_register_target_templateâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfc_unregisterâ:/usr/src/open-fcoe-misc/openfctgt/openfc_target.c:766: error: implicit declaration of function âscst_unregisterâ/usr/src/open-fcoe-misc/openfctgt/openfc_target.c: In function âopenfct_exitâ:/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 1make[1]: *** [_module_/usr/src/open-fcoe-misc] Error 2make[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??
 
Thx
-Santosh
 
_________________________________________________________________
Technology : Catch up on updates on the latest Gadgets, Reviews, Gaming and Tips to use technology etc.
http://computing.in.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.open-fcoe.org/pipermail/fcoe-devel/attachments/20080419/b76981b4/attachment.html>


More information about the devel mailing list