<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm guessing that its failing on more then just Mac OS. I found a patch at&nbsp;<a href="http://old.nabble.com/build-problems-with-libpng-1.5.1beta01-td30662957.html">http://old.nabble.com/build-problems-with-libpng-1.5.1beta01-td30662957.html</a> that seams to work.<div><br></div><div>I'm not sure how to include it in our build system so I'm attaching including it here. It doesn't apply cleanly so I had to do the "@@ -459,7 +463,7 @@ gdk_pixbuf__png_image_begin_load (GdkPix" section manually. Also, it looks like we're using 2.23.0 while the latest stable is 2.22.1; so I'm guessing we may find other issues. Also, the most resent unstable is 2.23.3 ( I couldn't find the download site just the manual).</div><div><br></div><div>Can someone please verify &amp; integrate this somehow... also, because of the patch isn't mine I'm not sure how licensing will work (the closest I noticed to a licenese was "<span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana, geneva, helvetica, arial, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">here's the patch I used in&nbsp;</span><span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana, geneva, helvetica, arial, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">case</b></span><span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana, geneva, helvetica, arial, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">&nbsp;someone else needs it"); the lease we should do is make sure the two of them get some credit.</span></div><div><br></div><div>This is working now; however, I'm getting a segfault in an unrelated section of code during "make check".</div><div><br></div><div><div><div>Exception Type: &nbsp;EXC_BAD_ACCESS (SIGSEGV)</div><div>Exception Codes: KERN_INVALID_ADDRESS at 0x0000000069727469</div><div>Crashed Thread: &nbsp;0 &nbsp;Dispatch queue: com.apple.main-thread</div><div><br></div><div>Thread 0 Crashed: &nbsp;Dispatch queue: com.apple.main-thread</div><div>0 &nbsp; libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002e8773 com::sun::star::uno::WeakReferenceHelper::get() const + 67</div><div>1 &nbsp; libdbamxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x5f97c65a dbaccess::ODatabaseModelImpl::dispose() + 42</div><div>2 &nbsp; libdbamxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x5f9019e5 dbaccess::ODatabaseContext::disposing() + 101</div><div>3 &nbsp; libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002d73be cppu::WeakComponentImplHelperBase::dispose() + 158</div><div>4 &nbsp; libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002fbc78 cppu::createOneInstanceRegistryFactory(com::sun::star::uno::Reference&lt;com::sun::star::lang::XMultiServiceFactory&gt; const&amp;, rtl::OUString const&amp;, com::sun::star::uno::Reference&lt;com::sun::star::registry::XRegistryKey&gt; const&amp;) + 6120</div><div>5 &nbsp; libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x0030aabc cppu::OComponentHelper::release() + 156</div><div>6 &nbsp; libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002fe32c cppu::createOneInstanceRegistryFactory(com::sun::star::uno::Reference&lt;com::sun::star::lang::XMultiServiceFactory&gt; const&amp;, rtl::OUString const&amp;, com::sun::star::uno::Reference&lt;com::sun::star::registry::XRegistryKey&gt; const&amp;) + 16028</div><div>7 &nbsp; libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002e8a38 cppu::OWeakAggObject::release() + 104</div><div>8 &nbsp; libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x0030aa8d cppu::OComponentHelper::release() + 109</div><div>9 &nbsp; bootstrap.uno.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x04317693 component_getFactory + 90403</div><div>10 &nbsp;libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002d73be cppu::WeakComponentImplHelperBase::dispose() + 158</div><div>11 &nbsp;bootstrap.uno.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x04312bd8 component_getFactory + 71272</div><div>12 &nbsp;libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x00302552 cppu::createComponentContext(cppu::ContextEntry_Init const*, long, com::sun::star::uno::Reference&lt;com::sun::star::uno::XComponentContext&gt; const&amp;) + 2466</div><div>13 &nbsp;libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002d73be cppu::WeakComponentImplHelperBase::dispose() + 158</div><div>14 &nbsp;libsofficeapp.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x000776d1 0x5a000 + 120529</div><div>15 &nbsp;libsofficeapp.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x00064059 0x5a000 + 41049</div><div>16 &nbsp;libvclmxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x017c9c4b DeInitVCL() + 1451</div><div>17 &nbsp;libvclmxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x017ca445 ImplSVMain() + 245</div><div>18 &nbsp;libvclmxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x0177d61b AquaSalInstance::handleAppDefinedEvent(NSEvent*) + 75</div><div>19 &nbsp;libvclmxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x01ab511b -[VCL_NSApplication sendEvent:] + 315</div><div>20 &nbsp;com.apple.AppKit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x989ee2a7 -[NSApplication run] + 917</div><div>21 &nbsp;com.apple.AppKit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x989e62d9 NSApplicationMain + 574</div><div>22 &nbsp;libvclmxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x0177f0a7 ImplSVMainHook(int*) + 343</div><div>23 &nbsp;libvclmxi.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x017ca571 SVMain() + 17</div><div>24 &nbsp;libsofficeapp.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>0x00098d85 soffice_main + 245</div><div>25 &nbsp;org.libreoffice.script &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x00001ebe main + 30</div><div>26 &nbsp;org.libreoffice.script &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x00001822 start + 258</div><div>27 &nbsp;org.libreoffice.script &nbsp; &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>0x00001749 start + 41</div></div></div><div><br></div><div>So it looks like I know what I'm working on tomorrow...</div><div><br></div><div>Joe P.</div><div><br></div><div>------------------------------------------------------------</div><div><br></div><div><br></div><div><div>$NetBSD: patch-af,v 1.1 2011/01/13 17:14:43 wiz Exp $</div><div><br></div><div>Fix build with png-1.5.</div><div><br></div><div>--- gdk-pixbuf/io-png.c.orig<span class="Apple-tab-span" style="white-space:pre">        </span>2010-07-10 00:54:35.000000000 +0000</div><div>+++ gdk-pixbuf/io-png.c</div><div>@@ -183,7 +183,11 @@ png_simple_error_callback(png_structp pn</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error_msg);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>+#if (PNG_LIBPNG_VER &lt; 10500)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; longjmp (png_save_ptr-&gt;jmpbuf, 1);</div><div>+#else</div><div>+ &nbsp; &nbsp; &nbsp; &nbsp;png_longjmp (png_save_ptr, 1);</div><div>+#endif</div><div>&nbsp;}</div><div><br></div><div>&nbsp;static void</div><div>@@ -287,7 +291,7 @@ gdk_pixbuf__png_image_load (FILE *f, GEr</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> return NULL;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><br></div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (png_ptr-&gt;jmpbuf)) {</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (png_jmpbuf(png_ptr))) {</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>g_free (rows);</div><div><br></div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> if (pixbuf)</div><div>@@ -459,7 +463,7 @@ gdk_pixbuf__png_image_begin_load (GdkPix</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return NULL;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (lc-&gt;png_read_ptr-&gt;jmpbuf)) {</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (png_jmpbuf(lc-&gt;png_read_ptr))) {</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> if (lc-&gt;png_info_ptr)</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> png_destroy_read_struct(&amp;lc-&gt;png_read_ptr, NULL, NULL);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g_free(lc);</div><div>@@ -531,7 +535,7 @@ gdk_pixbuf__png_image_load_increment(gpo</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; lc-&gt;error = error;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /* Invokes our callbacks as needed */</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (lc-&gt;png_read_ptr-&gt;jmpbuf)) {</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (png_jmpbuf(lc-&gt;png_read_ptr))) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lc-&gt;error = NULL;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> return FALSE;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>} else {</div><div>@@ -654,7 +658,7 @@ png_info_callback &nbsp; (png_structp png_rea</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GDK_PIXBUF_ERROR,</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_("Insufficient memory to store a %ld by %ld image; try exiting some applications to reduce memory usage"),</div><div>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width, height);</div><div>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (long)width, (long)height);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>@@ -769,7 +773,11 @@ png_error_callback(png_structp png_read_</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error_msg);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>+#if (PNG_LIBPNG_VER &lt; 10500)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; longjmp (png_read_ptr-&gt;jmpbuf, 1);</div><div>+#else</div><div>+ &nbsp; &nbsp; &nbsp; &nbsp;png_longjmp (png_read_ptr, 1);</div><div>+#endif</div><div>&nbsp;}</div><div><br></div><div>&nbsp;static void</div><div>@@ -978,7 +986,7 @@ static gboolean real_save_png (GdkPixbuf</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; success = FALSE;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; goto cleanup;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>- &nbsp; &nbsp; &nbsp; if (setjmp (png_ptr-&gt;jmpbuf)) {</div><div>+ &nbsp; &nbsp; &nbsp; if (setjmp (png_jmpbuf(png_ptr))) {</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; success = FALSE;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp; &nbsp; &nbsp; goto cleanup;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div></div><div><br></div></body></html>