[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&#39;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&amp;part=1&amp;chap=3" \
target="_blank">https://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?style=printable&amp;part=1&amp;chap=3</a> \
but according to the cmake file -fPIC is actually being used. I don&#39;t have a \
linux setup but since -fPIC is ignored on Windows this may be the reason I didn&#39;t \
get this error on MinGW. Is there any specific reason libmso is static (while e.g. \
libmsooxml isn&#39;t)?<div>

<br></div><div>dirty solution = using &quot;if (MINGW)&quot; 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">&lt;<a href="mailto:staniek@kde.org" \
target="_blank">staniek@kde.org</a>&gt;</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 &lt;<a \
href="mailto:cberger@cberger.net">cberger@cberger.net</a>&gt; wrote:<br> &gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I get a compilation error when building calligra:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Linking CXX shared module ../../../lib/calligra_filter_doc2odt.so<br>
&gt;<br>
&gt; /usr/bin/ld: ../../../lib/libmso.a(drawstyle.cpp.o): bad reloc symbol index<br>
&gt; (0x21e9 &gt;= 0x976) for offset 0x6a6f2 in section `.debug_loc&#39;<br>
&gt;<br>
&gt; ../../../lib/libmso.a: error adding symbols: Bad value<br>
&gt;<br>
&gt; collect2: error: ld returned 1 exit status<br>
&gt;<br>
&gt; make[2]: *** [lib/calligra_filter_doc2odt.so] Error 1<br>
&gt;<br>
&gt; make[1]: ***<br>
&gt; [filters/words/msword-odf/CMakeFiles/calligra_filter_doc2odt.dir/all] Error<br>
&gt; 2<br>
&gt;<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
&gt; zsh: exit 2 make<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Reverting the following commit does solve the problem for me:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; <a href="http://quickgit.kde.org/?p=calligra.git&amp;a=blobdiff&amp;h=1d856a52eaf \
25df91ba25e00ba834afb2020d3e1&amp;hp=8342552e9de700bd0a52ae687f544a986eb1941e&amp;f=fi \
lters%2Fwords%2Fmsword-odf%2FCMakeLists.txt&amp;hb=5f0a8e4208a10f5d6b4aeaa3ebcae8922e87891e" \
target="_blank">http://quickgit.kde.org/?p=calligra.git&amp;a=blobdiff&amp;h=1d856a52e \
af25df91ba25e00ba834afb2020d3e1&amp;hp=8342552e9de700bd0a52ae687f544a986eb1941e&amp;f= \
filters%2Fwords%2Fmsword-odf%2FCMakeLists.txt&amp;hb=5f0a8e4208a10f5d6b4aeaa3ebcae8922e87891e</a><br>



&gt;<br>
&gt;<br>
&gt;<br>
&gt; It is worth to note, that for some reasons, it seems to only happen with a<br>
&gt; clean build.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Cyrille Berger Skott<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; calligra-devel mailing list<br>
&gt; <a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
&gt; <a href="https://mail.kde.org/mailman/listinfo/calligra-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br> &gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
regards / pozdrawiam, Jaroslaw Staniek<br>
 Kexi &amp; Calligra &amp; 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