JDK-7082645 : Hotspot doesn't compile on old linuxes after 7060836
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs22
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2011-08-23
  • Updated: 2011-10-07
  • Resolved: 2011-09-30
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 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Related Reports
Relates :  
Description
Compilation failes because of lack of syscall ids definitions and also because of the conflict of definitions of timespec-related structures.

In file included from /usr/include/asm-x86_64/vsyscall.h:4,
                 from /usr/include/asm/vsyscall.h:4,
                 from /tmp/jprt/P1/010954.coleenp/source/src/os/linux/vm/os_linux.cpp:129:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/time.h:107: previous definition of `struct timespec'
/usr/include/linux/time.h:88: redefinition of `struct timeval'
/usr/include/bits/time.h:68: previous definition of `struct timeval'
/usr/include/linux/time.h:93: redefinition of `struct timezone'
/usr/include/sys/time.h:57: previous definition of `struct timezone'
/usr/include/linux/time.h:119: redefinition of `struct itimerspec'
/usr/include/time.h:143: previous definition of `struct itimerspec'
/usr/include/linux/time.h:124: redefinition of `struct itimerval'
/usr/include/sys/time.h:108: previous definition of `struct itimerval'
/tmp/jprt/P1/010954.coleenp/source/src/os/linux/vm/os_linux.cpp: In static 
   member function `static int os::Linux::sched_getcpu_syscall()':
/tmp/jprt/P1/010954.coleenp/source/src/os/linux/vm/os_linux.cpp:2594: `
   __NR_vgetcpu' undeclared (first use this function)
/tmp/jprt/P1/010954.coleenp/source/src/os/linux/vm/os_linux.cpp:2594: (Each 
   undeclared identifier is reported only once for each function it appears 
   in.)

Comments
EVALUATION See main CR
14-09-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/9447b2fb6fcf
30-08-2011