JDK-8207770 : Build failure after "8202794: Native Unix code should use readdir rather than readdir_r"
  • Type: Bug
  • Component: core-libs
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-07-18
  • Updated: 2018-07-18
  • Resolved: 2018-07-18
Related Reports
Duplicate :  
Relates :  
Description
* For target support_native_jdk.management_libmanagement_ext_OperatingSystemImpl.o:
/pool/buildbot/slaves/sobornost/jdkX/build/src/jdk.management/unix/native/libmanagement_ext/OperatingSystemImpl.c: In function 'Java_com_sun_management_internal_OperatingSystemImpl_getOpenFileDescriptorCount0':
/pool/buildbot/slaves/sobornost/jdkX/build/src/jdk.management/unix/native/libmanagement_ext/OperatingSystemImpl.c:445:19: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
     while ((dentp = readdir64(dirp)) != NULL) {
                   ^
cc1: all warnings being treated as errors