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

hprof agent: Build failed with VS2013 Update 4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-svc
    • Labels:
      None
    • Environment:

      Visual Studio 2013
      Version 12.0.31101.00 Update 4

    • Subcomponent:
    • Resolved In Build:
      b64
    • OS:
      windows_7

      Backports

        Description

        Building JDK 9 with VS2013 Update 4 fails here:

        c:/Vadim/jdk9/jdk/src/jdk.hprof.agent/windows/native/libhprof/hprof_md.c(86) : error C2220: warning treated as error - no 'object' file generated
        c:/Vadim/jdk9/jdk/src/jdk.hprof.agent/windows/native/libhprof/hprof_md.c(86) : warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
                c:\progra~2\wi3cf2~1\8.1\include\um\winsock2.h(2238) : see declaration of 'gethostbyname'

        I verified that the first version of Windows Kit 8.1 doesn't mark this function as deprecated, while in Update 4 they are marked as deprecated.

        The command line for this files contains /W3 /WX so this results in error.
        It seems that there was some fix which enabled 2013 build by default.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  erikj Erik Joelsson
                  Reporter:
                  vadim Vadim Pakhnushev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: