LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-02-2006, 07:48 AM   #1
umaru
LQ Newbie
 
Registered: Jun 2004
Location: Cabo Verde
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
Fontconfig error


hello

I'm using Slackware/Freerock current and after upgrade Xorg and installed the new packages fontconfig and freetype, gaim openoffice ekiga rhythmbox and others stop working with the following error msg:

Fontconfig error: Cannot load default config file
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on fontconfig.org

I look at fontconfig.org and found nothing. I google the web and couldn't find nothing similar also.

please, can anyone help me.

thanks in advance

umaru
 
Old 08-03-2006, 01:07 AM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
did you do the upgrade in X?
 
Old 08-03-2006, 01:25 AM   #3
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
I won't pretend to have seen this error before, but you may try running fc-cache to update the font list:

Code:
/usr/bin/fc-cache -f
 
Old 08-03-2006, 07:53 AM   #4
umaru
LQ Newbie
 
Registered: Jun 2004
Location: Cabo Verde
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
I went to init 3 and made the upgrade.

thank You for the quick responses.

I figure out that there was no fonts directory under /usr/share so I get things working by making a symlink in /usr/share to /usr/X11R6/lib/X11/fonts. /usr/share/fonts -> /usr/share/lib/X11/fonts

I don't know if this is a general issue or if it is due to my setup. I did not install any of the windows manager shipped with slackware. just installed freerock gnome and made regular updates to go current.

regards
 
Old 08-03-2006, 11:26 AM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by umaru
hello

I'm using Slackware/Freerock current and after upgrade Xorg and installed the new packages fontconfig and freetype, gaim openoffice ekiga rhythmbox and others stop working with the following error msg:

Fontconfig error: Cannot load default config file

<snip>

please, can anyone help me.

thanks in advance

umaru
Did you see this in the changelog?
Code:
Wed Jul 26 01:55:38 CDT 2006

x/fontconfig-2.2.3-i486-1.tgz: Split fontconfig into a separate package.
       Look, we're modularizing for ease of maintainance! :-)
x/freetype-2.1.9-i486-1.tgz: Split freetype into a separate package.
       Patched CVE-2006-1861 linux 2.6.x setuid() related bugs.
       (* Security fix *)
x/x11-6.9.0-i486-5.tgz: Rebuilt. Removed fontconfig/freetype files.
       Patched some more possible linux 2.6.x setuid() related bugs:
       http://lists.freedesktop.org/archives/xorg-announce/2006-June/000100.html
       (* Security fix *)
x/x11-devel-6.9.0-i486-5.tgz: Rebuilt. Removed fontconfig/freetype files.
       Patched with setuid() usage fixes as described above. Again, this issue
       is only vulnerable on certain 2.6 kernels.
       (* Security fix *)
x/x11-docs-6.9.0-noarch-5.tgz: Rebuilt. Removed fontconfig/freetype files.
Not sure how you upgraded, but this may be your problem if you did not ensure installation of fontconfig with the upgrade of X11.

http://www.slackware.org/changelog/current.php?cpu=i386

HTH
 
Old 08-03-2006, 02:05 PM   #6
umaru
LQ Newbie
 
Registered: Jun 2004
Location: Cabo Verde
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, I saw the changelog.

I used gslapt to just download the packages and then went to init 3 to upgrade xorg.

- downloaded all packages in x directory including fontconfig and freetype.

- upgraded with upgradepkg --install-new --reinstall *.tgz

Is this the right way?

many thanks and regards.
 
Old 08-03-2006, 07:44 PM   #7
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
I figure out that there was no fonts directory under /usr/share so I get things working by making a symlink in /usr/share to /usr/X11R6/lib/X11/fonts. /usr/share/fonts -> /usr/share/lib/X11/fonts

I don't know if this is a general issue or if it is due to my setup. I did not install any of the windows manager shipped with slackware. just installed freerock gnome and made regular updates to go current.
Hi again.

I read through your posts and get the impression things are running OK since creating the symlink described above.

My slackware box does not have a fonts directory in /usr/share either. Then again, my system is not looking for fonts there so this is not an issue for me. Take a look at your /etc/X11/xorg.conf file and look for a section near the beginning that looks like this:
Code:
    FontPath 	"/usr/X11R6/lib/X11/fonts/local"
    FontPath 	"/usr/X11R6/lib/X11/fonts/misc"
    FontPath 	"/usr/X11R6/lib/X11/fonts/TTF"
    FontPath 	"/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
    FontPath 	"/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
    FontPath 	"/usr/X11R6/lib/X11/fonts/Type1"
    FontPath 	"/usr/X11R6/lib/X11/fonts/CID"
    FontPath 	"/usr/X11R6/lib/X11/fonts/Speedo"
    FontPath 	"/usr/X11R6/lib/X11/fonts/cyrillic"
    FontPath 	"/usr/local/share/fonts"
    FontPath 	"/usr/X11R6/lib/X11/fonts"
This tells X where to look for fonts. Mine does not point to /usr/share/fonts but your's may. Maybe due to FRG install? I don't use freerock any longer so I don't know. I very recently installed -current on a new pc so what you see is "out of the box" -current so to speak. The exception being the font directory in /usr/local/share which contains the fonts I added after install.

As for your upgrade method, it appears sound with respect to the packages in the x directory. You used upgradepkg --install-new so any new/added packages would be installed as well. My only suggestion would be to upgrade everything and not to be selective, as it appears you were. Pat might have rebuilt other packages so that they would work with his other changes. Keeping the older versions of some programs might cause problems similar to what you describe.

Freerock is based on slackware 10.2 and all the problems you describe seem to be associated with freerock packages or freerock versions of slackware 10.2 packages. It's very likely that due to the significant change to fontconfig/X11 the freerock packages broke. When slack 11 is released, freerock will update their install. As it stands now, anything compiled for 10.2 is going to have problems on a -current box.

Hope this helps.
 
Old 08-03-2006, 08:48 PM   #8
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
I ran into the same thing. Just download and install the fontconfig package.
 
Old 08-04-2006, 10:49 AM   #9
umaru
LQ Newbie
 
Registered: Jun 2004
Location: Cabo Verde
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
hello
first of all, many thanks for all replies.

Quote:
I read through your posts and get the impression things are running OK since creating the symlink described above.
Yes, things got running OK since I created de symlink.

my xorg.conf files section:
Code:
Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
#       FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/local/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection
the problem seems not related to X.

I think You are right Franklin and it may be a freerock related issue.

as the error msg reports to fontconfig, here is the fonts directory section in my /etc/fonts.conf (witch is the one installed with fontconfig-2.2.3-i486-1.tgz):
Code:
<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts/TTF</dir> <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
<dir>~/.fonts</dir>
it seems like some frg programs are getting trouble with fontconfig after the upgrade.

as things are working good now, I'l be fine until the major releases of slackware and frg get out.

and, if I get the cause of that behavior I'l be posting it here.

many thanks for Your help. best regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fontconfig error; can't start X Alien_Hominid Slackware 3 01-31-2006 11:48 AM
error at make installing fontconfig 2.3.2 james_beall Linux - Newbie 1 08-12-2005 06:03 PM
mozilla 1.6 Fontconfig error... invalid token Zero-0-Effect Linux - Software 2 06-07-2004 04:52 AM
Installing fontconfig 2.2.0 error tfdml37 Red Hat 5 04-07-2004 01:10 AM
fontconfig-2.2.92 build error with freetype2 behmjose Linux - Newbie 0 02-21-2004 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration