<div dir="ltr">I'd guess this would be something close to case 4 of <a href="https://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?style=printable&part=1&chap=3" target="_blank">https://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?style=printable&part=1&chap=3</a> but according to the cmake file -fPIC is actually being used. I don't have a linux setup but since -fPIC is ignored on Windows this may be the reason I didn't get this error on MinGW. Is there any specific reason libmso is static (while e.g. libmsooxml isn't)?<div>
<br></div><div>dirty solution = using "if (MINGW)" for this specific part?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-02 17:14 GMT-03:00 Jaroslaw Staniek <span dir="ltr"><<a href="mailto:staniek@kde.org" target="_blank">staniek@kde.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
It could be cool to get rid of the static lib but I feel that was discussed (?).<br>
Alternatively, a special condition in the cmake file could act as a<br>
somewhat dirty solution in this rare case.<br>
<div><div class="h5"><br>
On 2 March 2014 18:39, Cyrille Berger Skott <<a href="mailto:cberger@cberger.net">cberger@cberger.net</a>> wrote:<br>
> Hi,<br>
><br>
><br>
><br>
> I get a compilation error when building calligra:<br>
><br>
><br>
><br>
> Linking CXX shared module ../../../lib/calligra_filter_doc2odt.so<br>
><br>
> /usr/bin/ld: ../../../lib/libmso.a(drawstyle.cpp.o): bad reloc symbol index<br>
> (0x21e9 >= 0x976) for offset 0x6a6f2 in section `.debug_loc'<br>
><br>
> ../../../lib/libmso.a: error adding symbols: Bad value<br>
><br>
> collect2: error: ld returned 1 exit status<br>
><br>
> make[2]: *** [lib/calligra_filter_doc2odt.so] Error 1<br>
><br>
> make[1]: ***<br>
> [filters/words/msword-odf/CMakeFiles/calligra_filter_doc2odt.dir/all] Error<br>
> 2<br>
><br>
> make: *** [all] Error 2<br>
><br>
> zsh: exit 2 make<br>
><br>
><br>
><br>
> Reverting the following commit does solve the problem for me:<br>
><br>
><br>
><br>
><br>
><br>
> <a href="http://quickgit.kde.org/?p=calligra.git&a=blobdiff&h=1d856a52eaf25df91ba25e00ba834afb2020d3e1&hp=8342552e9de700bd0a52ae687f544a986eb1941e&f=filters%2Fwords%2Fmsword-odf%2FCMakeLists.txt&hb=5f0a8e4208a10f5d6b4aeaa3ebcae8922e87891e" target="_blank">http://quickgit.kde.org/?p=calligra.git&a=blobdiff&h=1d856a52eaf25df91ba25e00ba834afb2020d3e1&hp=8342552e9de700bd0a52ae687f544a986eb1941e&f=filters%2Fwords%2Fmsword-odf%2FCMakeLists.txt&hb=5f0a8e4208a10f5d6b4aeaa3ebcae8922e87891e</a><br>
><br>
><br>
><br>
> It is worth to note, that for some reasons, it seems to only happen with a<br>
> clean build.<br>
><br>
><br>
><br>
> --<br>
><br>
> Cyrille Berger Skott<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> calligra-devel mailing list<br>
> <a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
regards / pozdrawiam, Jaroslaw Staniek<br>
Kexi & Calligra & KDE | <a href="http://calligra.org/kexi" target="_blank">http://calligra.org/kexi</a> | <a href="http://kde.org" target="_blank">http://kde.org</a><br>
Qt for Tizen | <a href="http://qt-project.org/wiki/Tizen" target="_blank">http://qt-project.org/wiki/Tizen</a><br>
Qt Certified Specialist | <a href="http://www.linkedin.com/in/jstaniek" target="_blank">http://www.linkedin.com/in/jstaniek</a><br>
_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
</font></span></blockquote></div><br></div>