Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] Mathematica and freetype-2.9 undefined symbol

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
Gh0str1d3r
Guru
Guru
Posts: 411
Joined: Tue May 27, 2008 9:28 am

[SOLVED] Mathematica and freetype-2.9 undefined symbol

  • Quote

Post by Gh0str1d3r » Mon Mar 19, 2018 4:08 pm

Hi all,

since today, I can't start mathematica on my gentoo linux machine. It gives the following error:

Code: Select all

/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.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Mon Mar 19, 2018 4:13 pm

You upgraded media-libs/freetype?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Gh0str1d3r
Guru
Guru
Posts: 411
Joined: Tue May 27, 2008 9:28 am

  • Quote

Post by Gh0str1d3r » Mon Mar 19, 2018 4:15 pm

I rebuilt that package, too.

Code: Select all

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
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Mon Mar 19, 2018 4:18 pm

You tried to downgrade package to 2.8?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Gh0str1d3r
Guru
Guru
Posts: 411
Joined: Tue May 27, 2008 9:28 am

  • Quote

Post by Gh0str1d3r » Mon Mar 19, 2018 4:27 pm

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?
Top
Gh0str1d3r
Guru
Guru
Posts: 411
Joined: Tue May 27, 2008 9:28 am

  • Quote

Post by Gh0str1d3r » Tue Mar 20, 2018 10:51 am

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?
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Mar 20, 2018 11:14 am

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: Select all

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 :P )

Code: Select all

# 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.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Gh0str1d3r
Guru
Guru
Posts: 411
Joined: Tue May 27, 2008 9:28 am

  • Quote

Post by Gh0str1d3r » Thu Mar 22, 2018 12:55 pm

Works, thank you!
Top
FR3141
n00b
n00b
Posts: 39
Joined: Sat Jan 13, 2018 2:12 pm

  • Quote

Post by FR3141 » Sat Mar 24, 2018 2:21 pm

Gh0str1d3r wrote:

Code: Select all

# 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?
Top
FR3141
n00b
n00b
Posts: 39
Joined: Sat Jan 13, 2018 2:12 pm

Re: [SOLVED] Mathematica and freetype-2.9 undefined symbol

  • Quote

Post by FR3141 » Sat Mar 24, 2018 2:49 pm

Gh0str1d3r wrote: since today, I can't start mathematica on my gentoo linux machine. It gives the following error:

Code: Select all

/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.
Top
wdsci
Tux's lil' helper
Tux's lil' helper
Posts: 149
Joined: Tue Oct 02, 2007 5:11 am
Location: US
Contact:
Contact wdsci
Website

  • Quote

Post by wdsci » Sun Nov 04, 2018 3:34 am

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/.
Top
danielLIU
n00b
n00b
Posts: 23
Joined: Thu Apr 16, 2009 11:20 am
Location: Beijing

  • Quote

Post by danielLIU » Thu Jan 30, 2020 3:37 pm

problem description:

Code: Select all

/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: Select all

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
Top
Post Reply

12 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic