Bug 136980 - Failed to load libmergedlo.so libcairo.so.2: undefined symbol: FT_Get_Var_Blend_Coordinates
Summary: Failed to load libmergedlo.so libcairo.so.2: undefined symbol: FT_Get_Var_Ble...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:7.1.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 13:54 UTC by Simon V
Modified: 2020-09-28 11:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon V 2020-09-23 13:54:47 UTC
I upgraded collaboraoffice6.4 on my debian 9 using the debian package (https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian9) [apt update; apt upgrade]/

When I restarted the service, that failed. By starting the service manually, I had this error:

lool@asuka:~$ /usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd --pidfile=/var/run/loolwsd/loolwsd.pid
loolforkit version details: 6.4.0 - db90a0f
Failed to load /opt/collaboraoffice6.4/program/libmergedlo.so: /opt/collaboraoffice6.4/program/libcairo.so.2: undefined symbol: FT_Get_Var_Blend_Coordinates
Failed to preinit lokit.


My workaround:

root@asuka:~# mv /opt/collaboraoffice6.2/program/libcairo.so.2{,bk}
# cp /opt/collaboraoffice6.2/program/libcairo.so.2 /opt/collaboraoffice6.4/program

Then I could start loolwsd.
Comment 1 Simon V 2020-09-23 14:05:11 UTC
After this upgrade, I have a glitch when I open a calc: the content is hidden until I scroll. If I delete something, the content is hidden again.
https://kim.deblan.fr/~simon/videos/co136980.mp4
Comment 2 Aron Budea 2020-09-24 20:52:56 UTC
CODE was updated last night, can you check if the updated version still has these issues?
Comment 3 Simon V 2020-09-25 07:12:55 UTC
This update has other issue. 

root # LANG=en upgrade
[...]
The following packages were automatically installed and are no longer required:
  collaboraofficebasis6.2-calc collaboraofficebasis6.2-draw collaboraofficebasis6.2-en-us collaboraofficebasis6.2-extension-pdf-import collaboraofficebasis6.2-graphicfilter collaboraofficebasis6.2-impress collaboraofficebasis6.2-ooofonts
  collaboraofficebasis6.2-ooolinguistic collaboraofficebasis6.2-writer libstd-rust-1.34
[...]
Setting up loolwsd (6.4.0-2) ...
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/tmp': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/help/idxcontent.xsl': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/help/main_transform.xsl': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/help/idxcaption.xsl': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/EULA_en-US.rtf': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/LICENSE': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/CREDITS.fodt': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/EULA.odt': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/libscuilo.so': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/gengal': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/gengal.bin': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/libdlgprovlo.so': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/libbootstraplo.so': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/libicglo.so': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/libxmlfalo.so': Read-only file system
rm: cannot remove '/opt/lool/child-roots/UhakGq3ABKfzVkFa/lo/program/libvbaobjlo.so': Read-only file
[...]
dpkg: error processing package loolwsd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 loolwsd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root # mount | grep UhakGq3ABKfzVkFa
/dev/sda5 on /opt/lool/child-roots/UhakGq3ABKfzVkFa type ext4 (ro,nosuid,nodev,noatime,seclabel,errors=remount-ro,data=ordered)
/dev/sda5 on /opt/lool/child-roots/UhakGq3ABKfzVkFa/lo type ext4 (ro,nosuid,nodev,noatime,seclabel,errors=remount-ro,data=ordered)
/dev/sda5 on /opt/lool/child-roots/UhakGq3ABKfzVkFa/tmp type ext4 (rw,relatime,seclabel,errors=remount-ro,data=ordered)


I didn't configure these mount points.
Comment 4 Simon V 2020-09-25 07:18:44 UTC
lool@asuka:~$ /usr/bin/loolwsd --version --o:sys_template_path=/opt/lool/systemplate --o:child_root_path=/opt/lool/child-roots --o:file_server_root_path=/usr/share/loolwsd --pidfile=/var/run/loolwsd/loolwsd.pid
loolforkit version details: 6.4.0 - bfce6f6
Failed to load /opt/collaboraoffice6.4/program/libmergedlo.so: /opt/collaboraoffice6.4/program/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
Failed to preinit lokit.
Comment 5 Aron Budea 2020-09-25 10:29:14 UTC
Thanks! There are going to be new packages shortly, with hopefully the correct fix this time. The cause is that system freetype is too old in Debian 9 (and Ubuntu 16.04), and cairo had to be patched to not link to new functions with old fontconfig versions.

For the issue in comment 3, please open a separate bug report.
Comment 6 Commit Notification 2020-09-25 11:15:01 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7b0746a2760b62c504236d8ff44d6e150c59abe9

tdf#136980 cairo: avoid linking to freetype-2.8 symbols

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Simon V 2020-09-25 11:18:35 UTC
when do you plan to release 7.1.0? My installation is broken right now.
Comment 8 Commit Notification 2020-09-25 16:48:08 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e81b9ab5a3ef742bbe674323cc1b035be2380f9c

Related: tdf#136980 cairo: avoid linking to freetype-2.8-only ...

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Aron Budea 2020-09-27 05:22:35 UTC
(In reply to Simon V from comment #7)
> when do you plan to release 7.1.0? My installation is broken right now.
The CODE 6.4 packages will be updated shortly with the fix.
Comment 10 Andras Timar 2020-09-27 11:04:46 UTC
CODE 6.4.0-3 packages fixed the issue.
Comment 11 Simon V 2020-09-28 08:46:26 UTC
The upgrade destroyed collabora. Nothing work anymore.
Comment 12 Aron Budea 2020-09-28 10:35:40 UTC
That's unfortunate, can you give more details about the problem?