Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359679 - Various x apps (xterm, xfontsel) don't start due to missing fonts
Summary: Various x apps (xterm, xfontsel) don't start due to missing fonts
Status: RESOLVED DUPLICATE of bug 357331
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 23:48 UTC by Shiva Persaud
Modified: 2011-07-09 12:34 UTC (History)
4 users (show)

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


Attachments
strace output for editres (strace.editres.txt,57.32 KB, text/plain)
2011-03-22 15:44 UTC, Shiva Persaud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shiva Persaud 2011-03-20 23:48:47 UTC
Hi folks,

I had some issues appear after I added "unicode" to my use flags and re-compiled relevant packages.

I noticed then when I did a ctrl-right click xterm windows would close. I started an xterm from an xterm and ctrl-right clicked on the new xterm and saw the following error message:


<begin>
~(245)$ xterm
Warning: Cannot convert string "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Error: Aborting: no font found
<end>

I see the following with trying to launch xfontsel:


<begin>
$ xfontsel
Warning: Unable to load any usable ISO8859 font
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Error: Aborting: no font found
</end>

I've searched around and tried every solution I've found:


1. Ensured that media-fonts/font-misc-misc is installed.
2. Ensured that the FontPath is set is /etc/X11/xorg.conf (snippet below)
3. Done an emerge -eDv world



xlsfonts does not list the Adobe font in the xterm messages:


<begin>
# xlsfonts | grep -i *adobe*iso8859*
#
<end>

Note that there are other iso8859 fonts:

<begin>
# xlsfonts | grep -i iso8859* | head -n 10
-adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1
-adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1
-adobe-utopia-bold-r-normal--0-0-0-0-p-0-iso8859-1
-adobe-utopia-bold-r-normal--0-0-0-0-p-0-iso8859-1
-adobe-utopia-medium-i-normal--0-0-0-0-p-0-iso8859-1
-adobe-utopia-medium-i-normal--0-0-0-0-p-0-iso8859-1
-adobe-utopia-medium-r-normal--0-0-0-0-p-0-iso8859-1
-adobe-utopia-medium-r-normal--0-0-0-0-p-0-iso8859-1
-b&h-luxi mono-bold-o-normal--0-0-0-0-m-0-iso8859-1
-b&h-luxi mono-bold-o-normal--0-0-0-0-m-0-iso8859-1
</end>

In case it's useful, I'm listing the following:

From /etc/X11/xorg.conf:


<begin>
Section "Files"
        FontPath "/usr/share/fonts/misc:unscaled"
        FontPath "/usr/share/fonts/75dp:unscaledi"
        FontPath "/usr/share/fonts/100dpi:unscaled"
        FontPath "/usr/share/fonts/corefonts/"
        FontPath "/usr/share/fonts/Speedo/"
        FontPath "/usr/share/fonts/stix-fonts/"
        FontPath "/usr/share/fonts/cyrillic/"
        FontPath "/usr/share/fonts/unifont/"
        FontPath "/usr/share/fonts/OTF/"
        FontPath "/usr/share/fonts/terminus/"
        FontPath "/usr/share/fonts/inconsolata/"
        FontPath "/usr/share/fonts/texcm-ttf/"
        FontPath "/usr/share/fonts/ttf-bitstream-vera/"
        FontPath "/usr/share/fonts/dejavu/"
        FontPath "/usr/share/fonts/TTF/"
        FontPath "/usr/share/fonts/urw-fonts/"
        FontPath "/usr/share/fonts/inconsolata-dz/"
        FontPath "/usr/share/fonts/freefonts/"
        FontPath "/usr/share/fonts/Type1/"
        #RgbPath         "/usr/lib/X11/rgb"
EndSection
</end>


<begin>
$ locale -a
C
en_US
en_US.iso88591
en_US.utf8
POSIX

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

$ xset q fp
...
...
Font Path:
  /usr/share/fonts/misc:unscaled,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/corefonts/,/usr/share/fonts/Speedo/,/usr/share/fonts/stix-fonts/,/usr/share/fonts/cyrillic/,/usr/share/fonts/unifont/,/usr/share/fonts/OTF/,/usr/share/fonts/terminus/,/usr/share/fonts/inconsolata/,/usr/share/fonts/texcm-ttf/,/usr/share/fonts/ttf-bitstream-vera/,/usr/share/fonts/dejavu/,/usr/share/fonts/TTF/,/usr/share/fonts/urw-fonts/,/usr/share/fonts/inconsolata-dz/,/usr/share/fonts/freefonts/,/usr/share/fonts/Type1/,/usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,built-ins,/home/bob/.fonts
...
...
Font cache:
  Server does not have the FontCache Extension
<end>

My best guess is that because my system's locale was en_US.utf8, the needed iso8859 fonts were not installed. However, I didn't know how to fix that because, afaik, the font is there.

I found http://bugs.gentoo.org/show_bug.cgi?id=271144 and tried various suggestions based on that bug.

First, I've added "-unicode" to /etc/make.conf and rebuilt all packages which were built with the "unicode" use flag and run revdep-rebuild. That didn't help.

Second, http://bugs.gentoo.org/show_bug.cgi?id=271144#c10.addressed a similar problem by emerging giblib-1.2.4. I did not with no change.

Lastly I did an emerge -eDv world to see if any dependencies will rebuild and result in this going away (obviously this is a shot in the dark but it's fixed mysterious issues for me before).

While waiting for that to complete, I noticed that /etc/env.d/02locale contained 'export LANG="en_US.iso88591"'. I removed the leading "export " and ran env-update.

I'll restarted X when emerge the completed and had the same result.

Rebooted and had the same result.

I normally use KDE but started a twm session and saw the same behavior.

I found a similar bug @ http://bugs.gentoo.org/27992. Just mentioning that for completeness.


Reproducible: Always

Steps to Reproduce:
1. Start xterm and ctrl-right click (or left-click for that matter). 
2. Observe crash.

or:

1. Run xfontsel.
2. Observe crash.
Actual Results:  
Applications crash.


fsum:75dpi(507)# emerge --info
Portage 2.1.9.25 (default/linux/x86/10.0/desktop/kde, gcc-4.3.4, glibc-2.11.3-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 16 Mar 2011 22:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 1.3.7::<unknown repository>, 2.1.11-r3
dev-lang/python:     2.5.4-r4, 2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cscope cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fontconfig fortran gdbm gdu gif gpg gpm gtk hal iconv imap ithreads java javascript jpeg kde lcms ldap libnotify mad meanwhile mikmod mng modules mp3 mp4 mpeg mudflap mysql ncurses nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl semantic-desktop session sidebar smime spell ssl startup-notification svg sysfs tcpd tiff tk truetype type1 udev usb vim-pager vim-syntax vorbis webkit x264 x86 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa vga nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Shiva Persaud 2011-03-20 23:59:45 UTC
Thought I would mention that I don't see any relevant warnings or errors in Xorg.0.log:

# egrep "EE|WW" Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    28.440] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    28.473] (II) Loading extension MIT-SCREEN-SAVER
[    29.999] (WW) Warning, couldn't open module xtrap
[    29.999] (EE) Failed to load module "xtrap" (module does not exist, 0)
[    29.999] (WW) Warning, couldn't open module dri
[    29.999] (EE) Failed to load module "dri" (module does not exist, 0)
[    29.999] (WW) Warning, couldn't open module dri2
[    29.999] (EE) Failed to load module "dri2" (module does not exist, 0)
[    31.852] (WW) Warning, couldn't open module dri2
[    31.852] (EE) NVIDIA: Failed to load module "dri2" (module does not exist, 0)
[    33.066] (WW) Option "Protocol" requires an string value
#

And I wanted to mention that Xorg.0.log shows FontPath being set as follows:

[    28.439] (**) FontPath set to:
        /usr/share/fonts/misc/:unscaled,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/cyrillic,
        /usr/share/fonts/default,
        /usr/share/fonts/encodings,
        /usr/share/fonts/misc,
        /usr/share/fonts/ttf-bitstream-vera,
        /usr/share/fonts/Type1,
        /usr/share/fonts/util,
        /usr/share/fonts/TTF,
        /usr/share/fonts/corefonts,
        /usr/share/fonts/freefonts,
        /usr/share/fonts/inconsolata,
        /usr/share/fonts/inconsolata-dz,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Speedo,
        /usr/share/fonts/stix-fonts,
        /usr/share/fonts/terminus,
        /usr/share/fonts/texcm-ttf,
        /usr/share/fonts/unifont,
        /usr/share/fonts/urw-fonts,
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/OTF/,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi/,
        /usr/share/fonts/75dpi/
[    28.439] (==) ModulePath set to "/usr/lib/xorg/modules"
Comment 2 Shiva Persaud 2011-03-21 00:04:17 UTC
Also created a new user, logged in as that user and saw the same behavior. I did this to eliminate the possibility that something specific to my account (a config file I modified, etc) was causing this.
Comment 3 Shiva Persaud 2011-03-21 17:48:29 UTC
Thought I should also post relevant packages:

$ equery l media-fonts/
[ Searching for all packages in 'media-fonts' among: ]
 * installed packages
[I--] [  ] media-fonts/corefonts-1-r4 (0)
[I--] [  ] media-fonts/encodings-1.0.4 (0)
[I--] [  ] media-fonts/font-adobe-100dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-adobe-75dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-adobe-utopia-100dpi-1.0.4 (0)
[I--] [  ] media-fonts/font-adobe-utopia-75dpi-1.0.4 (0)
[I--] [  ] media-fonts/font-adobe-utopia-type1-1.0.4 (0)
[I--] [  ] media-fonts/font-alias-1.0.3 (0)
[I--] [  ] media-fonts/font-arabic-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-bh-100dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-bh-75dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-bh-lucidatypewriter-100dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-bh-lucidatypewriter-75dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-bh-ttf-1.0.3 (0)
[I--] [  ] media-fonts/font-bh-type1-1.0.3 (0)
[I--] [  ] media-fonts/font-bitstream-100dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-bitstream-75dpi-1.0.3 (0)
[I--] [  ] media-fonts/font-bitstream-speedo-1.0.2 (0)
[I--] [  ] media-fonts/font-bitstream-type1-1.0.3 (0)
[I--] [  ] media-fonts/font-cronyx-cyrillic-1.0.3 (0)
[I--] [  ] media-fonts/font-cursor-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-daewoo-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-dec-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-ibm-type1-1.0.3 (0)
[I--] [  ] media-fonts/font-isas-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-jis-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-micro-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-misc-cyrillic-1.0.3 (0)
[I--] [  ] media-fonts/font-misc-ethiopic-1.0.3 (0)
[I--] [  ] media-fonts/font-misc-meltho-1.0.3 (0)
[I--] [  ] media-fonts/font-misc-misc-1.1.2 (0)
[I--] [  ] media-fonts/font-mutt-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-schumacher-misc-1.1.2 (0)
[I--] [  ] media-fonts/font-screen-cyrillic-1.0.4 (0)
[I--] [  ] media-fonts/font-sony-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-sun-misc-1.0.3 (0)
[I--] [  ] media-fonts/font-util-1.2.0 (0)
[I--] [  ] media-fonts/font-winitzki-cyrillic-1.0.3 (0)
[I--] [  ] media-fonts/font-xfree86-type1-1.0.4 (0)
[I--] [  ] media-fonts/freefonts-0.10-r3 (0)
[I--] [  ] media-fonts/inconsolata-20090222 (0)
[I--] [  ] media-fonts/stix-fonts-1.0.0-r1 (0)
[I--] [  ] media-fonts/terminus-font-4.30 (0)
[I--] [  ] media-fonts/texcm-ttf-1.0 (0)
[I--] [  ] media-fonts/ttf-bitstream-vera-1.10-r3 (0)
[I--] [  ] media-fonts/unifont-1.0-r4 (0)
[I--] [  ] media-fonts/urw-fonts-2.4.9 (0)


$ equery l x11-base/
[ Searching for all packages in 'x11-base' among: ]
 * installed packages
[I--] [  ] x11-base/xorg-drivers-1.9 (0)
[I--] [  ] x11-base/xorg-server-1.9.4 (0)
[I--] [  ] x11-base/xorg-x11-7.4-r1 (0)

$ equery l x11-apps/
[ Searching for all packages in 'x11-apps' among: ]
 * installed packages
[I--] [  ] x11-apps/appres-1.0.3 (0)
[I--] [  ] x11-apps/bdftopcf-1.0.3 (0)
[I--] [  ] x11-apps/bitmap-1.0.5 (0)
[I--] [  ] x11-apps/editres-1.0.5 (0)
[I--] [  ] x11-apps/iceauth-1.0.4 (0)
[I--] [  ] x11-apps/listres-1.0.2 (0)
[I--] [  ] x11-apps/luit-1.1.0 (0)
[I--] [M ] x11-apps/mesa-progs-7.3 (0)
[I--] [  ] x11-apps/mkfontdir-1.0.6 (0)
[I--] [  ] x11-apps/mkfontscale-1.0.8 (0)
[I--] [  ] x11-apps/rgb-1.0.4 (0)
[I--] [  ] x11-apps/scripts-1.0.1 (0)
[I--] [  ] x11-apps/sessreg-1.0.6 (0)
[I--] [  ] x11-apps/setxkbmap-1.2.0 (0)
[I--] [  ] x11-apps/showfont-1.0.3 (0)
[I--] [  ] x11-apps/smproxy-1.0.4 (0)
[I--] [  ] x11-apps/x11perf-1.5.3 (0)
[I--] [  ] x11-apps/xauth-1.0.5 (0)
[I--] [  ] x11-apps/xbacklight-1.1.2 (0)
[I--] [M ] x11-apps/xclock-1.0.3-r1 (0)
[I--] [  ] x11-apps/xcmsdb-1.0.3 (0)
[I--] [  ] x11-apps/xcursorgen-1.0.4 (0)
[I--] [  ] x11-apps/xdpyinfo-1.1.0 (0)
[I--] [  ] x11-apps/xdriinfo-1.0.4 (0)
[I--] [  ] x11-apps/xev-1.1.0 (0)
[I--] [  ] x11-apps/xf86dga-1.0.3 (0)
[I--] [  ] x11-apps/xfontsel-1.0.3 (0)
[I--] [  ] x11-apps/xgamma-1.0.4 (0)
[I--] [  ] x11-apps/xhost-1.0.4 (0)
[I--] [  ] x11-apps/xinit-1.3.0-r2 (0)
[I--] [  ] x11-apps/xinput-1.5.3 (0)
[I--] [  ] x11-apps/xkbcomp-1.2.0 (0)
[I--] [  ] x11-apps/xkbevd-1.1.2 (0)
[I--] [  ] x11-apps/xkbutils-1.0.3 (0)
[I--] [  ] x11-apps/xkill-1.0.3 (0)
[I--] [  ] x11-apps/xlsatoms-1.1.0 (0)
[I--] [  ] x11-apps/xlsclients-1.1.1 (0)
[I--] [  ] x11-apps/xlsfonts-1.0.3 (0)
[I--] [  ] x11-apps/xmessage-1.0.3 (0)
[I--] [  ] x11-apps/xmodmap-1.0.5 (0)
[I--] [  ] x11-apps/xpr-1.0.3 (0)
[I--] [  ] x11-apps/xprop-1.2.0 (0)
[I--] [  ] x11-apps/xrandr-1.3.4 (0)
[I--] [  ] x11-apps/xrdb-1.0.8 (0)
[I--] [  ] x11-apps/xrefresh-1.0.4 (0)
[I--] [  ] x11-apps/xset-1.2.1 (0)
[I--] [  ] x11-apps/xsetmode-1.0.0 (0)
[I--] [  ] x11-apps/xsetroot-1.1.0 (0)
[I--] [M ] x11-apps/xsm-1.0.1-r1 (0)
[I--] [  ] x11-apps/xvinfo-1.1.0 (0)
[I--] [  ] x11-apps/xwd-1.0.4 (0)
[I--] [  ] x11-apps/xwininfo-1.1.1 (0)
[I--] [  ] x11-apps/xwud-1.0.3 (0)

$ equery l x11-terms/
[ Searching for all packages in 'x11-terms' among: ]
 * installed packages
[I--] [  ] x11-terms/rxvt-2.7.10-r4 (0)
[I--] [  ] x11-terms/xterm-267 (0)
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-22 04:01:35 UTC
$ euses -s fontconfig
fontconfig - Support for configuring and customizing font access via media-libs/fontconfig

Have you tried anything in that direction? Also, you probably don't need to set font paths in xorg.conf nowadays. Also, you have upgraded gcc to 4.4.5 but not switched to it yet - do it and you will feel better. Run eselect fontconfig list and your days might get even brighter.
Comment 5 Shiva Persaud 2011-03-22 05:16:45 UTC
I've switching to 4.4.5. emerge -ev system and emerge -ev world should be done in a couple hours. Been meaning to do that.

I'm not sure which eselect fontconfig option would give me the necessary font. This is what I've got now:

$ eselect fontconfig list
Available fontconfig .conf files  ( * is enabled ):
  [1]   10-autohint.conf *
  [2]   10-no-sub-pixel.conf *
  [3]   10-sub-pixel-bgr.conf
  [4]   10-sub-pixel-rgb.conf
  [5]   10-sub-pixel-vbgr.conf
  [6]   10-sub-pixel-vrgb.conf
  [7]   10-unhinted.conf
  [8]   20-fix-globaladvance.conf *
  [9]   20-unhint-small-dejavu-sans-mono.conf *
  [10]  20-unhint-small-dejavu-sans.conf *
  [11]  20-unhint-small-dejavu-serif.conf *
  [12]  20-unhint-small-vera.conf *
  [13]  25-unhint-nonlatin.conf
  [14]  30-metric-aliases.conf *
  [15]  30-urw-aliases.conf *
  [16]  40-nonlatin.conf *
  [17]  42-luxi-mono.conf *
  [18]  45-latin.conf *
  [19]  49-sansserif.conf *
  [20]  50-user.conf *
  [21]  51-local.conf *
  [22]  57-dejavu-sans-mono.conf *
  [23]  57-dejavu-sans.conf *
  [24]  57-dejavu-serif.conf *
  [25]  60-latin.conf *
  [26]  61-stix.conf
  [27]  65-fonts-persian.conf *
  [28]  65-khmer.conf
  [29]  65-nonlatin.conf *
  [30]  69-unifont.conf *
  [31]  70-no-bitmaps.conf
  [32]  70-yes-bitmaps.conf
  [33]  80-delicious.conf *
  [34]  90-synthetic.conf *

I've got almost every option enabled.

Thanks for the help. I'll report back when the gcc upgrade completes but I'm not terribly hopeful there.
Comment 6 Shiva Persaud 2011-03-22 15:44:35 UTC
Created attachment 266879 [details]
strace output for editres
Comment 7 Shiva Persaud 2011-03-22 15:45:11 UTC
I've attached strace output for editres in case that's helpful in anyway.
Comment 8 Shiva Persaud 2011-03-22 16:32:51 UTC
A couple other datapoints (which may or may not be related to the ultimate solution to this issue)

1. Someone pointed out that the strace output shows that the process attempt to read from /usr/lib/X11/XtErrorDB. That file doesn't exist on my system.

2. http://osdir.com/ml/scm-fedora-commits/2010-12/msg00146.html discusses a patch where libXaw was modified so that attempts to find a given font don't result in the app existing.
Comment 9 Shiva Persaud 2011-03-22 22:33:59 UTC
(In reply to comment #5)
> I've switching to 4.4.5. emerge -ev system and emerge -ev world should be done
> in a couple hours. Been meaning to do that.
<snip>
> 
> Thanks for the help. I'll report back when the gcc upgrade completes but I'm
> not terribly hopeful there.

I finished migrating to gcc 4.4.5. This issue persists.
Comment 10 Shiva Persaud 2011-03-22 22:35:40 UTC
I noticed that when I start xclock, the same message gets printed but xclock actually starts. xfontsel on the other hand does not:

<begin>
$ xclock
Warning: Unable to load any usable ISO8859 font
^C
$ xfontsel 
Warning: Unable to load any usable ISO8859 font
Error: Aborting: no font found
$
</begin>

Thought I'd share that bit of info as well.
Comment 11 vsync 2011-03-25 03:39:46 UTC
I've had the same problem appear for me today on my x86 laptop.  I didn't change any USE flags but I am doing an emerge -avuDN world after a few months of stagnancy.  Interestingly my home system (amd64 if it matters) did not have this problem, but I may have changed my X.Org setup prior to this.  Will compare my xorg.conf files to see if anything sticks out.  In the meantime a fix or workaround would be most welcome.
Comment 12 vsync 2011-03-25 03:59:54 UTC
Okay, working system at home has a bunch of these files:

-rw-r--r-- 1 root root  4364 Dec 26 02:38 timB08-ISO8859-1.pcf.gz
-rw-r--r-- 1 root root 14292 Dec 26 02:38 timB08.pcf.gz

Leading to the following in fonts.dir:

helvB08-ISO8859-1.pcf.gz -adobe-helvetica-bold-r-normal--11-80-100-100-p-60-iso8859-1
helvB08.pcf.gz -adobe-helvetica-bold-r-normal--11-80-100-100-p-60-iso10646-1

Which makes xlsfonts happy (not sure why each shows up twice):

-adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso10646-1
-adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso10646-1
-adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso8859-1
-adobe-helvetica-bold-o-normal--10-100-75-75-p-60-iso8859-1

On the laptop having the problem, all the ISO8859-1 files are missing, which I guess is the root of the problem and mkfontdir and the X server are behaving properly.

Anyone know where those ISO8859-1 files come from?  They're not in the distfile and both systems (working and not) are using 1.0.3.
Comment 13 Shiva Persaud 2011-03-25 04:15:14 UTC
(In reply to comment #11)
> I've had the same problem appear for me today on my x86 laptop.  I didn't
> change any USE flags but I am doing an emerge -avuDN world after a few months
> of stagnancy.

It also appeared for me after an upgrade. I combined my upgrade with a locale change. Just curious: did you modify your locale at all?

> Interestingly my home system (amd64 if it matters) did not have
> this problem

Did you upgrade your amd64 system as well?
Comment 14 Shiva Persaud 2011-03-25 04:20:56 UTC
(In reply to comment #12)
> Okay, working system at home has a bunch of these files:
> 
> -rw-r--r-- 1 root root  4364 Dec 26 02:38 timB08-ISO8859-1.pcf.gz
> -rw-r--r-- 1 root root 14292 Dec 26 02:38 timB08.pcf.gz


Do you know if you had these on our laptop prior to upgrading?


> On the laptop having the problem, all the ISO8859-1 files are missing, which I
> guess is the root of the problem and mkfontdir and the X server are behaving
> properly.

I also don't have any files in "/usr/share/fonts/" with "ISO8859-1.pcf.gz" in the file name:

$ find . -name \*ISO8859-1.pcf.gz
$
Comment 15 Shiva Persaud 2011-03-25 04:26:35 UTC
(In reply to comment #12)
> Okay, working system at home has a bunch of these files:
> 
> -rw-r--r-- 1 root root  4364 Dec 26 02:38 timB08-ISO8859-1.pcf.gz
> -rw-r--r-- 1 root root 14292 Dec 26 02:38 timB08.pcf.gz
> 
> Leading to the following in fonts.dir:

If you move those missing files to your laptop and run mkfontdir, does the problem go away? Also, can you post the version of the ebuild which provides those files that you have installed in your working system at home?
Comment 16 vsync 2011-03-25 04:57:58 UTC
> If you move those missing files to your laptop and run mkfontdir, does the
> problem go away? Also, can you post the version of the ebuild which provides
> those files that you have installed in your working system at home?

Shiva, by finding this post

  http://www.gossamer-threads.com/lists/gentoo/dev/227658

and with the help of #gentoo I was able to track it down to the font package getting built without any encodings.  iamben suggested the nls USE flag, which was disabled on both systems, but the laptop may have a slightly newer underlying package with that behavior.

I haven't yet finished rebuilding all the packages nor restart my X11 server but I did rebuild the Adobe ones and smash it on the front of the font path and XEmacs is now happy to start.

iamben suggests this to force all fonts packages to use "nls" if you don't want to enable globally (I didn't):

cd /usr/portage && for i in media-fonts/*; do echo $i nls >> fonts-nls.use; done

I used this approach to only mess with the ones I actually use:

( cd /var/db/pkg && ( for pkg in media-fonts/*{75,100}dpi*; do echo "${pkg}\tnls" | sed -r 's/dpi-[[:graph:]]+/dpi/'; done ) > /tmp/fonts.use )  

Either way those should go in your package.use.  The best approach is 

media-fonts/* nls

but I'm told that requires Portage 2.2.
Comment 17 Andre 2011-03-25 12:58:06 UTC
I can confirm switching on USE=nls for 
media-fonts/font-adobe-100dpi
media-fonts/font-misc-misc

works around this problem. 

Accordingly, this should be a dup of
https://bugs.gentoo.org/show_bug.cgi?id=357331
Comment 18 Shiva Persaud 2011-03-25 14:30:02 UTC
(In reply to comment #16)
> iamben suggested the nls USE flag, which
> was disabled on both systems

That worked for me as well. /etc/make.conf had "-nls -unicode". I removed those and did an "emerge -DNu world" and xterm, xfontsel, editres, etc now work.

Thanks for posting that tip; I appreciate it.
Comment 19 Samuli Suominen (RETIRED) gentoo-dev 2011-07-09 12:34:02 UTC

*** This bug has been marked as a duplicate of bug 357331 ***