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

hprof agent: Build failed with VS2013 Update 4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • core-svc
    • None
    • Visual Studio 2013
      Version 12.0.31101.00 Update 4

    • b64
    • windows_7

        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.

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

                Created:
                Updated:
                Resolved: