[gutsy] libXft library - undefined symbol FT_Library_SetLcdFilter

Bug #145244 reported by Martin Majlis
18
Affects Status Importance Assigned to Milestone
xft (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: libxft2

When I try run some programs, this error uccurres:
konqueror: symbol lookup error: /usr/lib/libXft.so.2: undefined symbol: FT_Library_SetLcdFilter
krusader: symbol lookup error: /usr/lib/libXft.so.2: undefined symbol: FT_Library_SetLcdFilter
amarokapp: symbol lookup error: /usr/lib/libXft.so.2: undefined symbol: FT_Library_SetLcdFilter

And program crashes. So, it's impossible to run most of programs, or log in Gnome/Kde/...

description: updated
Revision history for this message
Martin Majlis (martin-majlis) wrote :

I installed libXft from feisty (http://packages.ubuntu.com/feisty/libs/libxft2) and it works correctly.

Revision history for this message
jneubarth (nachtbus) wrote :

Hi,
thanks to Martin for the proposed workaround :-)
I just upgraded from Kubuntu Feisty to Gutsy and encountered this very same error.
In addition, I had similar errors with other libraries:

- trying to use synaptic:
synaptic: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter

- trying to use eclipse:
/usr/lib/jvm/java-6-sun-1.6.0.00/bin/java: symbol lookup error: /home/johannes/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/57/1/.cp/libswt-mozilla-gtk-3236.so: undefined symbol: NS_StringContainerInit2

Especially the second bug bothers me since I don't know how to downgrade libswt-mozilla-gtk-3236.so...

Would be thankful for any help,
Johannes Neubarth
(Ubuntu 7.10, KDE 3.5.8, Eclipse 3.2)

Revision history for this message
Martin Majlis (martin-majlis) wrote :

Same problem in hardy due same version of libxft2.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I had this error also when lauching medusa4 under hardy.
To workaround this problem, I've put the feisty libXft.*.so* library in a /opt/my-program/lib folder and then I've ran the program using something like:

   LD_LIBRARY_PATH=/opt/my-program/lib/ my-program

But... What about fixing this library for retro-compatibility? I guess it's not so hard...

Revision history for this message
Marcelo Atie (marceloatie) wrote :

/usr/bin/php-gtk2: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter

Trying to use php-gtk2 in hardy

Revision history for this message
Cristobal Tapia (crtapia) wrote :

I am having the exact same problem as Treviño. It gives me the same error when trying to run Medusa4.
Can you explain me what did you exactly do to fix it please?? I tried to ollow you instructions, but cuoldn't do it. xD

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Download libxft deb from http://packages.ubuntu.com/feisty/libxft2
Do:
 dpkg --extract libxft2_2.1.12-1_i386.deb /tmp
 sudo mkdir -p /your/program/path/lib
 sudo cp /tmp/usr/lib/libXft.so.2* /your/program/path/lib
 LD_LIBRARY_PATH=/your/program/path/lib my-program

Revision history for this message
Cristobal Tapia (crtapia) wrote : Re: [Bug 145244] Re: [gutsy] libXft library - undefined symbol FT_Library_SetLcdFilter
  • unnamed Edit (5.9 KiB, text/html; charset=ISO-8859-1)

Hi, thanks a lot for helping me with this problem! =D Your answer was faster
than I expected xD ...that is great!!

So, I did the following:
I downloaded the file you told me to, then

dpkg --extract libxft2_2.1.12-1_i386.deb /tmp

 sudo mkdir -p /opt/medusa4_pers_v3_0/lib

 sudo cp /tmp/usr/lib/libXft.so.2* /opt/medusa4_pers_v3_0/lib

 LD_LIBRARY_PATH=/opt/medusa4_pers_v3_0/lib
/opt/medusa4_pers_v3_0/master_project/startmedusa

at this pint the program gives me the following message:

tapia@tapia-laptop:~/Escritorio$ LD_LIBRARY_PATH=/opt/medusa4_pers_v3_0/lib
/opt/medusa4_pers_v3_0/master_project/startmedusa
              CONFIDENTIAL AND PROPRIETARY

COPYRIGHT (c) 2002 ff CAD Schroer GmbH, (unpublished) - All Rights Reserved.

This software has been provided pursuant to a software license agreement
containing restrictions on its use. The software contains valuable trade
secrets and proprietary information of CAD Schroer GmbH (CSG)
and is protected by international copyright law.
It may not be copied or distributed in any form or medium, disclosed to
third parties, or used in any manner not provided for in the software
licenses
agreement except with written prior approval from CSG.

Registered Trademarks of CAD Schroer GmbH
MEDUSA, STHENO

Trademarks of CAD Schroer GmbH
MEDEA, STHENO/PRO

Third-Party Products and Trademarks

All other brand or product names are trademarks or registered trademarks of
their respective holders.

UNAUTHORIZED USE OF SOFTWARE OR ITS DOCUMENTATION CAN RESULT IN
CIVIL DAMAGES AND CRIMINAL PROSECUTION.

CAD Schroer GmbH, Fritz-Peters-Str. 26-30, 47447 Moers, Germany

October 2007

mx: bind failed
mx: no escape route
mx: panic shutdown invoked

Any idea of what the problem might be. By the way, i'm using ubuntu 8.04.
Thank you again for helping me!

Greetings from Chile!!
    Cristóbal Tapia Camú

On Mon, Apr 14, 2008 at 5:11 PM, Treviño (Marco Trevisan) <email address hidden>
wrote:

> Download libxft deb from http://packages.ubuntu.com/feisty/libxft2
> Do:
> dpkg --extract libxft2_2.1.12-1_i386.deb /tmp
> sudo mkdir -p /your/program/path/lib
> sudo cp /tmp/usr/lib/libXft.so.2* /your/program/path/lib
> LD_LIBRARY_PATH=/your/program/path/lib my-program
>
> --
> [gutsy] libXft library - undefined symbol FT_Library_SetLcdFilter
> https://bugs.launchpad.net/bugs/145244
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I don't know that, maybe you should install the "host" package, but I'm not sure about this... BTW we're really OT now :P

Revision history for this message
Cristobal Tapia (crtapia) wrote :
  • unnamed Edit (973 bytes, text/html; charset=ISO-8859-1)

*LOL* xD... Well, I think this kind of things happens when you use a beta
release of a OS xD... Thank you a lot anyway
! ;)

On Tue, Apr 15, 2008 at 8:51 AM, Treviño (Marco Trevisan) <email address hidden>
wrote:

> I don't know that, maybe you should install the "host" package, but I'm
> not sure about this... BTW we're really OT now :P
>
> --
> [gutsy] libXft library - undefined symbol FT_Library_SetLcdFilter
> https://bugs.launchpad.net/bugs/145244
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Google1 (noreply888-compdigitec) wrote :

Trying to run ubuntu-tweak even with Feisty libXft:

I copied Feisty libXft libs to /usr/flib/

$ LD_LIBRARY_PATH=/usr/flib ubuntu-tweak
Traceback (most recent call last):
  File "./ubuntu-tweak.py", line 22, in <module>
    import gtk
  File "/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py", line 48, in <module>
    from gtk import _gtk
ImportError: /usr/custom/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter

Revision history for this message
David K. (dcrabs) wrote :

I don't know if it still helps someone. Here on Hardy amd64 I can start Medusa4 like this:
$ LD_LIBRARY_PATH=/usr/lib32/ ./startmedusa

Revision history for this message
Nate Nuzum (natenewz) wrote :

same problem running medusa4, but is this a good workaround? it seems like this sort of thing might cause dependency problems in the future. I'm running Hardy

Revision history for this message
Nate Nuzum (natenewz) wrote :

Tried the workaround, and got the same error as Christobal,
CIVIL DAMAGES AND CRIMINAL PROSECUTION.

CAD Schroer GmbH, Fritz-Peters-Str. 26-30, 47447 Moers, Germany

October 2007

mx: bind failed
mx: no escape route
mx: panic shutdown invoked

Revision history for this message
shootfr0mthehip (damron) wrote :

 LD_LIBRARY_PATH=/usr/lib/ /opt/medusa4_pers_v3_0/master_project/startmedusa

Starts medusa in hardy, after following Trevino's instructions.

Revision history for this message
shootfr0mthehip (damron) wrote :

could probably start other programs, just change the second part to whatever program you like.

Revision history for this message
heggy (slavasav) wrote :

I also installed libXft from feisty and everything works correctly except for the synaptic and updater - they report a broken packet (libxft) and suggest upgrading it to the latest version (with the bug).
Any advice on how to fix this?

Revision history for this message
TJ (tj) wrote :

I've just dealt with a user reporting this problem in Hardy i386. As soon as gdm tried to start gdmgreeter the log-in screen went 'mad' in his words. I connected remotely via ssh and stopped the gdm process. libcairo was reporting symbol_not_found for FT_Library_SetLcdFilter.

ldd /usr/lib/libcairo.so.2

revealed that it was linked against /usr/local/lib/libfreetype.so.6

I discovered that recently the user had been trying to build an application of some sort, which had included libfreetype2. When it had been built it had installed to /usr/local/lib/ and then ldconfig had regenerated the dynamic module cache and it took preference to the system-installed version in /usr/lib/.

The version in /usr/local/lib/ was much older than the version in /usr/lib/ and didn't include the FT_Library_SetLcdFilter() function.

The fix was to remove the libfreetype libraries and sym-links from /usr/local/lib/ and to regenerate the linker cache using:

sudo ldconfig

Revision history for this message
Damian bikiel (dbikiel) wrote :

I couldn't launch applications from the terminal. The Xft messages appeared (kpdf, oowriter, etc). Using the libXft from feisty resolved my problems.

Revision history for this message
Damian bikiel (dbikiel) wrote :

... but generated others. Now I've had some problems with the whole Xwindow. I reinstalled the Hardy library.

Revision history for this message
Damian bikiel (dbikiel) wrote :

I finally resolved the problem. I have also had another libXft and libfreetype in my /usr/local. Eliminating the library of the application from my path solved all my conflicts with the remaining applications.
Using the recommendation of treviño I performed an alias to my non-ubuntu-application, using its library. And now everything it's working.

Revision history for this message
raghaven-kumar (raghaven-kumar) wrote :

The following solution worked great for me
Thanks TJ !!

I was using gutsy 7.10.
After a python update, the gdm didnt go past login screen.
gdm kept restarting denying me access to Ctrl+Alt+F2 screens

I was on the issue for whole day, when atlast i found that
python is giving errors when importing gtk
with undefined symbol FT_Library_SetLcdFilter

Thanks Again TJ.

>
>I've just dealt with a user reporting this problem in Hardy i386. As soon as gdm tried to start gdmgreeter the log-in >screen went 'mad' in his words. I connected remotely via ssh and stopped the gdm process. libcairo was reporting >symbol_not_found for FT_Library_SetLcdFilter.
>
>ldd /usr/lib/libcairo.so.2
>
>revealed that it was linked against /usr/local/lib/libfreetype.so.6
>
>I discovered that recently the user had been trying to build an application of some sort, which had included libfreetype2. >When it had been built it had installed to /usr/local/lib/ and then ldconfig had regenerated the dynamic module cache >and it took preference to the system-installed version in /usr/lib/.
>
>The version in /usr/local/lib/ was much older than the version in /usr/lib/ and didn't include the FT_Library_SetLcdFilter() >function.
>
>The fix was to remove the libfreetype libraries and sym-links from /usr/local/lib/ and to regenerate the linker cache using:
>
>sudo ldconfig
>

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 RC or later?

Changed in xft:
status: New → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xft:
status: Incomplete → Invalid
Changed in xft (Ubuntu):
status: Invalid → Fix Committed
C de-Avillez (hggdh2)
Changed in xft (Ubuntu):
status: Fix Committed → Invalid
Revision history for this message
Mihai Adrian (mihaiadriangl) wrote :

The problems came to me because I installed libfreetype using ./configure, make, sudo make install. To corrent this, type sudo make uninstall in the directory where libfreetype is installed, then reinstall libreetype from ubuntu repository using sudo apt-get install --reinstall libfreetype6

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.