<div dir="ltr"><div><div>Hey,<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 6:22 AM, Ekansh Jha <span dir="ltr"><<a href="mailto:jhaekansh80@gmail.com" target="_blank">jhaekansh80@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">While building libreoffice after make command, I am getting an error. Please help me to fix it.<div><br></div><div><ol style="color:rgb(102,102,102);list-style:outside none decimal-leading-zero;font-family:monospace;font-size:13.3333px"><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">Making all in utils</div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">libtool: link: gcc -O -Wl,-z -Wl,origin -Wl,-rpath -Wl,\$ORIGIN -o .<span class="gmail-m_-8525864156386589281gmail-me1" style="color:rgb(0,238,255)">libs</span>/rapper rapper.<span class="gmail-m_-8525864156386589281gmail-me1" style="color:rgb(0,238,255)">o</span> ../src/.<span class="gmail-m_-8525864156386589281gmail-me1" style="color:rgb(0,238,255)">libs</span>/libraptor2.<span class="gmail-m_-8525864156386589281gmail-me1" style="color:rgb(0,238,255)">so</span></div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="background:rgb(255,255,221) none repeat scroll 0% 0%;color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">/usr/bin/ld: warning: libiconv.<span class="gmail-m_-8525864156386589281gmail-me1" style="color:rgb(0,238,255)">so</span><span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">.2</span>, needed by <span class="gmail-m_-8525864156386589281gmail-co1" style="color:rgb(255,0,0)">//home/ekansh/anaconda3/<wbr>lib/libxml2.so.2, not found (try using -rpath or -rpath-link)</span></div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline"><span class="gmail-m_-8525864156386589281gmail-co1" style="color:rgb(255,0,0)">//home/ekansh/anaconda3/lib/<wbr>libxml2.so.2: undefined reference to `libiconv'</span></div></li><li class="gmail-m_-8525864156386589281gmail-li2" style="color:rgb(131,131,131);font-weight:bold"><div class="gmail-m_-8525864156386589281gmail-de2" style="color:black;font-weight:normal;display:inline"><span class="gmail-m_-8525864156386589281gmail-co1" style="color:rgb(255,0,0)">//home/ekansh/anaconda3/lib/<wbr>libxml2.so.2: undefined reference to `libiconv_close'</span></div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline"><span class="gmail-m_-8525864156386589281gmail-co1" style="color:rgb(255,0,0)">//home/ekansh/anaconda3/lib/<wbr>libxml2.so.2: undefined reference to `libiconv_open'</span></div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">collect2: error: ld returned <span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">1</span> <span class="gmail-m_-8525864156386589281gmail-kw3" style="color:rgb(0,0,221)">exit</span> status</div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">Makefile:<span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">462</span>: recipe <span class="gmail-m_-8525864156386589281gmail-kw1" style="color:rgb(0,0,255)">for</span> target <span class="gmail-m_-8525864156386589281gmail-st0" style="color:rgb(102,102,102)">'rapper'</span> <wbr>failed</div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">make<span class="gmail-m_-8525864156386589281gmail-br0">[</span><span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">3</span><span class="gmail-m_-8525864156386589281gmail-br0">]</span>: *** <span class="gmail-m_-8525864156386589281gmail-br0">[</span>rapper<span class="gmail-m_-8525864156386589281gmail-br0">]</span> Error <span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">1</span></div></li><li class="gmail-m_-8525864156386589281gmail-li2" style="color:rgb(131,131,131);font-weight:bold"><div class="gmail-m_-8525864156386589281gmail-de2" style="color:black;font-weight:normal;display:inline">Makefile:<span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">455</span>: recipe <span class="gmail-m_-8525864156386589281gmail-kw1" style="color:rgb(0,0,255)">for</span> target <span class="gmail-m_-8525864156386589281gmail-st0" style="color:rgb(102,102,102)">'all-<wbr>recursive'</span> failed</div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">make<span class="gmail-m_-8525864156386589281gmail-br0">[</span><span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">2</span><span class="gmail-m_-8525864156386589281gmail-br0">]</span>: *** <span class="gmail-m_-8525864156386589281gmail-br0">[</span>all-recursive<span class="gmail-m_-8525864156386589281gmail-br0">]</span> Error <span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">1</span></div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">/home/ekansh/libreoffice/<wbr>external/redland/<wbr>ExternalProject_raptor.<span class="gmail-m_-8525864156386589281gmail-me1" style="color:rgb(0,238,255)">mk</span>:<span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">19</span>: recipe <span class="gmail-m_-8525864156386589281gmail-kw1" style="color:rgb(0,0,255)">for</span> target <span class="gmail-m_-8525864156386589281gmail-st0" style="color:rgb(102,102,102)">'/home/<wbr>ekansh/libreoffice/workdir/<wbr>ExternalProject/raptor/build'</span> <wbr>failed</div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">make<span class="gmail-m_-8525864156386589281gmail-br0">[</span><span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">1</span><span class="gmail-m_-8525864156386589281gmail-br0">]</span>: *** <span class="gmail-m_-8525864156386589281gmail-br0">[</span>/home/ekansh/libreoffice/<wbr>workdir/ExternalProject/<wbr>raptor/build<span class="gmail-m_-8525864156386589281gmail-br0">]</span> Error <span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">1</span></div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">make<span class="gmail-m_-8525864156386589281gmail-br0">[</span><span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">1</span><span class="gmail-m_-8525864156386589281gmail-br0">]</span>: *** Waiting <span class="gmail-m_-8525864156386589281gmail-kw1" style="color:rgb(0,0,255)">for</span> unfinished jobs....</div></li><li class="gmail-m_-8525864156386589281gmail-li2" style="color:rgb(131,131,131);font-weight:bold"><div class="gmail-m_-8525864156386589281gmail-de2" style="color:black;font-weight:normal;display:inline"><span class="gmail-m_-8525864156386589281gmail-me1" style="color:rgb(0,238,255)">Makefile</span>:<span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">265</span>: recipe <span class="gmail-m_-8525864156386589281gmail-kw1" style="color:rgb(0,0,255)">for</span> target <span class="gmail-m_-8525864156386589281gmail-st0" style="color:rgb(102,102,102)">'build'</span> <wbr>failed</div></li><li class="gmail-m_-8525864156386589281gmail-li1" style="color:rgb(131,131,131)"><div class="gmail-m_-8525864156386589281gmail-de1" style="color:black;display:inline">make: *** <span class="gmail-m_-8525864156386589281gmail-br0">[</span>build<span class="gmail-m_-8525864156386589281gmail-br0">]</span> Error <span class="gmail-m_-8525864156386589281gmail-nu0" style="color:rgb(0,0,221)">2</span></div></li></ol></div></div>
<br>______________________________<wbr>_________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/libreoffice</a><br>
<br></blockquote></div></div><div class="gmail_extra"><br></div>The reference to "/home/ekansh/anaconda3/lib/libxml2.so.2" looks suspicious. This most likely means that you have a self-built libxml2 that is used instead of the system libxml2 and the linker is not finding a corresponding libiconv. I would suggest that at least in the beginning you stick to system libraries or the LibreOffice included copies of libraries. This normally helps to make it a smoother build experience and as soon as you manage to get reliable builds you can still experiment with more complicated setups.<br><br></div>Regards,<br></div>Markus<br></div>