Re: xftcache program seems to be missing?
Suse90:
ishtar> rpm -q freetype2
freetype2-2.1.4-65
ishtar> rpm -q fontconfig
fontconfig-2.2.1-58
Mike FABIAN wrote:
"l. Athena W."
Tried that: got:
# fc-cache TTF fc-cache: relocation error: # /usr/lib/libfontconfig.so.1: undefined symbol: FT_Get_PS_Font_Info
Seems like a library is out of phase somewhere....?
Which version of the fontconfig and freetype2 packages do you have installed? Which version of SuSE Linux is this?
"l. Athena W."
Suse90:
ishtar> rpm -q freetype2 freetype2-2.1.4-65 ishtar> rpm -q fontconfig fontconfig-2.2.1-58
OK, looks like you have the original packages. Then I don't know, it should work.
Mike FABIAN wrote:
"l. Athena W."
Tried that: got:
# fc-cache TTF fc-cache: relocation error: # /usr/lib/libfontconfig.so.1: undefined symbol: FT_Get_PS_Font_Info
Seems like a library is out of phase somewhere....?
Should look like this on your system (only that you probably have this
stuff in /usr/lib instead of /usr/lib64, because I tried this on a AMD
64 bit machine):
mfabian@rossini:~$ ll /usr/lib64/libfontconfig.so.1
lrwxrwxrwx 1 root root 22 Dec 16 15:53 /usr/lib64/libfontconfig.so.1
libfontconfig.so.1.0.4*
mfabian@rossini:~$ nm /usr/lib64/libfontconfig.so.1.0.4 | grep FT_Get_PS_Font_Info
U FT_Get_PS_Font_Info
mfabian@rossini:~$ ll /usr/lib64/libfreetype.so*
lrwxrwxrwx 1 root root 20 Dec 17 19:07 /usr/lib64/libfreetype.so ->
*
lrwxrwxrwx 1 root root 20 Dec 16 15:52 /usr/lib64/libfreetype.so.6 -> libfreetype.so.6.3.3*
-rwxr-xr-x 1 root root 469477 Dec 10 13:49 /usr/lib64/libfreetype.so.6.3.3*
mfabian@rossini:~$ nm /usr/lib64/libfreetype.so.6.3.3 | grep FT_Get_PS_Font_Info
0000000000016450 T FT_Get_PS_Font_Info
mfabian@rossini:~$
If you problem doesn't go away after running
ldconfig
as root, I have no idea what could be wrong.
--
Mike FABIAN
shtar:/usr/lib> ll libfont* -rw-r--r-- 1 root root 200264 2003-12-16 05:25 libfontconfig.a -rwxr-xr-x 1 root root 864 2003-12-16 05:25 libfontconfig.la* lrwxrwxrwx 1 root root 22 2004-03-12 09:51 libfontconfig.so -> libfontconfig.so.1.0.4* lrwxrwxrwx 1 root root 22 2004-03-12 09:51 libfontconfig.so.1 -> libfontconfig.so.1.0.4* -rwxr-xr-x 1 root root 187854 2003-12-16 05:25 libfontconfig.so.1.0.4* ishtar:/usr/lib> ll libfree* -rw-r--r-- 1 root root 1545924 2003-09-23 09:46 libfreetype.a -rwxr-xr-x 1 root root 728 2003-09-23 09:46 libfreetype.la* lrwxr-xr-x 1 root root 20 2003-11-04 11:57 libfreetype.so -> libfreetype.so.6.3.3* lrwxr-xr-x 1 root root 20 2003-11-03 23:09 libfreetype.so.6 -> libfreetype.so.6.3.3* -rwxr-xr-x 1 root root 394821 2003-09-23 09:46 libfreetype.so.6.3.3* ishtar:/usr/lib> nm libfreetype.so.6.3.3|grep FT_Get_PS_Font_Info 0000eb00 T FT_Get_PS_Font_Info ishtar:/usr/lib> ------- Weird....seems to be there.... Ok....even weirder...I just executed the same command in the same font dir and it works now. I hate this. I used to like computers because the were reliable, predictable -- they didn't change their behavior based on what day it is or whatever....This isn't the logical behavior I'd expect from an M5...er, x86... whatever... Now I just have to figure out the rest of it....it might be helpful if the manpage referenced on "fc-cache" : SEE ALSO fontconfig(3) __vendorversion__ FC-CACHE(1) "fontconfig" actually existed. Somehow it didn't get installed on my system. Looks like the font config package went out a bit hurriedly as the forgot to replace __vendorversion__ with a real version, as well. Is that it though? I just run that and xft should pick up the new fonts? I assume I have to reload it or restart it?...Thanks ....for getting me through the weird library problem....I ran some general verify scripts that looked for missing non-local related files and if it found them, try to restore them, but I got a few errors on restores -- of course the script did't list out the package it was processing on one rpm where it ran out of input data...weird.. -linda
Update -- it really did NOT WORK, last night -- I wasn't running as root. fc-cache has a bug that it issues no error message when run by a non-root user and can't write the files. When run by root, it still issues the same error message. :-( -linda
I don't know if this is of any use in tracing down the problem, but I
have an "ltrace" of an attempted run below:
ishtar:usr/X11R6/lib/X11/fonts# ltrace -f -n 2 -S fc-cache TTF 2>&1
SYS_uname(0xbfffefa0) = 0
SYS_brk(NULL) = 0x0804b000
SYS_mmap(0xbfffecb0, 0x40019000, 0x40018ba0, 4096, 565) = 0x40019000
SYS_open("/etc/ld.so.preload", 0, 03) = -2
SYS_open("/etc/ld.so.cache", 0, 00) = 3
SYS_fstat64(3, 0xbfffe770, 0x40018ba0, 0x40018de0, 0) = 0
SYS_mmap(0xbfffe740, 0xbfffe770, 0x40018ba0, 3, 0x40018cb0) = 0x4001a000
SYS_close(3) = 0
SYS_open("/usr/lib/libfontconfig.so.1", 0, 00) = 3
SYS_read(3, "\177ELF\001\001\001", 512) = 512
SYS_fstat64(3, 0xbfffe820, 0x40018ba0, 0x40018de0, 0) = 0
SYS_mmap(0xbfffe710, 3, 0x40018ba0, 0xbfffe774, 0xbfffe744) = 0x40030000
SYS_mmap(0xbfffe710, 143672, 0x40018ba0, 0x40030000, 0xbfffe75c) = 0x40054000
SYS_mmap(0xbfffe710, 2280, 0x40018ba0, 0x40057000, 0xbfffe75c) = 0x40057000
SYS_close(3) = 0
SYS_open("/usr/X11R6/lib/libfreetype.so.6", 0, 027777764404) = 3
SYS_read(3, "\177ELF\001\001\001", 512) = 512
SYS_fstat64(3, 0xbfffe810, 0x40018ba0, 0x40018de0, 0) = 0
SYS_mmap(0xbfffe700, 3, 0x40018ba0, 0xbfffe764, 0xbfffe734) = 0x40058000
SYS_mmap(0xbfffe700, 230877, 0x40018ba0, 0x40058000, 0xbfffe74c) = 0x40091000
SYS_close(3) = 0
SYS_open("/usr/lib/libexpat.so.0", 0, 027777764364) = 3
SYS_read(3, "\177ELF\001\001\001", 512) = 512
SYS_fstat64(3, 0xbfffe800, 0x40018ba0, 0x40018de0, 0) = 0
SYS_mmap(0xbfffe6e0, 3, 0x40018ba0, 0xbfffe744, 0xbfffe714) = 0x40095000
SYS_mmap(0xbfffe6e0, 115536, 0x40018ba0, 0x40095000, 0xbfffe72c) = 0x400b2000
SYS_close(3) = 0
SYS_open("/lib/i686/libc.so.6", 0, 027777764344) = 3
SYS_read(3, "\177ELF\001\001\001", 512) = 512
SYS_fstat64(3, 0xbfffe7f0, 0x40018ba0, 0x40018de0, 0) = 0
SYS_mmap(0xbfffe690, 0x4001a000, 0x40018ba0, 4096, 574) = 0x400b5000
SYS_mmap(0xbfffe680, 3, 0x40018ba0, 0xbfffe6e4, 0xbfffe6b4) = 0x400b6000
SYS_mmap(0xbfffe680, 0x0012b730, 0x40018ba0, 0x400b6000, 0xbfffe6cc) = 0x401e2000
SYS_mmap(0xbfffe680, 7364, 0x40018ba0, 0x401e7000, 0xbfffe6cc) = 0x401e7000
SYS_close(3) = 0
SYS_munmap(0x4001a000, 87659) = 0
__libc_start_main(0x08049020, 2, 0xbffff224, 0x08049220, 0x08049280
participants (2)
-
l. Athena W.
-
Mike FABIAN