Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


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.
So when you link against libcups, and it's not a program but a shared library, ....

I faked a main in an object file, and it went on for that library.
...pity there are many in LO linking libcups....

I'm checking with illumos guys for any existent patch for libcups.

Thanks :)

Gabriele

Inviato da iPad

Il giorno 20/feb/2015, alle ore 16:23, Gabriele Bulfon <gabriele.bulfon@sonicle.com> ha scritto:

I believe here g++ is commanding the ld linker, so "-shared" is interpreted by g++ and translated 
into solaris linking.
All the previous ".so" files are linked the same way with no issue.

What is strange here, is that libcups.so is referencing a main!
I will check for other components linking cups if they use specific flags.



----------------------------------------------------------------------------------

Da: Stephan Bergmann <sbergman@redhat.com>
A: libreoffice@lists.freedesktop.org 
Data: 20 febbraio 2015 15.50.12 CET
Oggetto: Re: error during build of mork_helper, on illumos/xstreamos

On 02/20/2015 09:52 AM, Gabriele Bulfon wrote:
Undefined first referenced
symbol in file
main /usr/lib/libcups.so

??? looking for a main in libcups.so???


here is what it's trying to do:

[build LNK] Library/libvcllo.so
S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3
&& I=$S/instdir && W=$S/workdir && mkdir -p $W/Dep/LinkTarget/Library/
&& RESPONSEFILE=/tmp/gbuild.OgyDJO &&
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/ure/lib:$I/program"
$W/LinkTarget/Executable/concat-deps ${RESPONSEFILE} >
$W/Dep/LinkTarget/Library/libvcllo.so.d.tmp && rm -f ${RESPONSEFILE}
mv
/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d.tmp
/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d
S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3
&& I=$S/instdir && W=$S/workdir && /usr/gcc/4.7/bin/g++ -shared

Didn't the Solaris linker use something like -G to tell it to build a 
shared library? Maybe the GCC -shared doesn't properly translate to 
something useful for the linker in your tool-chain.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.