Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084833 | emb-9 | Erik Joelsson | P2 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8084833 hprof agent: Build failed with VS2013 Update 4
-
- Resolved
-
- relates to
-
JDK-8080983 libdt_socket: Build failed with VS2013 SP4
-
- Resolved
-
-
JDK-8046661 JEP 240: Remove the JVM TI hprof Agent
-
- Closed
-