<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 <sbergman@redhat.com><br>A: libreoffice@lists.freedesktop.org <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>LibreOffice@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/libreoffice<br><br><br></tt></blockquote></div>