[prev in list] [next in list] [prev in thread] [next in thread]
List: calligra-devel
Subject: Re: linking error
From: Andrius da Costa Ribas <andriusmao () gmail ! com>
Date: 2014-03-02 22:15:45
Message-ID: CADzOArG2398h2M0rh0KaTinCOw+TPNHMPrX5Ti1ao8L9EepPOA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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?
2014-03-02 17:14 GMT-03:00 Jaroslaw Staniek <staniek@kde.org>:
> 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 <cberger@cberger.net> 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=1d856a52eaf25df91ba25e00ba834af \
> b2020d3e1&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
> > calligra-devel@kde.org
> > 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
> calligra-devel@kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
>
[Attachment #5 (text/html)]
<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=1d856a52eaf \
25df91ba25e00ba834afb2020d3e1&hp=8342552e9de700bd0a52ae687f544a986eb1941e&f=fi \
lters%2Fwords%2Fmsword-odf%2FCMakeLists.txt&hb=5f0a8e4208a10f5d6b4aeaa3ebcae8922e87891e" \
target="_blank">http://quickgit.kde.org/?p=calligra.git&a=blobdiff&h=1d856a52e \
af25df91ba25e00ba834afb2020d3e1&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>
_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic