Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6739401

VS2008 errors compiling deploy/src/common/windows/native/auth.cpp

    XMLWordPrintable

Details

    Description

      The Visual Studio 2008 compiler has strict type checking, and the build is failing in deploy with errors like this:

      (cd ./deploy/make && \
        make sanity javaws-all plugin-all images JDK_TOPDIR=g:/tbell/6523947/jdk JDK_MAKE_SHARED_DIR=g:/tbell/6523947/jdk/make/common/shared EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5 MILESTONE=internal BUILD_NUMBER=b232 JDK_BUILD_NUMBER=b232 FULL_VERSION=1.7.0-internal-b232 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=232 ANT_HOME="/cygdrive/c/devtools/share/ant/1.7.0" FINDBUGS_HOME="/cygdrive/c/devtools/share/findbugs/findbugs-1.3.1" ALT_OUTPUTDIR=g:/tbell/6523947/build/windows-i586 ALT_LANGTOOLS_DIST=g:/tbell/6523947/build/windows-i586/langtools/dist)
      make[2]: Entering directory `/cygdrive/g/tbell/6523947/deploy/make'
      cd ../make/javaws ; make installer-int sample apidoc
      make[3]: Entering directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      make -f Makefile.deploy.jar installer-int
      make[4]: Entering directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      make RELEASE_BUILD=1 I18N=1 all
      make[5]: Entering directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      make -f Makefile.deploy.jar all
      make[6]: Entering directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      /usr/bin/mkdir -p g:/tbell/6523947/build/windows-i586

       [snip ... to see the full build log, look in attached file product_build.log]

      C:/PROGRA~1/MICROS~1.0/VC/bin/cl -Ig:/tbell/6523947/build/windows-i586/tmp/deploy/deployObj \
            -I../../src/common/share/native \
            -I../../src/common/windows/native \
            -Ig:/tbell/6523947/build/windows-i586/tmp/deploy/deployClassHeaders \
            -IC:/jdk1.6.0_03/include \
            -IC:/jdk1.6.0_03/include/win32 \
            -DWIN32 \
            -DPERFLIB_EXPORTS \
            -c -MD /D _STATIC_CPPLIB -O2 -Fog:/tbell/6523947/build/windows-i586/tmp/deploy/deployObj/auth.o ../../src/common/windows/native/auth.cpp
      Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
      Copyright (C) Microsoft Corporation. All rights reserved.

      auth.cpp
      ../../src/common/windows/native/auth.cpp(31) : error C2061: syntax error : identifier 'PSECURITY_LOGON_SESSION_DATA'
      ../../src/common/windows/native/auth.cpp(132) : error C2664: 'JNIEnv_::SetCharArrayRegion' : cannot convert parameter 4 from 'const wchar_t [2]' to 'const jchar *'
              Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
      ../../src/common/windows/native/auth.cpp(146) : error C2664: 'JNIEnv_::SetCharArrayRegion' : cannot convert parameter 4 from 'const wchar_t [2]' to 'const jchar *'
              Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
      ../../src/common/windows/native/auth.cpp(409) : error C2065: 'PSECURITY_LOGON_SESSION_DATA' : undeclared identifier
      ../../src/common/windows/native/auth.cpp(409) : error C2146: syntax error : missing ';' before identifier 'sessionData'
      ../../src/common/windows/native/auth.cpp(409) : error C2065: 'sessionData' : undeclared identifier
      ../../src/common/windows/native/auth.cpp(414) : error C2065: 'sessionData' : undeclared identifier
      ../../src/common/windows/native/auth.cpp(427) : error C2065: 'sessionData' : undeclared identifier
      ../../src/common/windows/native/auth.cpp(427) : error C2227: left of '->AuthenticationPackage' must point to class/struct/union/generic type
              type is ''unknown-type''
      ../../src/common/windows/native/auth.cpp(427) : error C2228: left of '.Buffer' must have class/struct/union
      ../../src/common/windows/native/auth.cpp(433) : error C2065: 'sessionData' : undeclared identifier
      ../../src/common/windows/native/auth.cpp(433) : error C2227: left of '->UserName' must point to class/struct/union/generic type
              type is ''unknown-type''
      ../../src/common/windows/native/auth.cpp(433) : error C2228: left of '.Buffer' must have class/struct/union
      ../../src/common/windows/native/auth.cpp(435) : error C2065: 'sessionData' : undeclared identifier
      ../../src/common/windows/native/auth.cpp(435) : error C2227: left of '->LogonId' must point to class/struct/union/generic type
              type is ''unknown-type''
      ../../src/common/windows/native/auth.cpp(441) : error C2065: 'sessionData' : undeclared identifier
      ../../src/common/windows/native/auth.cpp(444) : error C2065: 'sessionData' : undeclared identifier
      make[6]: *** [g:/tbell/6523947/build/windows-i586/tmp/deploy/deployObj/auth.o] Error 2
      rm g:/tbell/6523947/build/windows-i586/tmp/deploy/l10n/com/sun/deploy/resources/Deployment_zh_HK.java
      make[6]: Leaving directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      make[5]: *** [all] Error 2
      make[5]: Leaving directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      make[4]: *** [installer-int] Error 2
      make[4]: Leaving directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      make[3]: *** [installer-int] Error 2
      make[3]: Leaving directory `/cygdrive/g/tbell/6523947/deploy/make/javaws'
      make[2]: *** [javaws-all] Error 2
      make[2]: Leaving directory `/cygdrive/g/tbell/6523947/deploy/make'
      make[1]: *** [deploy-build] Error 2
      make[1]: Leaving directory `/cygdrive/g/tbell/6523947'
      make: *** [build_product_image] Error 2

      Attachments

        Activity

          People

            Unassigned Unassigned
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: