LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-16-2020, 10:42 AM   #1
rinaldij
Member
 
Registered: May 2011
Location: Oklahoma
Distribution: Slackware64 current
Posts: 35

Rep: Reputation: 4
soffice undefined symbol FT_Get_Font_Format


Linux Senior.Envision 5.4.25 #1 SMP Fri Mar 13 11:40:17 CDT 2020 x86_64 Intel(R) Core(TM) i7-7740X CPU @ 4.30GHz GenuineIntel GNU/Linux

Slackware64-current; multilib;

soffice --version
LibreOffice 6.4.1.2 40(Build:2)

libreoffice-dict-en-6.4.1-x86_64-1alien
libreoffice-kde-integration-6.4.1-x86_64-1alien

Problem popped up yesterday:

$ soffice
/usr/lib64/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib64/libQt5XcbQpa.so.5: undefined symbol: FT_Get_Font_Format

freetype-2.10.1-x86_64-1

https://www.freetype.org/freetype2/d...t_formats.html
 
Old 03-16-2020, 11:29 AM   #2
shruggy
Member
 
Registered: Mar 2020
Posts: 66

Rep: Reputation: Disabled
1. Check contents of the environment variable LD_LIBRARY_PATH
Code:
echo $LD_LIBRARY_PATH
2. Check where Qt expects libfreetype to be located
Code:
ldd /usr/lib64/libQt5XcbQpa.so.5 | grep libfreetype
3. Check where LibreOffice expects libfreetype to be located
Code:
ldd usr/lib64/libreoffice/program/soffice.bin | grep libfreetype
4. Check if the symbol actually exists there
Code:
nm -D /usr/lib64/libfreetype.so | grep -w FT_Get_Font_Format
Replace /usr/lib64/libfreetype.so by whatever path was shown on steps 2 and 3.

Last edited by shruggy; 03-16-2020 at 11:38 AM.
 
Old 03-16-2020, 11:33 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,921

Rep: Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591Reputation: 6591
Have you replaced the qt5 related packages that were previously in my ktown repository with the packages that are now in Slackware-current? For instance, qt5, libxkbcommon, qt5-webkit, hyphen, woff2 and more.
 
Old 03-16-2020, 03:48 PM   #4
rinaldij
Member
 
Registered: May 2011
Location: Oklahoma
Distribution: Slackware64 current
Posts: 35

Original Poster
Rep: Reputation: 4
Shruggy, I've done as you requested and find all in order except I have no LD_LIBRARY_PATH. However using ldconfig -p I find libfreetype.so listed where both Qt5 and libreoffice are looking for it.

# ldconfig -p | grep libfreetype
libfreetype.so.6 (libc6,x86-64) => /usr/lib64/libfreetype.so.6
libfreetype.so (libc6,x86-64) => /usr/lib64/libfreetype.so

Last edited by rinaldij; 03-16-2020 at 04:10 PM.
 
Old 03-16-2020, 04:09 PM   #5
rinaldij
Member
 
Registered: May 2011
Location: Oklahoma
Distribution: Slackware64 current
Posts: 35

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by Alien Bob View Post
Have you replaced the qt5 related packages that were previously in my ktown repository with the packages that are now in Slackware-current? For instance, qt5, libxkbcommon, qt5-webkit, hyphen, woff2 and more.
Eric:

I don't believe I've missed any.

openal-soft-1.20.1-x86_64-1.txz
brotli-1.0.7-x86_64-1.txz
qt5-5.13.2-x86_64-2.txz
libxkbcommon-0.10.0-x86_64-2.txz
qt5-webkit-5.212.0_alpha3-x86_64-1.txz
hyphen-2.8.8-x86_64-1.txz
woff2-20180531_a0d0ed7-x86_64-1.txz
wayland-1.18.0-x86_64-1.txz
wayland-protocols-1.20-noarch-1.txz

Running as root throws a different but similar error:

# soffice
/usr/lib64/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

Thanks for your time!
 
Old 03-16-2020, 04:20 PM   #6
rinaldij
Member
 
Registered: May 2011
Location: Oklahoma
Distribution: Slackware64 current
Posts: 35

Original Poster
Rep: Reputation: 4
An interesting twist. If I run

/usr/lib64/libreoffice/program/soffice.bin

all works as desired. It appears there is something in the soffice wrapper that sets it astray.

Not really solved but I should probably mark it as so, yes?
 
Old 03-16-2020, 06:46 PM   #7
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware (x86 and ARM)
Posts: 274

Rep: Reputation: Disabled
That's a workaround, but it doesn't solve the core problem.

(Just my advice. If you still think it's OK to mark the thread as solved, I won't stop you.)
 
Old 03-26-2020, 10:26 AM   #8
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 650
Blog Entries: 3

Rep: Reputation: 170Reputation: 170
Hi,

I posted a comment on Eric's blog and he kindly pointed me on this thread I missed.

I encountered the same error as @rinaldij but as normal user:

Code:
/usr/lib64/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
Launching soffice from full path do not throw the error either but it might make the launching window look slightly different.

Investigating that, I reverted the change I recently made (without harm in first place) :

in /etc/profile.d/libreoffice.sh, I uncommented the line
Code:
export SAL_USE_VCLPLUGIN=qt5
Now it just works (for me).

Hope it could help others.


Note that I have a updated current (from march the 25, just before llvm version bump) with ktown.
 
Old 03-27-2020, 09:57 AM   #9
rinaldij
Member
 
Registered: May 2011
Location: Oklahoma
Distribution: Slackware64 current
Posts: 35

Original Poster
Rep: Reputation: 4
Thanks Tonus. I tried but no joy. I did do an strace to see if anything popped up and got the following final stanza:

read(4, "10%\n", 255) = 4
futex(0x14f83f8, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1585320937, tv_nsec=775071000}, FUTEX_BITSET_MATCH_ANY/usr/lib64/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib64/libQt5XcbQpa.so.5: undefined symbol: FT_Get_Font_Format
) = 0
futex(0x14f8400, FUTEX_WAKE_PRIVATE, 1) = 0
close(4) = 0
exit_group(127) = ?
+++ exited with 127 +++

Google tells me 127 is a command not found error.

Over my head.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the differences between the normal symbol table, the dynamic symbol table, and the debugging symbol table? watchintv Linux - Software 5 10-22-2016 08:38 AM
UNDEFINED SYMBOL!! though the symbol defined in System.map raklo Programming 3 01-05-2011 02:52 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
./firefox-bin: symbol lookup error: /usr/lib/libpango-1.0.so.0: undefined symbol: g_s cb8100 Slackware 3 10-05-2006 10:55 AM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration