Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8057934

Upgrade to LittleCMS 2.6 breaks AIX build

XMLWordPrintable

    • 2d
    • b33
    • aix

        The upgrade to LittleCMS 2.6 ("8056122: Upgrade JDK to LittleCMS 2.6") breaks the AIX build.

        The problem is that the new LittleCMS now includes "pthread.h" in "lcms2_internal.h". Unfortunalty on AIX, "pthread.h" in turn includes "sys/proc.h" which uncoditionally defines a preprocessor constant "SNONE".

        In "cmscgats.c" this preprocessor constant "SNONE" collides with the enum value "SONAME" from the SYMBOL enumaration.

        THe only solution I see is to rename "SNONE" in "cmscgats.c" (i.e. to "SVOID"). Fortunately "SNONE" is only used locally in the file "cmscgats.c", so renaming it won't have any impact on other files.

        Once this bug is fixed I'll report the problem upstream to LittleCMS and try to get the fix in there.

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: