RFR: libdt_socket: Build failed with VS2013 SP4

Erik Joelsson erik.joelsson at oracle.com
Mon May 25 10:17:31 UTC 2015


In Visual Studio 2013 SP4, MS decided to deprecate gethostbyname in 
favor of getaddrinfo(). We now have two different libraries using this 
function. In JDK-8077422 I added a workaround for libhprof. Now we also 
have the problem in libdt_socket. This time I've opted to add the 
preprocessor macro to the general CFLAGS for all jdk libraries in 
configure. I will create a followup bug for fixing the usage of 
deprecated functions.

Bug: https://bugs.openjdk.java.net/browse/JDK-8080983

diff -r 9d388c0d9872 common/autoconf/flags.m4
--- a/common/autoconf/flags.m4
+++ b/common/autoconf/flags.m4
@@ -559,6 +559,7 @@
          -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
          -DWIN32_LEAN_AND_MEAN \
          -DWIN32 -DIAL"
      if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
diff -r 9d388c0d9872 common/autoconf/generated-configure.sh
--- a/common/autoconf/generated-configure.sh
+++ b/common/autoconf/generated-configure.sh
@@ -4366,7 +4366,7 @@

  # Do not change or remove the following line, it is needed for 
consistency checks:

Also removing the old fix from JDK-8077422 as it is no longer needed:
diff -r 8f8d35d97f82 make/lib/Lib-jdk.hprof.agent.gmk
--- a/make/lib/Lib-jdk.hprof.agent.gmk
+++ b/make/lib/Lib-jdk.hprof.agent.gmk
@@ -49,7 +49,6 @@
      CFLAGS_debug := -DHPROF_LOGGING, \
      MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libhprof/mapfile-vers, \
          $(call SET_SHARED_LIBRARY_ORIGIN), \


More information about the build-dev mailing list