You are not logged in.

#1 2010-07-27 05:47:43

luscinius
Member
Registered: 2008-12-25
Posts: 13

ubuntu patched font libraries and python GUI breakage

Hi
Sorry if this post should go to a different section.
I use ubuntu patched font llibraries: cairo, libXft, freetype and fontconfig
Below is the output of pacman -Qm:

bin32-skype 2.1.0.81-6
bioperl 1.6.1-1
blast 2.2.23-1
blast+-bin 2.2.23-1
cairo-ubuntu 1.8.10-4
editra 0.5.72-1
emboss 6.2.0-2
flashplugin 10.0.45.2-1
fontconfig-ubuntu 2.8.0-1
freetype2-ubuntu 2.4.1-1
libjpeg6 6b-9
libxft-ubuntu 2.1.14-3
muscle 3.70-1
opera 10.11-1
oxygenrefit2-icon-theme 2.4.0-4
perl-data-stag 0.11-1
spyder 1.1.3-1
ttf-droid 20100513-3
ttf-droid-monovar 1.0-1
viennarna 1.8.4-1

After the upgrades to the ubuntu patched font packages there is a breakage in some python using packages, like spyder, Editra and fusion-icon.
Say when I try to start Editra I get the following error:

Traceback (most recent call last):
  File "/usr/bin/Editra", line 79, in <module>
    main()
  File "/usr/bin/Editra", line 74, in main
    import Editra
  File "/usr/lib/python2.6/site-packages/Editra/src/Editra.py", line 39, in <module>
    import wx
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 4, in <module>
    import _core_
ImportError: /usr/lib/libfreetype.so.6: undefined symbol: einflateEnd

Similar complaint shows up when starting fusion-icon

* Using the GTK Interface
* /usr/lib/libfreetype.so.6: undefined symbol: einflateEnd
... Trying another interface
* Using the Qt4 Interface
* /usr/lib/libfreetype.so.6: undefined symbol: einflateEnd

or spyder.
Naively i would think I need to rebuild wxpython and pyqt4 (maybe pygtk), but here I fail.
Say rebuilding wxpython

yaourt -Sb wxpython

fails:

...
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.                           

Aborting...
==> ERROR: Makepkg was unable to build wxpython.

I would appreciate any help from people using ubuntu patched packages and python.

Offline

#2 2010-07-27 06:15:46

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: ubuntu patched font libraries and python GUI breakage

Do you have pkg-config and gtk installed? Both from the repos?

And when there are compiling issues with yaourt, always verify it by doing it directly with makepkg, because sometimes it's yaourt who screws things up!

Offline

#3 2010-07-27 06:25:59

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: ubuntu patched font libraries and python GUI breakage

you didn't built them in the right order and freetype2 is busted

/usr/lib/libfreetype.so.6: undefined symbol: einflateEnd

Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2010-07-29 01:03:04

luscinius
Member
Registered: 2008-12-25
Posts: 13

Re: ubuntu patched font libraries and python GUI breakage

Thank you for the suggestions.
I have both pkg-config and gtk2 from the repositories.
I tried removing and reinstalling freetype2, fontconfig, libxft and cairo (dependencies in PKGBUILD and ArchWiki specify that freetype is to be built first --- then it should not be screwed up by the upgrade). Now fontconfig-ubuntu no longer builds (I used makepkg and PKGBUILDs from AUR), so I installed the cleartype packages, and the problem is the same.
The GUI problems show themselves only in Python bindings, not gtk/qt or wxgtk (codeblocks runs fine).
Maybe the problem is that I need to set some environment variable before building the package, or that there are some incompatibilities with gcc-4.5. Does anybody experience the same problem?
Here is my makepkg.conf:

DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
MAKEFLAGS="-j3"
BUILDENV=(fakeroot !distcc color !ccache)
OPTIONS=(strip docs libtool emptydirs zipman purge)
INTEGRITY_CHECK=(md5)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'

Offline

Board footer

Powered by FluxBB