JDK-8305527 : HarfBuzz: Remove trailing comma from the enum in hb-paint.h
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2023-04-04
  • Updated: 2023-07-10
  • Resolved: 2023-05-12
Related Reports
Duplicate :  
Description
The following error takes place during JDK build with HarfBuzz version 7.0.1 on Solaris platform:

libharfbuzz/hb-paint.h, line 620: error: trailing "," prohibited in enum declaration (E_TRAILING_COMMA_IN_ENUM)
CC: Warning: Option -fsingle passed to ld, if ld is invoked, ignored otherwise
libharfbuzz/hb-paint.h, line 620: Error: Identifier expected instead of "}".
 1 Error(s) detected.

The root cause of the error is that hb-paint.h has the enum with trailing comma which was removed in upstream (HarfBuzz source repo):

https://github.com/harfbuzz/harfbuzz/discussions/4188
https://github.com/harfbuzz/harfbuzz/commit/04a47932a3844f7e73e3af8b05fb98c8b54fb779

Comments
Closing as dupe of JDK-8307301
12-05-2023

This one will be fixed under next HarfBuzz update which will take place shortly
09-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13328 Date: 2023-04-04 15:46:36 +0000
04-04-2023