[Libreoffice-bugs] [Bug 121983] New: libpixman-1.so.0 not found when LO is built with internal cairo

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Dec 8 15:20:14 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=121983

            Bug ID: 121983
           Summary: libpixman-1.so.0 not found when LO is built with
                    internal cairo
           Product: LibreOffice
           Version: 6.3.0.0.alpha0+ Master
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: timar74 at gmail.com

I tried to build libreoffice/online:master docker image on Ubuntu 18.04 with
the script
https://opengrok.libreoffice.org/xref/online/docker/l10n-docker-nightly.sh

The container did not start successfully:
frk-00027-00027 2018-12-06 22:56:50.167106 [ forkit ] FTL  Failed to load
/opt/libreoffice/program/libmergedlo.so: libpixman-1.so.0: cannot open shared
object file: No such file or directory| kit/Kit.cpp:2601
frk-00027-00027 2018-12-06 22:56:50.167374 [ forkit ] FTL  Failed to preinit
lokit.| kit/ForKit.cpp:534

So libpixman-1.so.0 is missing.

collabora at ubuntu1804:~/online/docker$ ldd
instdir/opt/libreoffice/program/libmergedlo.so | grep pixman
    libpixman-1.so.0 =>
/home/collabora/online/docker/builddir/libreoffice/workdir/UnpackedTarball/pixman/pixman/.libs/libpixman-1.so.0
(0x00007f392aa8d000)

It does not link to the libpixman-1.so.0 in instdir! 
I had to hotfix this with the following patch:
diff --git a/docker/l10n-docker-nightly.sh b/docker/l10n-docker-nightly.sh
index 9e91f98..59ce780 100755
--- a/docker/l10n-docker-nightly.sh
+++ b/docker/l10n-docker-nightly.sh
@@ -114,6 +114,9 @@ EOF
 mkdir -p "$INSTDIR"/opt/
 cp -a libreoffice/instdir "$INSTDIR"/opt/libreoffice

+# FIXME fix RPATH of libcairo
+chrpath -r '$ORIGIN' "$INSTDIR"/opt/libreoffice/program/libcairo.so.2
+
 ##### loolwsd & loleaflet #####

 # build

I think RPATH of libcairo.so.2 should be set properly by the build system.
Interestingly, I had this bug only on Ubuntu 18.04, for example on OpenSUSE
LEAP 15, the bug does not occur, although RPATH of libcairo.so.2 is still
wrong.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181208/d59f9a1b/attachment.html>


More information about the Libreoffice-bugs mailing list