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

Build failure after JDK-8184770 (JDWP support for IPv6)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 13
    • core-svc
    • None

    Description

      * For target support_native_jdk.jdwp.agent_libdt_socket_socketTransport.o:
      /home/shade/jdk-jdk/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c: In function 'parseAllowedMask':
      /home/shade/jdk-jdk/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c:422:5: error: 'for' loop initial declarations are only allowed in C99 mode
           for (int i = 0; prefixLen > 0; i++, prefixLen -= 8) {
           ^
      /home/shade/jdk-jdk/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c:422:5: note: use option -std=c99 or -std=gnu99 to compile your code
      /home/shade/jdk-jdk/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c: In function 'parseAllowedPeersInternal':
      /home/shade/jdk-jdk/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c:481:13: error: 'for' loop initial declarations are only allowed in C99 mode
                   for (size_t i = 0; i < sizeof(_peers[_peers_cnt].subnet); i++) {
                   ^
      /home/shade/jdk-jdk/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c: In function 'isAddressInSubnet':
      /home/shade/jdk-jdk/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c:524:5: error: 'for' loop initial declarations are only allowed in C99 mode
           for (size_t i = 0; i < sizeof(struct in6_addr); i++) {
         ... (rest of output omitted)

      * All command lines available in /home/shade/jdk-jdk/build/linux-x86_64-server-fastdebug/make-support/failure-logs.

      Must be related to building on older RHEL with GCC 4.8.5.

      Attachments

        Issue Links

          Activity

            People

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: