Libreoffice Build Error

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Oct 16 00:31:16 UTC 2017


Hey,

On Mon, Oct 9, 2017 at 6:22 AM, Ekansh Jha <jhaekansh80 at gmail.com> wrote:

> While building libreoffice after make command, I am getting an error.
> Please help me to fix it.
>
>
>    1. Making all in utils
>    2. libtool: link: gcc -O -Wl,-z -Wl,origin -Wl,-rpath -Wl,\$ORIGIN -o .
>    libs/rapper rapper.o  ../src/.libs/libraptor2.so
>    3. /usr/bin/ld: warning: libiconv.so.2, needed by
>    //home/ekansh/anaconda3/lib/libxml2.so.2, not found (try using -rpath
>    or -rpath-link)
>    4. //home/ekansh/anaconda3/lib/libxml2.so.2: undefined reference to
>    `libiconv'
>    5. //home/ekansh/anaconda3/lib/libxml2.so.2: undefined reference to
>    `libiconv_close'
>    6. //home/ekansh/anaconda3/lib/libxml2.so.2: undefined reference to
>    `libiconv_open'
>    7. collect2: error: ld returned 1 exit status
>    8. Makefile:462: recipe for target 'rapper' failed
>    9. make[3]: *** [rapper] Error 1
>    10. Makefile:455: recipe for target 'all-recursive' failed
>    11. make[2]: *** [all-recursive] Error 1
>    12. /home/ekansh/libreoffice/external/redland/ExternalProject_raptor.mk
>    :19: recipe for target '/home/ekansh/libreoffice/workdir/
>    ExternalProject/raptor/build' failed
>    13. make[1]: *** [/home/ekansh/libreoffice/workdir/ExternalProject/
>    raptor/build] Error 1
>    14. make[1]: *** Waiting for unfinished jobs....
>    15. Makefile:265: recipe for target 'build' failed
>    16. make: *** [build] Error 2
>
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>
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.

Regards,
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20171016/e9a79e48/attachment.html>


More information about the LibreOffice mailing list