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

JDK build fails in make/java/jli because of _vsnprintf macro redefinition

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • infrastructure
    • b80
    • generic
    • windows

      When building JDK7 with Visual Studio 2008 and Platform SDK 6.1/7.0, the build fails in make/java/jli with the following error:

      C:\PROGRA~2\MICROS~1.0\VC\INCLUDE\stdio.h(358) : error C3163: '_vsnprintf': attributes inconsistent with previous declaration
              C:\PROGRA~2\MICROS~1.0\VC\INCLUDE\stdio.h(350) : see declaration of '_vsnprintf'
      make: *** [c:/work/ie-build/tmp/java/jli/obj_g/inflate.obj] Error 2

      cl version is:
      Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86

      nmake version is:
      Microsoft (R) Program Maintenance Utility Version 9.00.30729.01

            tbell Tim Bell
            art Artem Ananiev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: