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

Restrict export of libjpeg symbols from libjavafx_iio.so

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: openjfx11, openjfx12
    • Fix Version/s: openjfx17
    • Component/s: javafx
    • Labels:
      None

      Backports

        Description

        libjavafx_iio.so contains a copy of libjpeg7 (soon to be libjpeg9)
        and since we are exporting all the libjpeg symbols these may
        clash with some other libjpeg on a system.
        We should restrict the export to just the JNI interfaces as the
        JDK does in similar situations.
         
        See https://bugs.openjdk.java.net/browse/JDK-8200178 and
        http://mail.openjdk.java.net/pipermail/build-dev/2018-March/021306.html

        The gist of the fix there is to add a JNIEXPORT directive to the declarations of the JNI functions in the JDK's own source files
        which are compiled into the library and to update the makefile
        so that all symbols not explicitly exported are internal.


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jvos Johan Vos
                Reporter:
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: