Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-12599

Error(s) when trying to build with -D_WIN32_WINNT=0x501, instead of 0x502

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:

      Description

      Out of curiosity (from CORE-12588), I tried to build with -D_WIN32_WINNT=0x501.
      (I didn't expect to get a XP OS, just an "as_is/WS03--" build.)

      Result was (errors in Sdk)

      In file included from .../reactos/sdk/include/ndk/pstypes.h:743:0,
                       from .../reactos/sdk/include/ndk/ntndk.h:67,
                       from .../reactos/boot/environ/include/bl.h:23,
                       from .../reactos/boot/environ/app/bootmgr/bootmgr.h:27:
      .../reactos/sdk/include/ndk/peb_teb.h:233:5: error: unknown type name 'ACTIVATION_CONTEXT_STACK'
      .../reactos/sdk/include/ndk/peb_teb.h:382:1: error: size of array 'c_assert' is negative
      .../reactos/sdk/include/ndk/peb_teb.h:383:1: error: size of array 'c_assert' is negative
      .../reactos/sdk/include/ndk/peb_teb.h:384:1: error: size of array 'c_assert' is negative
      .../reactos/sdk/include/ndk/peb_teb.h:385:1: error: size of array 'c_assert' is negative
      .../reactos/sdk/include/ndk/peb_teb.h:386:1: error: size of array 'c_assert' is negative
      .../reactos/sdk/include/ndk/peb_teb.h:387:1: error: size of array 'c_assert' is negative

      See
      peb_teb.h

       225 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
       226     PTR(struct _ACTIVATION_CONTEXT_STACK*) ActivationContextStackPointer;
       227     UCHAR                  SpareBytes1[0x30 - 3 * sizeof(PTR(PVOID))];
       228     ULONG                  TxFsContext;
       229 #elif (NTDDI_VERSION >= NTDDI_WS03)
       230     PTR(struct _ACTIVATION_CONTEXT_STACK*) ActivationContextStackPointer;
       231     UCHAR                  SpareBytes1[0x34 - 3 * sizeof(PTR(PVOID))];
       232 #else
       233     ACTIVATION_CONTEXT_STACK ActivationContextStack;
       234     UCHAR                  SpareBytes1[24];
       235 #endif
       
       366 #if defined(_WIN64) && !defined(EXPLICIT_32BIT)
      ...
       379 #else
      ...
       382 C_ASSERT(FIELD_OFFSET(STRUCT(TEB), GdiTebBatch) == 0x1D4);
       383 C_ASSERT(FIELD_OFFSET(STRUCT(TEB), LastStatusValue) == 0xBF4);
       384 C_ASSERT(FIELD_OFFSET(STRUCT(TEB), Vdm) == 0xF18);
       385 C_ASSERT(FIELD_OFFSET(STRUCT(TEB), GdiBatchCount) == 0xF70);
       386 C_ASSERT(FIELD_OFFSET(STRUCT(TEB), TlsExpansionSlots) == 0xF94);
       387 C_ASSERT(FIELD_OFFSET(STRUCT(TEB), ActiveFrame) == 0xFB0);
       388 #endif

      Did I miss something?
      Is this not supported (anymore)?
      Is it worth trying to fix (now)?

        Attachments

          Activity

            People

            • Assignee:
              ThePhysicist Timo Kreuzer
              Reporter:
              Serge Gautherie Serge Gautherie
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: