<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">I almost have it done.</div><div><font face="Verdana"><span style="font-size: 12px;">All libs compile, binaries too, but I get this:</span></font><br><br><div><font face="Verdana"><span style="font-size: 12px;">terminate called after throwing an instance of 'CppUnit::DynamicLibraryManagerException'</span></font></div><div><font face="Verdana"><span style="font-size: 12px;">  what():  Failed to load dynamic library: /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/LinkTarget/CppunitTest/libtest_vcl_app_test.so</span></font></div><div><font face="Verdana"><span style="font-size: 12px;"><br></span></font></div><div><font face="Verdana"><span style="font-size: 12px;"><br></span></font></div><div><font face="Verdana"><span style="font-size: 12px;">It looks like /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/LinkTarget/Executable/cppunittester generated a core file at /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/CppunitTest/vcl_app_test.test.core/core</span></font></div><div><font face="Verdana"><span style="font-size: 12px;">Backtraces:</span></font></div><div><font face="Verdana"><span style="font-size: 12px;">[New LWP 1]</span></font></div><div><font face="Verdana"><span style="font-size: 12px;">[New LWP 1]</span></font></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">...</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">...</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">What I noticed is that many of the libs, built before vcl lib, shows a correct linking with ldd.</div><div><font face="Verdana"><span style="font-size: 12px;">Some others, just after vcl lib and vcl lib itself, shows the strange gcc link problem:</span></font><br><br><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">        libstdc++.so.6 =>        /usr/sfw/lib/libstdc++.so.6</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">        libstdc++.so.6 (GLIBCXX_3.4.15) =>       (version not found)</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">        libstdc++.so.6 (CXXABI_1.3) =>   (version not found)</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">and elfdump shows why:</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div><div><div><font face="Verdana"><span style="font-size: 12px;">      [67]  RUNPATH           0x428ac4            /usr/sfw/lib:/usr/gcc/4.7/lib:$ORIGIN:$ORIGIN/../ure-link/lib:/usr/lib/mps</span></font></div><div><font face="Verdana"><span style="font-size: 12px;">      [68]  RPATH             0x428ac4            /usr/sfw/lib:/usr/gcc/4.7/lib:$ORIGIN:$ORIGIN/../ure-link/lib:/usr/lib/mps</span></font></div></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">why /usr/sfw/lib is placed before /usr/gcc/4.7/lib?? who is doing this??</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">I have forced "-Wl,-rpath,/usr/gcc/4.7/lib -L/usr/gcc/4.7/lib" in LDFLAGS during configure and make.</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">I believe /usr/sfw/lib is taken automagically by the build system because there's a libstdc++.so.6 (an old 3.4 for compatibiliy).</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;">Maybe this is causing the cppunit failure?</div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br></div><tt style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px;"><br>----------------------------------------------------------------------------------<br><br>Da: Richard PALO <richard@netbsd.org><br>A: libreoffice <libreoffice@lists.freedesktop.org> <br>Data: 22 febbraio 2015 9.13.14 CET<br>Oggetto: Re: error during build of mork_helper, on illumos/xstreamos<br><br></tt><blockquote style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; border-left-color: rgb(0, 0, 128); border-left-width: 2px; border-left-style: solid; margin-left: 5px; padding-left: 5px;"><tt>-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Le 21/02/15 08:29, Richard PALO a écrit :<br>> In pkgsrc this is patched as follows:<br>> <br>>> $NetBSD: patch-vcl_Library__vcl.mk,v 1.1 2015/02/04 18:19:34 ryoon Exp $<br>> <br>>> --- vcl/Library_vcl.mk.orig    2015-01-22 20:05:28.000000000 +0000<br>>> +++ vcl/Library_vcl.mk<br>>> @@ -703,7 +703,7 @@ endif<br>>>  endif<br>>>  endif<br>> <br>>> -ifeq ($(OS),LINUX)<br>>> +ifeq ($(GUIBASE),unx)<br>>>  $(eval $(call gb_Library_add_libs,vcl,\<br>>>   -lm \<br>>>         -ldl \<br>> <br>> If this works for you, I'll prepare to upstream this patch.<br>> <br>The author of this patch responded to me that he'll upstream this himself as well as<br>a few others of the same sort (in pkgsrc) soon.<br><br>> As to the '-Wl,-Bdirect' and '-Wl,-zdefs' in solaris.mk I'm testing if this passes, if so<br>> I'll upstream that as well.. (builds/runs here without it, at least on gcc49)<br>> <br>As hoped, I had no fallout from this so will submit the reintegration of this bit to gerritt today.<br><br>- -- <br>Richard PALO<br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1<br>Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/<br><br>iQEcBAEBAgAGBQJU6Y+aAAoJECAB22fHtp27oOYIAIBtDwPr7U2HfCrbFNNSOsbU<br>zZZj+qfLv4DbLUm3ZdCS5zwYUwl/agEkltsO+tolzhTT6YFIMXqxNffMbFrITh9z<br>TmMu6PgR8JtXhnfzyWhT9gxNucNphKiwc2wwvWNDyxe5bOPYWIZTDtkGKWNbPjuE<br>+sLGGIZ7YBaiFazRww/3cFKy+YwmOyXBFCsS3LhHEw8bgn/UnwdA0kmgBsSkYmKw<br>YTwPd4iqm0kKis54jnr8CElzUb/Unzv6Sjz6JmNdbZc+OpSsQhFrela7IZJWSs7N<br>oNe2TmDZrNv8XGLTlsvipA4lZNCSWJ5fiPOp19NkX0YezrEFTFmP8uL3uL2w3hA=<br>=SRUy<br>-----END PGP SIGNATURE-----<br>_______________________________________________<br>LibreOffice mailing list<br>LibreOffice@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/libreoffice<br><br><br></tt></blockquote></div>