srb.h build errors under Windows 2000

When building a scsiport driver under the Windows 2000 DDK, I get the
following compile warnings (which translate to errors in the free
build):

2>warnings in directory c:\projects\win-pvdrivers.hg\xenvbd
2>c:\winddk\6001.18002\inc\ddk\srb.h(483) : warning C4201: nonstandard
extension used : nameless struct/union
2>c:\winddk\6001.18002\inc\ddk\srb.h(605) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(606) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(607) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(608) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(609) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(610) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(611) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(612) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(613) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(614) : warning C4214: nonstandard
extension used : bit field types other than int
2>c:\winddk\6001.18002\inc\ddk\srb.h(1034) : warning C4201: nonstandard
extension used : nameless struct/union

I’m sure I’m doing something wrong but can’t see what. Any suggestions?

Thanks

James

Why are you using the windows 2000 DDK? That was an exceptionally
horrid release.
Use a later DDK that supports w2k builds and target w2k.

Mark Roddy

On Thu, Oct 7, 2010 at 6:15 AM, James Harper
wrote:
> When building a scsiport driver under the Windows 2000 DDK, I get the
> following compile warnings (which translate to errors in the free
> build):
>
> 2>warnings in directory c:\projects\win-pvdrivers.hg\xenvbd
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(483) : warning C4201: nonstandard
> extension used : nameless struct/union
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(605) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(606) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(607) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(608) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(609) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(610) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(611) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(612) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(613) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(614) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(1034) : warning C4201: nonstandard
> extension used : nameless struct/union
>
> I’m sure I’m doing something wrong but can’t see what. Any suggestions?
>
> Thanks
>
> James
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

>

Why are you using the windows 2000 DDK? That was an exceptionally
horrid release.
Use a later DDK that supports w2k builds and target w2k.

Oops that was incorrect. I meant to say Windows 2000 build
environment
. The DDK is 6001.18002 (see output below), which I believe
is the last DDK to support 2000.

James

On Thu, Oct 7, 2010 at 6:15 AM, James Harper
wrote:
> > When building a scsiport driver under the Windows 2000 DDK, I get
the
> > following compile warnings (which translate to errors in the free
> > build):
> >
> > 2>warnings in directory c:\projects\win-pvdrivers.hg\xenvbd
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(483) : warning C4201:
nonstandard
> > extension used : nameless struct/union
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(605) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(606) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(607) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(608) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(609) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(610) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(611) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(612) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(613) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(614) : warning C4214:
nonstandard
> > extension used : bit field types other than int
> > 2>c:\winddk\6001.18002\inc\ddk\srb.h(1034) : warning C4201:
nonstandard
> > extension used : nameless struct/union
> >
> > I’m sure I’m doing something wrong but can’t see what. Any
suggestions?
> >
> > Thanks
> >
> > James
> >
> > —
> > NTDEV is sponsored by OSR
> >
> > For our schedule of WDF, WDM, debugging and other seminars visit:
> > http://www.osr.com/seminars
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
> >
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

> >

> Why are you using the windows 2000 DDK? That was an exceptionally
> horrid release.
> Use a later DDK that supports w2k builds and target w2k.

Oops that was incorrect. I meant to say Windows 2000 build
environment
. The DDK is 6001.18002 (see output below), which I
believe
is the last DDK to support 2000.

For now I’ve just #pragma’d the warnings out. That gets the free build
working.

James

IIRC then scsi.h pragma’s the warnings out for you. It may just be an
inclusion order thing.

Paul

On 7 October 2010 11:15, James Harper wrote:
> When building a scsiport driver under the Windows 2000 DDK, I get the
> following compile warnings (which translate to errors in the free
> build):
>
> 2>warnings in directory c:\projects\win-pvdrivers.hg\xenvbd
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(483) : warning C4201: nonstandard
> extension used : nameless struct/union
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(605) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(606) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(607) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(608) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(609) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(610) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(611) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(612) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(613) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(614) : warning C4214: nonstandard
> extension used : bit field types other than int
> 2>c:\winddk\6001.18002\inc\ddk\srb.h(1034) : warning C4201: nonstandard
> extension used : nameless struct/union
>
> I’m sure I’m doing something wrong but can’t see what. Any suggestions?
>
> Thanks
>
> James
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>


Paul Durrant
http://www.linkedin.com/in/pdurrant