JDK-8046269 : Build broken : THIS_FILE : undeclared identifier
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 7u80
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-06-06
  • Updated: 2014-12-23
  • Resolved: 2014-06-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u76Fixed
Related Reports
Relates :  
Description
Fix for JDK-8032901 seems to have broken the windows build for jdk7u.

c:/PROGRA~2/MICROS~2.0/VC/bin/amd64/cl  -O1   -Zi -nologo -MD /D _STATIC_CPPLIB /D _DISABLE_DEPRECATE_STATIC_CPPLIB -Zc:wchar_t- -FdC:/jprt/T/P1/213341~1.SCO/s/build/windows-amd64/tmp/jbug/dt_shmem/obj64/shmem_md.pdb -FmC:/jprt/T/P1/213341~1.SCO/s/build/windows-amd64/tmp/jbug/dt_shmem/obj64/shmem_md.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE   -DNDEBUG -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I. -IC:/jprt/T/P1/213341~1.SCO/s/build/windows-amd64/tmp/jbug/dt_shmem/CClassHeaders -I../../../../src/closed/share/javavm/export -I../../../../src/windows/javavm/export -I../../../../src/share/javavm/export -IC:/jprt/T/P1/213341~1.SCO/s/build/windows-amd64/include -IC:/jprt/T/P1/213341~1.SCO/s/build/windows-amd64/include/win32 -I../../../../src/share/transport/export -I../../../../src/share/transport/shmem -I../../../../src/share/back/export -I../../../../src/windows/transport/shmem    -c -FoC:/jprt/T/P1/213341~1.SCO/s/build/windows-amd64/tmp/jbug/dt_shmem/obj64/shmem_md.obj  ../../../../src/windows/transport/shmem/shmem_md.c
shmem_md.c
../../../../src/windows/transport/shmem/shmem_md.c(207) : error C2065: 'THIS_FILE' : undeclared identifier
../../../../src/windows/transport/shmem/shmem_md.c(207) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
../../../../src/windows/transport/shmem/shmem_md.c(207) : warning C4024: 'exitTransportWithError' : different types for formal and actual parameter 2
make[5]: *** [C:/jprt/T/P1/213341~1.SCO/s/build/windows-amd64/tmp/jbug/dt_shmem/obj64/shmem_md.obj] Error 2
make[5]: Leaving directory `C:/jprt/T/P1/213341.scoffey/s/jdk/make/jpda/transport/shmem'
make[4]: *** [all] Error 1
make[4]: Leaving directory `C:/jprt/T/P1/213341.scoffey/s/jdk/make/jpda/transport'
Comments
THIS_FILE is not defined for JDK 7u. Simple fix src/windows/transport/shmem/shmem_md.c b/src/windows/transport/shmem/shmem_md.c +/* Use THIS_FILE when it is available. */ +#ifndef THIS_FILE + #define THIS_FILE __FILE__ +#endif
07-06-2014