View previous topic :: View next topic |
Author |
Message |
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Mon Mar 19, 2018 4:08 pm Post subject: [SOLVED] Mathematica and freetype-2.9 undefined symbol |
|
|
Hi all,
since today, I can't start mathematica on my gentoo linux machine. It gives the following error:
Code: | /usr/local/Wolfram/Mathematica/11.3/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: symbol lookup error: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var |
What could be the reason for this problem? The file /usr/lib64/libfontconfig.so.1 is part of the media-libs/fontconfig package. Re-installing the package does not help. revdep-rebuild and emerge @preserved-rebuild don't find the broken link. Any suggestions?
Last edited by Gh0str1d3r on Thu Mar 22, 2018 12:57 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31227 Location: here
|
Posted: Mon Mar 19, 2018 4:13 pm Post subject: |
|
|
You upgraded media-libs/freetype? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Mon Mar 19, 2018 4:15 pm Post subject: |
|
|
I rebuilt that package, too.
Code: | eix freetype
[I] media-libs/freetype
Available versions: (2) 2.8^d (~)2.8.1^d (~)2.9^d **9999^d
{X +adobe-cff bindist bzip2 +cleartype_hinting debug doc fontforge harfbuzz infinality png static-libs utils ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 2.9(2)^d(12:04:07 PM 03/19/2018)(X adobe-cff bzip2 cleartype_hinting png -bindist -debug -doc -fontforge -harfbuzz -infinality -static-libs -utils ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
Homepage: https://www.freetype.org/
Description: A high-quality and portable font engine
|
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31227 Location: here
|
Posted: Mon Mar 19, 2018 4:18 pm Post subject: |
|
|
You tried to downgrade package to 2.8? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Mon Mar 19, 2018 4:27 pm Post subject: |
|
|
Same error with 2.8.1
Edit: I forgot to rebuild media-libs/fontconfig after the downgrade of media-libs/freetype. Now it works. Is this a bug? |
|
Back to top |
|
|
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Tue Mar 20, 2018 10:51 am Post subject: |
|
|
Actually, after downgrading, I can't start kde anymore. The error message is "Could not start kdeinit5" when I try to log in. When I upgrade again to freetype-2.9 then I can also log in again. Is there any way that would allow me to work with kde and with mathematica? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31227 Location: here
|
Posted: Tue Mar 20, 2018 11:14 am Post subject: |
|
|
Gh0str1d3r wrote: | Edit: I forgot to rebuild media-libs/fontconfig after the downgrade of media-libs/freetype. Now it works. Is this a bug? |
I don't think, just that mathematica (a binary package) need version 2.8.
Code: | Actually, after downgrading, I can't start kde anymore. The error message is "Could not start kdeinit5" when I try to log in. When I upgrade again to freetype-2.9 then I can also log in again. Is there any way that would allow me to work with kde and with mathematica? |
Yes because I have freetype 2.8 and media-libs/fontconfig 2.12.6 with plasma unstable 5.12.3.
Probably you can run these step (I'm not sure if work and I've no idea if break somethings )
Code: | # emerge -1 =media-libs/freetype-2.8.1
# emerge -1 media-libs/fontconfig
# revdep-rebuild --library 'libfontconfig.so.1' |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Thu Mar 22, 2018 12:55 pm Post subject: |
|
|
Works, thank you! |
|
Back to top |
|
|
FR3141 n00b
Joined: 13 Jan 2018 Posts: 39
|
Posted: Sat Mar 24, 2018 2:21 pm Post subject: |
|
|
Gh0str1d3r wrote: |
Code: | # emerge -1 =media-libs/freetype-2.8.1
# emerge -1 media-libs/fontconfig
# revdep-rebuild --library 'libfontconfig.so.1' |
|
I have the same issue but I don't want to downgrade and then rebuild a dozen or so packages.
Is it possible to suppy mathematica with the earlier version of freetype libraries through a variable like LD_LIBRARY_PATH or something similar? Does mathematica have a directory where the older libraries could be installed? |
|
Back to top |
|
|
FR3141 n00b
Joined: 13 Jan 2018 Posts: 39
|
Posted: Sat Mar 24, 2018 2:49 pm Post subject: Re: [SOLVED] Mathematica and freetype-2.9 undefined symbol |
|
|
Gh0str1d3r wrote: |
since today, I can't start mathematica on my gentoo linux machine. It gives the following error:
Code: | /usr/local/Wolfram/Mathematica/11.3/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: symbol lookup error: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var |
|
I discovered the source of the problem. Mathematica includes its own freetype.so.6 library in the directory ${TopDirectory}/SystemFiles/Libraries/Linux-x86-64. This freetype library will call the system fontconfig which will give the error.
To fix this, just remove or rename the mathematica freetype.so.6 library. This will force Mathematica to use the system freetype library.
This solution will allow one to keep the latest freetype-2.9 and no downgrade will be necessary.
If Mathematica gives other errors on startup, like with libz.so, check if that library is installed in ${TopDirectory}/SystemFiles/Libraries/Linux-x86-64 and if so then remove or rename it.
I hope this helps. |
|
Back to top |
|
|
wdsci Tux's lil' helper
Joined: 02 Oct 2007 Posts: 149 Location: US
|
Posted: Sun Nov 04, 2018 3:34 am Post subject: |
|
|
Thanks! I had the same problem (well, with Wolfram CDF Player) and I was able to get it working using your solution of removing libfreetype.so.6 and libz.so.1 from /usr/local/Wolfram/CDFPlayer/11.3/SystemFiles/Libraries/Linux-x86-64/. |
|
Back to top |
|
|
danielLIU n00b
Joined: 16 Apr 2009 Posts: 23 Location: Beijing
|
Posted: Thu Jan 30, 2020 3:37 pm Post subject: |
|
|
problem description:
Code: | /usr/local/Wolfram/Mathematica/11.0/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: symbol lookup error: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var |
and the solution:
Code: | sudo rm /usr/local/Wolfram/Mathematica/11.0/SystemFiles/Libraries/Linux-x86-64/libfreetype.so.6
sudo ln -s /usr/lib64/libfreetype.so.6 /usr/local/Wolfram/Mathematica/11.0/SystemFiles/Libraries/Linux-x86-64/libfreetype.so.6 |
|
|
Back to top |
|
|
|