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

8000332 has introduced compiler warnings in sadis.c on some compilers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: hs25
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      svc
    • Introduced In Build:
      b05
    • Introduced In Version:

      Description

      8000332 changed sadis.c to include the standard <string.h> header rather than BSD-style <strings.h>. However when building on linux with gcc4.6.3 this causes the following warnings:

      Making SA debugger back-end...
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c: In function âprintf_to_envâ:
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:205:17: warning: incompatible implicit decl
      aration of built-in function âstrlenâ [enabled by default]
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:210:7: warning: incompatible implicit decla
      ration of built-in function âstrchrâ [enabled by default]

      Also with gcc 4.3.3

      Making SA debugger back-end...
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c: In function 'printf_to_env':
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:205: warning: incompatible implicit declara
      tion of built-in function 'strlen'
      /java/embedded/users/dh198349/build-infra/hotspot/agent/src/share/native/sadis.c:210: warning: incompatible implicit declara
      tion of built-in function 'strchr'

      JPRT builds seem unaffected - I don't know what gcc version they are using

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                minqi Yumin Qi
                Reporter:
                dholmes David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: