I get similar errors running many gtk programs that cause them not to start. These are some examples from running in konsole: [11:54:26][tty1][joe@Athena joe]$ gaim [11:55:03][tty1][joe@Athena joe]$ xchat-2 ** (xchat-2:15715): WARNING **: Cannot open font file for font Bitstream Vera Sans Mono 10 ** (xchat-2:15715): WARNING **: Cannot open fallback font, nothing to do [11:55:14][tty1][joe@Athena joe]$ gtk-gnutella 04/04/11 12:03:57 (WARNING): Detected amount of physical RAM: 188464 KB 04/04/11 12:03:57 (WARNING): can't read file "/home/joe/.gtk-gnutella/config_gnet": No such file or directory 04/04/11 12:03:57 (WARNING): [hosts] unable to retrieve: no alternate locations known 04/04/11 12:03:57 (WARNING): [hosts] unable to retrieve: no alternate locations known 04/04/11 12:03:57 (WARNING): [web cache URLs] trying to load from alternate locations... 04/04/11 12:03:57 (WARNING): [web cache URLs] retrieving from "/usr/share/gtk-gnutella/gwcache.boot" instead 04/04/11 12:03:57 (WARNING): can't read file "/home/joe/.gtk-gnutella/sha1_cache": No such file or directory 04/04/11 12:03:57 (WARNING): [download mesh] unable to retrieve: no alternate locations known 04/04/11 12:03:57 (WARNING): [banned mesh] unable to retrieve: no alternate locations known 04/04/11 12:03:57 (WARNING): [whitelist] unable to retrieve: no alternate locations known 04/04/11 12:03:57 (WARNING): [hostile IP addresses] trying to load from alternate locations... 04/04/11 12:03:57 (WARNING): [hostile IP addresses] retrieving from "/usr/share/gtk-gnutella/hostiles.txt" instead 04/04/11 12:03:57 (WARNING): [PARQ upload queue data] unable to retrieve: no alternate locations known 04/04/11 12:03:57 (WARNING): can't read file "/home/joe/.gtk-gnutella/config_gui": No such file or directory 04/04/11 12:03:58 (WARNING): Cannot open font file for font Bitstream Vera Sans 10 04/04/11 12:03:58 (WARNING): Cannot open fallback font, nothing to do 04/04/11 12:03:58 (WARNING): adns_do_transfer: EOF (read) [12:03:58][tty1][joe@Athena joe]$ gcalc bash: gcalc: command not found [12:04:24][tty1][joe@Athena joe]$ gcalctool ** (gcalctool:16056): WARNING **: Cannot open font file for font Bitstream Vera Sans 10 ** (gcalctool:16056): WARNING **: Cannot open fallback font, nothing to do [12:04:34][tty1][joe@Athena joe]$ firefox LoadPlugin: failed to initialize shared library /usr/lib/nsbrowser/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so [/usr/lib/nsbrowser/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so: undefined symbol: __vt_17nsGetServiceByCID] [12:05:11][tty1][joe@Athena joe]$ gdmflexiserver ** (gdmflexiserver:16321): WARNING **: Cannot open font file for font Bitstream Vera Sans 10 ** (gdmflexiserver:16321): WARNING **: Cannot open fallback font, nothing to do [12:06:27][tty1][joe@Athena joe]$ none of these programs started. gaim, xchat and gcalctool will run as root with no errors, gtk-gnutella will show a few warnings however it will still run as root. firefox still shows that error about loading the plugin, but it still runs as root. I have yet to try to run gdmflexiserver as root. All these make me think its a permission error. The only except on my system that I can find is that gimp *will* run as a regular user with no problems. Around the time this broke, although i did not see the connection at first, I believe glib was upgraded from 2.2.3 to 2.4.0, pango from 1.2.5-r1 to 1.4.0, atk from 1.4.1 to 1.6.0, and gtk+ from 2.2.4-r1 to 2.4.0 Reproducible: Sometimes Steps to Reproduce: 1.running any gtk program other then the gimp 2. 3. Actual Results: It usually outputs something like this: * (xchat-2:16640): WARNING **: Cannot open font file for font Bitstream Vera Sans Mono 10 ** (xchat-2:16640): WARNING **: Cannot open fallback font, nothing to do Expected Results: It should actually be able to run the program [12:13:56][tty1][joe@Athena joe]$ emerge info Portage 2.0.50-r3 (hardened-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5-love3) ================================================================= System uname: 2.6.5-love3 i686 Celeron (Coppermine) Gentoo Base System version 1.4.6 distcc[16671] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc: Permission denied [disabled] ccache version 2.3 [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -mfpmath=sse,387 -msse -mmmx -O3 -pipe -fomit-frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -mfpmath=sse,387 -msse -mmmx -O3 -pipe -fomit-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs loadpolicy sandbox sfperms strict userpriv" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X aalib aavm alsa apache2 arts autofs berkdb bonobo cdr cgi clisp crypt curl dga directfb distribution dnd doc dvd emacs escreen esd etwin evo ext-png ext-zlib faad fbcon firebird flash gb gcl gd gd-external gdbm gif ginac glut gmttria gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile i8x0 imap imlib imlib2 java javascript jikes jpeg junit kde ladcca lcms ldap leim libdsk libgda libwww lufsusermount mdb mmx mozaccess mozcalendar mozinterfaceinfo moznocompose moznomail mozp3p mozsvg mozxmlterm mpeg msn mysql nas nls nocd nptl oav odbc offensive oggvorbis opengl oss pam perl php pic postgres ppds python qt readline regexp rplay samba sdl slang sse ssl stroke svga tcltk tcpd tetex tiff truetype unicode usb videos vim-with-x wmf wxwin wxwindows x86 xchattext xface xml xml2 xmms xosd zlib"
Created attachment 29082 [details] my /etc/XF86Config file
Try uncommenting the line # Load "freetype"
still doens't work like that.........like i said, this is a gtk problem, kde apps and fluxbox still work, so I dont think it has to do with an xfree-specific config also, when i said /etc/XF86Config, i meant /etc/X11/XF86Configs, also, i deleted every .file in my ~ including the font caches and .gtkrc and it still does not work, and ive even copy-ed my /root/.gtkrc file (dont ask me how the hell it got there) to my ~joe with no noticable change
run "fc-cache -v -f" and see. it seems your fontconfig setup is broken, you can also check /etc/fonts for the contents. other tips is to re-emerge fontconfig. If you are using xorg-x11 its likely that you missed to restore the font paths to point at /usr/share/fonts instead of /usr/X11R6/...
nope, using xfree86, runing fc-cache as root didn't help any, neither did re-emerging fontconfig :( my /etc/fonts has fonts.conf, fonts.dtd, and local.conf, not exactly sure what could break it
The report provide the reason and resolution.. http://lists.debian.org/debian-gtk-gnome/2004/debian-gtk-gnome-200404/msg00011.html BTW, is it a bug?
not really.. in theory you shouldnt have the no-good libxft on your system. If it is you should find out where it comes from and then we maybe have something to work with.
:( doens't seem to apply, thanks for your help though [09:53:25][tty1][joe@Athena joe]$ ldd `find /usr/lib/ -maxdepth 1|grep -i libgtk`|grep -i xft libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40449000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x408dd000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40449000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x408dd000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x404b1000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40742000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x404b1000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40742000) ldd: warning: you do not have execution permission for `/usr/lib/libgtk-x11-2.0.la' libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40413000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4074c000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40413000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4074c000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40413000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4074c000) ldd: warning: you do not have execution permission for `/usr/lib/libgtkspell.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtk.a' libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x4041a000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40d0e000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x4041a000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40d0e000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x4041a000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40d0e000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40449000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x408dd000) ldd: warning: you do not have execution permission for `/usr/lib/libgtkhtml-2.a' libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40413000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40835000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40413000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40835000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40413000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40835000) ldd: warning: you do not have execution permission for `/usr/lib/libgtkgl-2.0.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtkxmhtml.a' libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40e78000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x413f3000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40e78000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x413f3000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40e78000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x413f3000) ldd: warning: you do not have execution permission for `/usr/lib/libgtkhtml-3.0.a' libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x403f9000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4080e000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x403f9000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4080e000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40610000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40a25000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40610000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40a25000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x404b1000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40742000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40d78000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x41221000) ldd: warning: you do not have execution permission for `/usr/lib/libgtksharpglue.a' libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x403f9000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4080e000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40610000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40a25000) [09:53:29][tty1][joe@Athena joe]$ ldd `find /usr/lib/ -maxdepth 1|grep -i libgtk`|grep XftConfig ldd: warning: you do not have execution permission for `/usr/lib/libgtk-x11-2.0.la' ldd: warning: you do not have execution permission for `/usr/lib/libgtkspell.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtk.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtkhtml-2.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtkgl-2.0.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtkxmhtml.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtkhtml-3.0.a' ldd: warning: you do not have execution permission for `/usr/lib/libgtksharpglue.a' [10:02:30][tty1][joe@Athena joe]$ ldd /usr/lib/libgtk-x11-2.0.so.0 linux-gate.so.1 => (0xffffe000) libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x40341000) libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40358000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x403d1000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x404b1000) libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x404b7000) libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x404c3000) libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x404f9000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40513000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4054c000) libdl.so.2 => /lib/libdl.so.2 (0x40550000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40554000) libm.so.6 => /lib/libm.so.6 (0x405d3000) libc.so.6 => /lib/libc.so.6 (0x405f5000) libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x40725000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40729000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40731000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40742000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40756000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x407c8000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x407d0000) libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0x407fb000) libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x40806000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4082d000) libz.so.1 => /lib/libz.so.1 (0x40853000) [10:04:27][tty1][joe@Athena joe]$ doesn't look like any problems............anyone got any other things to try? libxft doens't exist btw, and xft is not installed and installing it is blocked by xfree (another question, would installing x11-org possibly help?) why me?
you should actually check if you have more than 1 libXft on your system, it's a dynamic linker after all. Output might be giving the wrong picture. All should be good, recompiling xfree means recompiling xft and it might help, but if you have interfering libs you probably run into the same problems.
how about `strings /usr/X11R6/lib/libXft.so.2` (XftConfig is the old config file for libXft in the old days) which pkg of /usr/X11R6/lib/libXft.so.2 belongs to.. may be you can test it easily, just the grab the latest freetype + fontconfig + xft library and install in somewhere. Using the LD_LIBRARY_PATH and like to test it... also note, when trying to pin down this problems, I also discover that, similar problems happens on gnome's garnome-list twice, but nobody solve this yet!!
I backed up /etc/X11 and /etc/fonts and installed xorg-x11 and reinstalled fontconfig, xorg-x11 is actually working as good as b4 (the clock in fluxbox is a differant font but thats trivial) still didn't fix my problem though, so i guess its not a config option. [06:23:45][tty1][joe@Athena joe]$ ls /usr/X11R6/lib/libXft.* /usr/X11R6/lib/libXft.a /usr/X11R6/lib/libXft.so.1.1 /usr/X11R6/lib/libXft.so /usr/X11R6/lib/libXft.so.2 /usr/X11R6/lib/libXft.so.1 /usr/X11R6/lib/libXft.so.2.1.2 ok, so there is 2 versions of libXft installed [06:25:22][tty1][joe@Athena joe]$ equery belongs /usr/X11R6/lib/libXft Searching for file '/usr/X11R6/lib/libXft' in *... x11-base/xorg-x11-6.7.0 (/usr/X11R6/lib/libXft.so -> libXft.so.2.1.2) x11-base/xorg-x11-6.7.0 (/usr/X11R6/lib/libXft.so.2.1.2) x11-base/xorg-x11-6.7.0 (/usr/X11R6/lib/libXft.a) x11-base/xorg-x11-6.7.0 (/usr/X11R6/lib/libXft.so.2 -> libXft.so.2.1.2) x11-base/xorg-x11-6.7.0 (/usr/X11R6/lib/libXft.so.1 -> libXft.so.1.1) x11-base/xorg-x11-6.7.0 (/usr/X11R6/lib/libXft.so.1.1) so recompiling x wouldn't help any as it would install the same files again :( [06:30:12][tty1][joe@Athena joe]$ strings /usr/X11R6/lib/libXft.so*|grep -i xftconfig _XftConfigInitialized XftConfigSubstitute XftConfigDirs _XftConfigInitialized XftFontMatch after XftConfig substitutions XftConfigSubstitute XftConfigDirs _XftConfigInitialized XftFontMatch after XftConfig substitutions _XftConfigInitialized _XftConfigInitialized is that a bad thing or what? zariack, can you tell me want you meant by installing those somewhere and testing em? about the garnome thing, i guess thats what people get with new (or ~arch) stuff :P
I forgot to mention, since I installed xorg-x11, theres no /etc/X11/XftConfig, and i deleted te symlink to it somewhere in /usr/X11/
wow, i just did alt-crl-F1 (where i ran startx &), and saw "couldn't open fontconfigs chosen font with Xft!!!" i got konqueror, eterm, and xchat-2 as root (i no, thats stupid, but its better then ksirc), and I guess this might be part of the problem (dont no though) its filling up the entire screen btw perhaps i should do startx > logfile & ?
XftConfig is not relevant listing the Xft libs in /usr/X11 isn't relevant either. I need to know it is not somewhere else on your system : do a search for *libXft* or something. Those versions you have there are different releases, not a problem here.
someone here mentioned XftConfig, and that thread off debian mentioned the differant libs, thats why i included it find -mount -iname "*libXft*" found only the libs in /usr/X11R6/lib/ the only other place is probly stuff in my /mnt/c folder, just a ntfs partition though,but w/ cygwin and some libXft libaries
just found out that openbox doesn't work, so yea, this must be more then a gtk+ problem
I feel like an idiot, i figured id google somemore, and i found that this guy with a similar problem used strace to find the problem................i emerged strace...........ran `strace xchat-2`.........it complained of permissions on a file............i did a ls -al in that file's directory...........and it was all chmoded 600 :P sry for wasting anyones time with this, it feels good to be able to write this in firefox again (even though i totally deleted all my gtk configs so it looks crapy) so yea... thnx to all who tried to help me