<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 <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 & 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 </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; "> 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: EXC_BAD_ACCESS (SIGSEGV)</div><div>Exception Codes: KERN_INVALID_ADDRESS at 0x0000000069727469</div><div>Crashed Thread: 0 Dispatch queue: com.apple.main-thread</div><div><br></div><div>Thread 0 Crashed: Dispatch queue: com.apple.main-thread</div><div>0 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 libdbamxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x5f97c65a dbaccess::ODatabaseModelImpl::dispose() + 42</div><div>2 libdbamxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x5f9019e5 dbaccess::ODatabaseContext::disposing() + 101</div><div>3 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002d73be cppu::WeakComponentImplHelperBase::dispose() + 158</div><div>4 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002fbc78 cppu::createOneInstanceRegistryFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> const&) + 6120</div><div>5 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x0030aabc cppu::OComponentHelper::release() + 156</div><div>6 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002fe32c cppu::createOneInstanceRegistryFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::registry::XRegistryKey> const&) + 16028</div><div>7 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002e8a38 cppu::OWeakAggObject::release() + 104</div><div>8 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x0030aa8d cppu::OComponentHelper::release() + 109</div><div>9 bootstrap.uno.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x04317693 component_getFactory + 90403</div><div>10 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002d73be cppu::WeakComponentImplHelperBase::dispose() + 158</div><div>11 bootstrap.uno.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x04312bd8 component_getFactory + 71272</div><div>12 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<com::sun::star::uno::XComponentContext> const&) + 2466</div><div>13 libuno_cppuhelpergcc3.dylib.3 <span class="Apple-tab-span" style="white-space:pre">        </span>0x002d73be cppu::WeakComponentImplHelperBase::dispose() + 158</div><div>14 libsofficeapp.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x000776d1 0x5a000 + 120529</div><div>15 libsofficeapp.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x00064059 0x5a000 + 41049</div><div>16 libvclmxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x017c9c4b DeInitVCL() + 1451</div><div>17 libvclmxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x017ca445 ImplSVMain() + 245</div><div>18 libvclmxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x0177d61b AquaSalInstance::handleAppDefinedEvent(NSEvent*) + 75</div><div>19 libvclmxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x01ab511b -[VCL_NSApplication sendEvent:] + 315</div><div>20 com.apple.AppKit <span class="Apple-tab-span" style="white-space:pre">        </span>0x989ee2a7 -[NSApplication run] + 917</div><div>21 com.apple.AppKit <span class="Apple-tab-span" style="white-space:pre">        </span>0x989e62d9 NSApplicationMain + 574</div><div>22 libvclmxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x0177f0a7 ImplSVMainHook(int*) + 343</div><div>23 libvclmxi.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x017ca571 SVMain() + 17</div><div>24 libsofficeapp.dylib <span class="Apple-tab-span" style="white-space:pre">        </span>0x00098d85 soffice_main + 245</div><div>25 org.libreoffice.script <span class="Apple-tab-span" style="white-space:pre">        </span>0x00001ebe main + 30</div><div>26 org.libreoffice.script <span class="Apple-tab-span" style="white-space:pre">        </span>0x00001822 start + 258</div><div>27 org.libreoffice.script <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> error_msg);</div><div> }</div><div><br></div><div>+#if (PNG_LIBPNG_VER < 10500)</div><div> longjmp (png_save_ptr->jmpbuf, 1);</div><div>+#else</div><div>+ png_longjmp (png_save_ptr, 1);</div><div>+#endif</div><div> }</div><div><br></div><div> static void</div><div>@@ -287,7 +291,7 @@ gdk_pixbuf__png_image_load (FILE *f, GEr</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> return NULL;</div><div> <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->jmpbuf)) {</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (png_jmpbuf(png_ptr))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> <span class="Apple-tab-span" style="white-space:pre">        </span>g_free (rows);</div><div><br></div><div> <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> return NULL;</div><div> }</div><div><br></div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (lc->png_read_ptr->jmpbuf)) {</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (png_jmpbuf(lc->png_read_ptr))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> if (lc->png_info_ptr)</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> png_destroy_read_struct(&lc->png_read_ptr, NULL, NULL);</div><div> g_free(lc);</div><div>@@ -531,7 +535,7 @@ gdk_pixbuf__png_image_load_increment(gpo</div><div> lc->error = error;</div><div><br></div><div> /* Invokes our callbacks as needed */</div><div>-<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (lc->png_read_ptr->jmpbuf)) {</div><div>+<span class="Apple-tab-span" style="white-space:pre">        </span>if (setjmp (png_jmpbuf(lc->png_read_ptr))) {</div><div> lc->error = NULL;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> return FALSE;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>} else {</div><div>@@ -654,7 +658,7 @@ png_info_callback (png_structp png_rea</div><div> GDK_PIXBUF_ERROR,</div><div> GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,</div><div> _("Insufficient memory to store a %ld by %ld image; try exiting some applications to reduce memory usage"),</div><div>- width, height);</div><div>+ (long)width, (long)height);</div><div> }</div><div> return;</div><div> }</div><div>@@ -769,7 +773,11 @@ png_error_callback(png_structp png_read_</div><div> error_msg);</div><div> }</div><div><br></div><div>+#if (PNG_LIBPNG_VER < 10500)</div><div> longjmp (png_read_ptr->jmpbuf, 1);</div><div>+#else</div><div>+ png_longjmp (png_read_ptr, 1);</div><div>+#endif</div><div> }</div><div><br></div><div> static void</div><div>@@ -978,7 +986,7 @@ static gboolean real_save_png (GdkPixbuf</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> success = FALSE;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> goto cleanup;</div><div> }</div><div>- if (setjmp (png_ptr->jmpbuf)) {</div><div>+ if (setjmp (png_jmpbuf(png_ptr))) {</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> success = FALSE;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span> goto cleanup;</div><div> }</div></div><div><br></div></body></html>