solaris build failure
Brought to you by:
elgreen,
robertnelson
revision 200 fails to build on solaris:
$ gmake g++ -DVERSION="\"2.0.0\"" -c -o mtxl.o mtxl.cpp In file included from mtxl.cpp:66: scsi_sun.cpp: In function `int SCSI_ExecuteCommand(DEVICE_TYPE, Direction_T, unsigned char (*)[12], int, void*, int, RequestSense_T*)': scsi_sun.cpp:126: error: invalid conversion from `void*' to `char*' gmake: *** [mtxl.o] Error 1 $
fix:
Index: scsi_sun.cpp =================================================================== --- scsi_sun.cpp (revision 200) +++ scsi_sun.cpp (working copy) @@ -123,7 +123,7 @@ Command.uscsi_cdb = (caddr_t) CDB; Command.uscsi_cdblen = CDB_Length; - Command.uscsi_bufaddr = DataBuffer; + Command.uscsi_bufaddr = (caddr_t) DataBuffer; Command.uscsi_buflen = DataBufferLength; Command.uscsi_rqbuf = (caddr_t) RequestSense; Command.uscsi_rqlen = sizeof(RequestSense_T);