Hello !

Can someone explain me how to build a file in opensolaris.
I try to build the file st.c in src/uts/common/io/scsi/targets.
In the path "src/uts/common" i used the command  "dmake io/scsi/targets/st.o" 
to build the file.
I have this result :

dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
/opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes 
-errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED 
-xc99=%none  -DTEXT_DOMAIN=\"\" -D_TS_ERRNO  
-I/export/home/testws2/proto/root_i386/usr/include    -c  io/scsi/targets/st.c
+ /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all 
-erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none 
-DTEXT_DOMAIN="" -D_TS_ERRNO -I/export/home/testws2/proto/root_i386/usr/include 
-c io/scsi/targets/st.c
"io/scsi/targets/st.c", line 156: syntax error before or at: st_acc_attr
"io/scsi/targets/st.c", line 156: warning: old-style declaration or incorrect 
type for: st_acc_attr (E_OLD_STYLE_DECL_OR_BAD_TYPE)
"io/scsi/targets/st.c", line 157: undefined symbol: DDI_DEVICE_ATTR_V0
"io/scsi/targets/st.c", line 157: non-constant initializer: op "NAME"
"io/scsi/targets/st.c", line 158: undefined symbol: DDI_NEVERSWAP_ACC
"io/scsi/targets/st.c", line 158: too many initializers for scalar
"io/scsi/targets/st.c", line 160: undefined symbol: DDI_STRICTORDER_ACC
"io/scsi/targets/st.c", line 163: undefined symbol: ST_MAX_CONTIG_MEM_NUM
"io/scsi/targets/st.c", line 163: non-constant initializer: op "NAME"
"io/scsi/targets/st.c", line 207: undefined symbol: SCSI_ERR_RETRYABLE
"io/scsi/targets/st.c", line 207: non-constant initializer: op "NAME"
"io/scsi/targets/st.c", line 372: warning: dubious tag declaration: struct 
aio_req (E_DUBIOUS_TAG_DECLARATION)
"io/scsi/targets/st.c", line 373: warning: dubious tag declaration: struct 
aio_req (E_DUBIOUS_TAG_DECLARATION)
"io/scsi/targets/st.c", line 383: incomplete struct/union/enum cb_ops: st_cb_ops
"io/scsi/targets/st.c", line 384: too many struct/union initializers
"io/scsi/targets/st.c", line 395: undefined symbol: nochpoll
"io/scsi/targets/st.c", line 396: undefined symbol: ddi_prop_op
"io/scsi/targets/st.c", line 398: undefined symbol: D_64BIT
"io/scsi/targets/st.c", line 398: undefined symbol: D_MP
"io/scsi/targets/st.c", line 398: undefined symbol: D_NEW
"io/scsi/targets/st.c", line 398: undefined symbol: D_HOTPLUG
"io/scsi/targets/st.c", line 399: undefined symbol: CB_REV
"io/scsi/targets/st.c", line 405: syntax error before or at: ddi_info_cmd_t
"io/scsi/targets/st.c", line 405: warning: undefined or missing type for: 
ddi_info_cmd_t (E_UNDEFINED_OR_MISSING_TYPE)
"io/scsi/targets/st.c", line 405: warning: undefined or missing type for: void 
(E_UNDEFINED_OR_MISSING_TYPE)
"io/scsi/targets/st.c", line 406: warning: undefined or missing type for: void 
(E_UNDEFINED_OR_MISSING_TYPE)
"io/scsi/targets/st.c", line 408: syntax error before or at: ddi_attach_cmd_t
"io/scsi/targets/st.c", line 408: warning: undefined or missing type for: 
ddi_attach_cmd_t (E_UNDEFINED_OR_MISSING_TYPE)
"io/scsi/targets/st.c", line 409: syntax error before or at: ddi_detach_cmd_t
"io/scsi/targets/st.c", line 409: warning: undefined or missing type for: 
ddi_detach_cmd_t (E_UNDEFINED_OR_MISSING_TYPE)
"io/scsi/targets/st.c", line 411: incomplete struct/union/enum dev_ops: st_ops
"io/scsi/targets/st.c", line 412: undefined symbol: DEVO_REV
"io/scsi/targets/st.c", line 412: too many struct/union initializers
"io/scsi/targets/st.c", line 455: warning: dubious tag declaration: struct 
aio_req (E_DUBIOUS_TAG_DECLARATION)
"io/scsi/targets/st.c", line 497: warning: dubious tag declaration: struct 
scsi_watch_result (E_DUBIOUS_TAG_DECLARATION)
"io/scsi/targets/st.c", line 565: undefined symbol: mod_driverops
"io/scsi/targets/st.c", line 565: warning: initialization type mismatch 
(E_INITIALIZATION_TYPE_MISMATCH)
"io/scsi/targets/st.c", line 565: non-constant initializer: op "U&"
"io/scsi/targets/st.c", line 667: undefined symbol: DDI_PROBE_DONTCARE
"io/scsi/targets/st.c", line 678: function designator is not of function type
"io/scsi/targets/st.c", line 679: undefined symbol: DDI_PROBE_FAILURE
"io/scsi/targets/st.c", line 683: undefined symbol: DDI_PROBE_FAILURE
"io/scsi/targets/st.c", line 688: warning: improper pointer/integer 
combination: op "=" (E_BAD_PTR_INT_COMBINATION)
"io/scsi/targets/st.c", line 692: undefined symbol: DDI_PROBE_PARTIAL
"io/scsi/targets/st.c", line 700: undefined symbol: SCSIPROBE_EXISTS
"io/scsi/targets/st.c", line 709: undefined struct/union member: sd_inq
"io/scsi/targets/st.c", line 709: left operand of "->" must be pointer to 
struct/union
"io/scsi/targets/st.c", line 711: undefined symbol: SCSI_DEBUG
"io/scsi/targets/st.c", line 713: undefined symbol: DDI_PROBE_SUCCESS
"io/scsi/targets/st.c", line 715: undefined symbol: DDI_PROBE_FAILURE
"io/scsi/targets/st.c", line 718: undefined symbol: SCSI_DEBUG
"io/scsi/targets/st.c", line 720: undefined symbol: DDI_PROBE_FAILURE
"io/scsi/targets/st.c", line 724: cannot recover from previous errors
cc: acomp failed for io/scsi/targets/st.c
*** Error code 2
dmake: Fatal error: Command failed for target `io/scsi/targets/st.o'
Current working directory /export/home/testws2/usr/src/uts/common


Tanks !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/opensolaris-help/attachments/20060524/49481f0e/attachment.html>

Reply via email to