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
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
- relates to
-
JDK-8000332 SA SA ClassDump throws exception after permgen removal
-
- Resolved
-