[Bug 1393] New: JPEG support in build is broken on non-system-libjpeg builds

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Thu Apr 11 18:24:41 PDT 2013


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1393

            Bug ID: 1393
           Summary: JPEG support in build is broken on non-system-libjpeg
                    builds
    Classification: Unclassified
           Product: IcedTea
           Version: 2.3.8
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: omajid at redhat.com
                CC: unassigned at icedtea.classpath.org

Created attachment 853
  --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=853&action=edit
A testcase that tries to write jpeg and png files

A build from icedtea7-forest has broken support for reading/writing JPEG files
if it was not built with system libjpeg.

I built a jdk using the follows:

make \
  ALLOW_DOWNLOADS="true" \
  ALT_BOOTDIR="$JDK_TO_BUILD_WITH" \
  ANT="/usr/bin/ant" \
  STATIC_CXX="false" \
  FT2_CFLAGS="$(pkg-config --cflags freetype2)" \
  FT2_LIBS="$(pkg-config --libs freetype2)" \
  NO_DOCS="true" \
  DEBUG_CLASSFILES="true" \
  DEBUG_BINARIES="true"

And it could not read/write JPEG files. With the attached test case, I got an
exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.sun.imageio.plugins.jpeg.JPEGImageWriter.initWriterIDs(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)V
    at com.sun.imageio.plugins.jpeg.JPEGImageWriter.initWriterIDs(Native
Method)
    at
com.sun.imageio.plugins.jpeg.JPEGImageWriter.<clinit>(JPEGImageWriter.java:181)
    at
com.sun.imageio.plugins.jpeg.JPEGImageWriterSpi.createWriterInstance(JPEGImageWriterSpi.java:96)
    at
javax.imageio.spi.ImageWriterSpi.createWriterInstance(ImageWriterSpi.java:351)
    at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:843)
    at javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:827)
    at javax.imageio.ImageIO.getWriter(ImageIO.java:1596)
    at javax.imageio.ImageIO.write(ImageIO.java:1520)
    at ImageWritingTest.main(ImageWritingTest.java:30)

I then tried an icedtea7-forest build with:

make \
  ALLOW_DOWNLOADS="true" \
  ALT_BOOTDIR="$JDK_TO_BUILD_WITH" \
  ANT="/usr/bin/ant" \
  STATIC_CXX="false" \
  USE_SYSTEM_JPEG=true \
  JPEG_LIBS="-ljpeg" \
  FT2_CFLAGS="$(pkg-config --cflags freetype2)" \
  FT2_LIBS="$(pkg-config --libs freetype2)" \
  NO_DOCS="true" \
  DEBUG_CLASSFILES="true" \
  DEBUG_BINARIES="true"

And it works fine with reading/writing JPEGs.

objdump -t libjavajpeg.so shows interesting differences between the two builds.
Symbols like Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_initWriterIDs
are missing from the first build but present in the second.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130412/4b87364c/attachment.html 


More information about the distro-pkg-dev mailing list