LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-03-2012, 04:38 PM   #1
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
fix fontconfig 2.9.0 crashing secondlife viewers


Some of you might remember that I wrote about an incompatibility between those software packages when fontconfig was updated in -current. I am confident that the viewers will be adapted at some point, but in the meantime I have developed a patch. BAsically you need to rebuild the fontconfig package with a modified Slackbuild that applies the following patch prior to compilation:

Code:
--- fontconfig-2.9.0/src/fcmatch.c.orig	2012-03-10 07:24:46.000000000 +0100
+++ fontconfig-2.9.0/src/fcmatch.c	2012-10-03 18:57:48.468070619 +0200
@@ -847,7 +847,10 @@
     int		nsets;
 
     assert (p != NULL);
-    assert (result != NULL);
+    /* assert (result != NULL); */
+    FcResult DummyResult;
+    FcResult *resultp = &DummyResult;
+    FcResult **resultpp = (result == NULL) ? &resultp : &result ;
 
     if (!config)
     {
@@ -860,7 +863,7 @@
 	sets[nsets++] = config->fonts[FcSetSystem];
     if (config->fonts[FcSetApplication])
 	sets[nsets++] = config->fonts[FcSetApplication];
-    return FcFontSetSort (config, sets, nsets, p, trim, csp, result);
+    return FcFontSetSort (config, sets, nsets, p, trim, csp, *resultpp);
 }
 #define __fcmatch__
 #include "fcaliastail.h"
When using multilibs, it is the 32bit library that needs attention.
 
  


Reply



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
fatal error: fontconfig/fontconfig.h: No such file or directory bogzab Slackware 3 11-07-2011 03:13 PM
[SOLVED] Fedora 13 and ./secondlife Mickey57 Fedora 2 05-05-2010 07:18 AM
Firefox, other 'zilla's keep crashing in 13/Current; how to fix? linus72 Linux - Software 2 04-11-2010 03:57 AM
Games / 3D crashing in linux - Fix dot_txt Linux - Hardware 0 01-19-2008 12:30 PM
Linux Secondlife Game: Please help Xeratul Linux - Games 2 12-19-2006 02:45 PM

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

All times are GMT -5. The time now is 07:19 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