[blfs-dev] Does xterm work for UTF-8 ?

Ken Moffat zarniwhoop at ntlworld.com
Sun Feb 10 11:04:29 PST 2013


On Sun, Feb 10, 2013 at 05:17:58PM +0000, Ken Moffat wrote:
>   Oh well,
> perhaps (some) legacy fonts need to stay in the book for xterm.
> [sigh/].
> 
 Actually, it looks like a configure problem in xterm, prompted by a
toolchain change in the last couple of years :

configure:14508: checking for usable Xft/fontconfig package
configure:14534: gcc -o conftest -g -O2  -D_GNU_SOURCE
-DNARROWPROTO=1 -DFUNCPROTO=15 -DOSMAJORVERSION=3 -DOSMINORVERSION=8
-I/usr/include/freetype2  conftest.c  -lXft   -lXmu -lXt -lX11
-lXaw7 -lXt -lX11   -lSM   -lICE   -lXt -lX11   -lncurses   >&5
/usr/bin/ld: /tmp/cc2otVoJ.o: undefined reference to symbol
'FcPatternBuild'
/usr/bin/ld: note: 'FcPatternBuild' is defined in DSO
/usr/lib64/libfontconfig.so.1 so try adding it to the linker command
line
/usr/lib64/libfontconfig.so.1: could not read symbols: Invalid
operation
collect2: error: ld returned 1 exit status

 that results in configure reporting:
checking for usable Xft/fontconfig package... no

 Interestingly, if I invoke xterm with /usr/local/bin/xterm -fa
"DejaVu Sans Mono" -fs 12 it does appear to use the selected font,
i.e. all the previous test glyphs appear, and I get a warning from
fontconfig -
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf",
line 9: reading configurations from ~/.fonts.conf is deprecated.
BUT it doesn't find the glyphs which are only in FreeFont.

 Fixing the configure is a different matter - adding LDFLAGS= or
LIBS= produces the dreaded "C compiler cannot produce executables" -
it can't find conftest.sh after creating it and adding '.' to the
PATH.

 Xterm-289 still shows the failure to find a usable Xft/fontconfig,
but it seems that fontconfig can be found with 289 if I use LIBS=.
I haven't built it yet, and I'll come back to the configury of 279
later (the changelog for 289 looked irrelevant for my issues).

 If anyone has logs from configuring xterm-279 I would be interested
in whether they see the failure to find a usable Xft/fontconfig.

 For my original "not everything renders" problem, I'm guessing that
it has decided to use Bitstream Vera (which is installed at the
moment so I can report on how little it covers - perhaps I should
concentrate on that and then get rid of it again).

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the blfs-dev mailing list