Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133418 - Konqueror complains about missing libthai library
Summary: Konqueror complains about missing libthai library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-15 14:39 UTC by César Fernández
Modified: 2007-06-03 15:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description César Fernández 2006-05-15 14:39:47 UTC
When konqueror renders a site that contains thai fonts, it tries to dinamically load libthai, which is not installed mainly because it is not in portage and I don't speak thai.

Examples are searching for thai or libthai in google or the main wikipedia.org portal.

The error messages:

Try to load libthai dynamically...
Error, can't load libthai...
KCrash: Application 'konqueror' crashing...
KCrash cannot reach kdeinit, launching directly.

Using konqueror 3.5.2 and kdelibs-3.5.2-r5

My emerge --info:

Portage 2.1_rc1-r2 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.12.0_pre19
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -ffast-math -funroll-loops -O2 -ftracer -fno-ident -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -ffast-math -funroll-loops -O2 -ftracer -fno-ident -fomit-frame-pointer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s -Wl,--as-needed"
LINGUAS="es-ES es"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowext 7zip S3TC X a52 aac aalib acpi alsa amr aotuv asf bash-completion berkdb bidi bluetooth bzip2 cairo canvas cdda cddb cdparanoia chroot cjk cli clock-screen crypt cscope css cups curl daap dbus dlloader dri dts dvd dvdr dvdread ecc edl eds erandom exif faac faad fam fbcon ffmpeg flac font-server fontconfig foomaticdb foreign-sysvinit freetype gdbm gif gimpprint glibc-omitfp glitz gmp gnutls gphoto2 gpm graphviz gs gtk2 hal hardened hpn icecast iconv idn imagemagick imlib imlib2 immqt-bc ipv6 isdnlog ithreads jabber java javascript jbig jce jikes jpeg jpeg2k justify kde kdeenablefinal kipi lcms libcaca libg++ libwww linguas_es live lm_sensors logitech-mouse logrotate lzo lzw-tiff mad matroska md5sum mikmod mmap mmx mmxext mng mod modplug monkey mouse moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg mpeg4 mpi mplayer msn multiuser musepack musicbrainz mysql mysqli mzscheme ncurses network nls no-old-linux no_wxgtk1 nomac nomalloccheck nomotif nptl nptlonly nsplugin ogg oggvorbis openexr opengl pam pccts pcre pdflib perl physfs pic png ppds pppd python qt quicktime rdesktop readline real reflection rtc rtsp ruby sasl screen session sftplogging shorten slp smime speex spell spl srvdir sse ssl stencil-buffer svg symlink syslog tcpd tga theora threads tiff toolbar truetype truetype-fonts udev unicode urandom usb userlocales utf8 vcd vhosts vim-with-x visualization vorbis vorbis-psy win32codecs wmf x264 xcomposite xine xml xorg xpm xrandr xscreensaver xv xvid zeroconf zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_es-ES userland_GNU video_cards_fbdev video_cards_vesa video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-05-16 13:25:53 UTC
Seems to be a known issue:

http://lists.kde.org/?l=kfm-devel&m=108391810608721&w=2

You may want to file a bug at bugs.kde.org so they get it fixed proper.
Comment 2 Andreas Thalhammer 2006-06-09 22:53:55 UTC
(In reply to comment #1)
> Seems to be a known issue:
> 
> http://lists.kde.org/?l=kfm-devel&m=108391810608721&w=2

The libthai problem from this link is outdated (May 2004), so it seems to be a new issue.

> You may want to file a bug at bugs.kde.org so they get it fixed proper.

This might be a good idea.
And well, yes, I've got the same problem with konqueror and it is damn annoying to see it chrashing all the time when I (don't) see certain pages (wikipedia).
Comment 3 Alexander Wagner 2006-06-21 08:20:21 UTC
This bug is registered at kde.org here: http://bugs.kde.org/show_bug.cgi?id=119076
The KDE guys say it's a duplicate of http://bugs.kde.org/show_bug.cgi?id=119108
which is not a KDE bug but a compatibility-problem between certain versions/patches of qt and fontconfig, indicating it might be solved by newer versions of fontconfig (not available in the portage tree right now) or by patching fontconfig.
Maybe this is related too: http://bugs.kde.org/show_bug.cgi?id=116176

Looks like a genuine distribution problem to me, I problably caught it myself because I always make deep world updates, thereby getting the problematic version of qt.
Comment 4 Alexander Wagner 2006-06-21 09:51:21 UTC
PS: I experience the crashes in KDE 3.5.3 using qt-3.3.6-r1 with both fontconfig-2.2.3 (latest stable) and fontconfig-2.3.2-r1 (latest available in portage tree).

Hacking the qt-3.3.6-r1.ebuild to ./configure with -no-xft (and therefore without fontconfig) fixes the crashes for me, but also disables Xft-related features.
Comment 5 Andreas Thalhammer 2006-09-23 04:40:36 UTC
Hi!

Good news: problem is gone for me. I reemerged both stable qt versions (qt3: 3.3.6-r1, qt4: 4.1.4) all kde-base/* (kde: 3.5.2) packages with the recent versions of gcc and the new portage, where USE=hardened is masked for gcc (so it is vanilla, not hardened). I also upgraded my profile to default-linux/x86/2006.1/desktop.

Konqueror now opens every wikipedia page I tried and which crashed before.

Fixed?
Comment 6 Alexander Wagner 2006-09-23 05:30:18 UTC
Fixed for me too, running default-linux/x86/2006.0 with hardened gcc, no hacked ebuilds necessary.

Related version numbers:
kde-3.5.4
qt-3.3.6-r1
fontconfig-2.3.2-r1
Comment 7 César Fernández 2006-09-23 05:43:48 UTC
Fixed for me too:

../x86/2006.1/desktop
kde-3.5.4-r2
qt-3.3.6-r2
fontconfig-2.4.1

Bugs
http://bugs.kde.org/show_bug.cgi?id=119076
http://bugs.kde.org/show_bug.cgi?id=119108
http://bugs.kde.org/show_bug.cgi?id=116176

Are also marked as resolved.
Comment 8 Jan Kundrát (RETIRED) gentoo-dev 2006-12-17 08:42:22 UTC
So, it keeps crashing for me:

velbloud ~ # emerge --info
Portage 2.1.1-r2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-suspend2 i686)
=================================================================
System uname: 2.6.18-suspend2 i686 Genuine Intel(R) CPU           T2400  @ 1.83GHz
Gentoo Base System version 1.12.6
Last Sync: Tue, 12 Dec 2006 15:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.sh.cvut.cz/MIRRORS/gentoo"
LINGUAS="en cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa alsa_cards_hda-intel bash-completion berkdb bzip2 cdparanoia crypt cscope css cups curl dbus dlloader dri dvd dvdr dvdread elibc_glibc encode fam fbsplash ffmpeg flac gif hal hardened hdaps ieee1394 imlib input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 java jpeg kde kdeenablefinal kernel_linux linguas_cs linguas_en logrotate mmx mp3 ncurses nls nptl nptlonly nsplugin ogg opengl pam pdf pic png ppds python qt3 readline samba smp spell sse sse2 sse3 ssl tga theora tiff truetype unicode usb userland_GNU userlocales vcd video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa vim vorbis wifi x86 xine xinerama xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
velbloud ~ # emerge -pv kdelibs fontconfig =qt-3*

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] kde-base/kdelibs-3.5.5-r5  USE="alsa cups fam kdeenablefinal spell ssl tiff xinerama -acl -arts -debug* -doc -jpeg2k -kdehiddenvisibility -kerberos -legacyssl -lua -openexr -utempter -zeroconf" LINGUAS="-he" 0 kB
[ebuild   R   ] media-libs/fontconfig-2.4.2  USE="-doc -xml" 0 kB
[ebuild   R   ] x11-libs/qt-3.3.6-r4  USE="cups gif ipv6 opengl xinerama -debug -doc -examples -firebird -immqt -immqt-bc -mysql -nas -nis -odbc -postgres -sqlite" 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage

The only difference between the QT version in the tree and in my overlay is a fix for bug #133301 (broken kdesktop_lock): `epatch ${FILESDIR}/qt-3.3.6-hardened-kdesktop_lock.patch`.

Same happened with media-libs/fontconfig-2.3.2-r1, so I upgraded and restarted my X session.

Is there at least some suggested workaround?
Comment 9 Wulf Krueger (RETIRED) gentoo-dev 2007-05-02 05:37:05 UTC
Jan, does it still crash for you? I can't reproduce this anymore.
Comment 10 Jan Kundrát (RETIRED) gentoo-dev 2007-05-02 20:11:03 UTC
(In reply to comment #9)
> Jan, does it still crash for you? I can't reproduce this anymore.

Last time I checked that (a month ago), it did.

Since that I've got bored by regular Konqueror crashes, so I've rebuilt Qt with non-hardened GCC and at least it doesn't crash anymore. I've no idea if it's a hardened problem or if the hardened patches just happen to uncover some real problem...

Considering that mkenedy(?) is about to make a huge hardened update "really soon (tm)", I don't think there's much point in fixing that.

Anyway, it's still trying to load libthai. Try to launch konqueror form terminal to see stderr and go to http://wikipedia.org/ (*not* the English one) and you'll get this:

Try to load libthai dynamically...
Error, can't load libthai...
Comment 11 Wulf Krueger (RETIRED) gentoo-dev 2007-06-03 15:04:23 UTC
Yes, I can reproduce the attempt to load it but Konqueror doesn't crash anymore. Upstream considers this resolved and, unless further information turns up, so do I. 

If hardened has a solution, please feel free to re-open.