On 2 March 2014 23:15, Andrius da Costa Ribas <[email protected]> wrote: > I'd guess this would be something close to case 4 of > https://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?style=printable&part=1&chap=3 > 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)? > > dirty solution = using "if (MINGW)" for this specific part?
Yes. > > > 2014-03-02 17:14 GMT-03:00 Jaroslaw Staniek <[email protected]>: > >> Hi, >> It could be cool to get rid of the static lib but I feel that was >> discussed (?). >> Alternatively, a special condition in the cmake file could act as a >> somewhat dirty solution in this rare case. >> >> On 2 March 2014 18:39, Cyrille Berger Skott <[email protected]> wrote: >> > Hi, >> > >> > >> > >> > I get a compilation error when building calligra: >> > >> > >> > >> > Linking CXX shared module ../../../lib/calligra_filter_doc2odt.so >> > >> > /usr/bin/ld: ../../../lib/libmso.a(drawstyle.cpp.o): bad reloc symbol >> > index >> > (0x21e9 >= 0x976) for offset 0x6a6f2 in section `.debug_loc' >> > >> > ../../../lib/libmso.a: error adding symbols: Bad value >> > >> > collect2: error: ld returned 1 exit status >> > >> > make[2]: *** [lib/calligra_filter_doc2odt.so] Error 1 >> > >> > make[1]: *** >> > [filters/words/msword-odf/CMakeFiles/calligra_filter_doc2odt.dir/all] >> > Error >> > 2 >> > >> > make: *** [all] Error 2 >> > >> > zsh: exit 2 make >> > >> > >> > >> > Reverting the following commit does solve the problem for me: >> > >> > >> > >> > >> > >> > >> > http://quickgit.kde.org/?p=calligra.git&a=blobdiff&h=1d856a52eaf25df91ba25e00ba834afb2020d3e1&hp=8342552e9de700bd0a52ae687f544a986eb1941e&f=filters%2Fwords%2Fmsword-odf%2FCMakeLists.txt&hb=5f0a8e4208a10f5d6b4aeaa3ebcae8922e87891e >> > >> > >> > >> > It is worth to note, that for some reasons, it seems to only happen with >> > a >> > clean build. >> > >> > >> > >> > -- >> > >> > Cyrille Berger Skott >> > >> > >> > _______________________________________________ >> > calligra-devel mailing list >> > [email protected] >> > https://mail.kde.org/mailman/listinfo/calligra-devel >> > >> >> >> >> -- >> regards / pozdrawiam, Jaroslaw Staniek >> Kexi & Calligra & KDE | http://calligra.org/kexi | http://kde.org >> Qt for Tizen | http://qt-project.org/wiki/Tizen >> Qt Certified Specialist | http://www.linkedin.com/in/jstaniek >> _______________________________________________ >> calligra-devel mailing list >> [email protected] >> https://mail.kde.org/mailman/listinfo/calligra-devel > > > > _______________________________________________ > calligra-devel mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/calligra-devel > -- regards / pozdrawiam, Jaroslaw Staniek Kexi & Calligra & KDE | http://calligra.org/kexi | http://kde.org Qt for Tizen | http://qt-project.org/wiki/Tizen Qt Certified Specialist | http://www.linkedin.com/in/jstaniek _______________________________________________ calligra-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/calligra-devel
