<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Libcups is broken, has a stupid bug when built under Solaris : the so file comes up referencing a main... Looks like this doesn't happen on Linux because of differences between linkers.</div><div>So when you link against libcups, and it's not a program but a shared library, ....</div><div><br></div><div>I faked a main in an object file, and it went on for that library.</div><div>...pity there are many in LO linking libcups....</div><div><br></div><div>I'm checking with illumos guys for any existent patch for libcups.</div><div><br></div><div>Thanks :)</div><div><br></div><div>Gabriele<br><br>Inviato da iPad</div><div><br>Il giorno 20/feb/2015, alle ore 16:23, Gabriele Bulfon <<a href="mailto:gabriele.bulfon@sonicle.com">gabriele.bulfon@sonicle.com</a>> ha scritto:<br><br></div><blockquote type="cite"><div><div style="font-family: Verdana; font-size: 12;"><div id="wt-mailcard">I believe here g++ is commanding the ld linker, so "-shared" is interpreted by g++ and translated into solaris linking.</div><div id="wt-mailcard">All the previous ".so" files are linked the same way with no issue.</div><div id="wt-mailcard"><br></div><div id="wt-mailcard">What is strange here, is that libcups.so is referencing a main!</div><div id="wt-mailcard">I will check for other components linking cups if they use specific flags. </div><tt><br><br><br>----------------------------------------------------------------------------------<br><br>Da: Stephan Bergmann <<a href="mailto:sbergman@redhat.com">sbergman@redhat.com</a>><br>A: <a href="mailto:libreoffice@lists.freedesktop.org">libreoffice@lists.freedesktop.org</a> <br>Data: 20 febbraio 2015 15.50.12 CET<br>Oggetto: Re: error during build of mork_helper, on illumos/xstreamos<br><br></tt><blockquote style="BORDER-LEFT: #000080 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px"><tt>On 02/20/2015 09:52 AM, Gabriele Bulfon wrote:<br>> Undefined first referenced<br>> symbol in file<br>> main /usr/lib/libcups.so<br>><br>> ??? looking for a main in libcups.so???<br>><br>><br>> here is what it's trying to do:<br>><br>> [build LNK] Library/libvcllo.so<br>> S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3<br>> && I=$S/instdir && W=$S/workdir && mkdir -p $W/Dep/LinkTarget/Library/<br>> && RESPONSEFILE=/tmp/gbuild.OgyDJO &&<br>> LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/ure/lib:$I/program"<br>> $W/LinkTarget/Executable/concat-deps ${RESPONSEFILE} ><br>> $W/Dep/LinkTarget/Library/libvcllo.so.d.tmp && rm -f ${RESPONSEFILE}<br>> mv<br>> /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d.tmp<br>> /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d<br>> S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3<br>> && I=$S/instdir && W=$S/workdir && /usr/gcc/4.7/bin/g++ -shared<br><br>Didn't the Solaris linker use something like -G to tell it to build a <br>shared library? Maybe the GCC -shared doesn't properly translate to <br>something useful for the linker in your tool-chain.<br>_______________________________________________<br>LibreOffice mailing list<br><a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br><br><br></tt></blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>LibreOffice mailing list</span><br><span><a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a></span><br><span><a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a></span><br></div></blockquote></body></html>