I clean up my patch <a href="https://www.jfrog.org/svn-jfrog/openjdk/patch/SplashScreen_libpng12.patch">here</a>, and tested before/after on my <a href="http://www.jfrog.org/wiki/index.php/Fred:OpenJDK_Page">config</a> only.
<br>Sorry, I missed the part where you stated the name of the macro ;-) I used ALT_EXT_LIB_PNG.<br><br>By the way, I have a feeling that a movement to use more and more library from the host OS (especially on Linux) is going on. Am I wrong?
<br>Because, with this macro set the j2se image will not run on a system with no libpng12. That sounds a little strange to me.<br><br>Anyway, hope it helps.<br><br><div><span class="gmail_quote">On 10/12/07, <b class="gmail_sendername">
Anthony Petrov</b> <<a href="mailto:Anthony.Petrov@sun.com">Anthony.Petrov@sun.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is a known issue. Anyway, thanks for reporting it! Please refer to<br>the following bug to track the status of the problem:<br><br><a href="http://bugs.sun.com/view_bug.do?bug_id=6613927">http://bugs.sun.com/view_bug.do?bug_id=6613927
</a><br><br>Currently the bug is being fixed.<br><br>Concerning the possibility of using an external libpng library, we've<br>got the following bug report:<br><br><a href="http://bugs.sun.com/view_bug.do?bug_id=6565114">
http://bugs.sun.com/view_bug.do?bug_id=6565114</a><br><br>However, we're postponing the fix because the submitter of the patch<br>haven't prepared a clean patch yet. The main reason to use a slightly<br>more comprehensive patch is to be able to use both the internal version
<br>of the library and the external one (if the developer defines the<br>EXTERNAL_LIBPNG macro when building OpenJDK). It would be very helpful<br>if someone could provide a clean patch for the latter bug.<br><br>--<br>best regards,
<br>Anthony<br><br><br>On 10/12/2007 05:14 AM Frederic Simon wrote:<br>> I tried to build b21 on my Ubuntu 7.04 and got:<br>> /work/java.net/openjdk.trunk/control/build/linux-amd64/tmp/sun/sun.awt/splashscreen/obj64/png.o:
<br>> In function `png_init_mmx_flags':<br>> png.c:(.text+0xbc): undefined reference to `png_mmx_support'<br>> /work/java.net/openjdk.trunk/control/build/linux-amd64/tmp/sun/sun.awt/splashscreen/obj64/pngpread.o:
<br>> In function `png_push_process_row':<br>> pngpread.c:(.text+0x86e): undefined reference to `png_read_filter_row'<br>> pngpread.c:(.text+0x934): undefined reference to `png_do_read_interlace'<br>> /work/java.net/openjdk.trunk/control/build/linux-amd64/tmp/sun/sun.awt/splashscreen/obj64/pngpread.o:
<br>> In function `png_progressive_combine_row':<br>> pngpread.c:(.text+0x141): undefined reference to `png_combine_row'<br>> /work/java.net/openjdk.trunk/control/build/linux-amd64/tmp/sun/sun.awt/splashscreen/obj64/pngread.o:
<br>> In function `png_read_row':<br>> pngread.c: (.text+0xa7d): undefined reference to `png_combine_row'<br>> pngread.c:(.text+0xbd8): undefined reference to `png_combine_row'<br>> pngread.c:(.text+0xbfc): undefined reference to `png_combine_row'
<br>> pngread.c:(.text+0xc98): undefined reference to `png_combine_row'<br>> /work/java.net/openjdk.trunk/control/build/linux-amd64/tmp/sun/sun.awt/splashscreen/obj64/pngread.o:pngread.c:(.text+0xcb4):<br>> more undefined references to `png_combine_row' follow
<br>> /work/java.net/openjdk.trunk/control/build/linux-amd64/tmp/sun/sun.awt/splashscreen/obj64/pngread.o:<br>> In function `png_read_row':<br>> pngread.c:(.text+0xce5): undefined reference to `png_read_filter_row'
<br>> pngread.c:(.text+0xd0d): undefined reference to `png_do_read_interlace'<br>> collect2: ld returned 1 exit status<br>> make[3]: ***<br>> [/work/java.net/openjdk.trunk/control/build/linux-amd64/lib/amd64/libsplashscreen.so]
<br>> Error 1<br>> make[3]: Leaving directory<br>> `/work/java.net/openjdk.trunk/j2se/make/sun/splashscreen'<br>><br>> I found this thread talking about it:<br>> <a href="http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2007-August/000192.html">
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2007-August/000192.html</a><br>><br>> So, I tried to modified the makefile to use the system png. It's very<br>> roughly removing the integrated libpng and linking with png12.
<br>> Here is the patch:<br>> <a href="https://www.jfrog.org/svn-jfrog/openjdk/patch/SplashScreen_libpng12.patch">https://www.jfrog.org/svn-jfrog/openjdk/patch/SplashScreen_libpng12.patch</a><br>><br>> Hope it helps.
<br>><br>> --<br>> <a href="http://freddy33.bglogspot.com/">http://freddy33.bglogspot.com/</a><br>> <a href="http://www.jfrog.org/">http://www.jfrog.org/</a><br>><br></blockquote></div><br><br clear="all"><br>
-- <br><a href="http://freddy33.bglogspot.com/">http://freddy33.bglogspot.com/</a><br><a href="http://www.jfrog.org/">http://www.jfrog.org/</a>