LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   fix fontconfig 2.9.0 crashing secondlife viewers (http://www.linuxquestions.org/questions/slackware-14/fix-fontconfig-2-9-0-crashing-secondlife-viewers-4175430353/)

Martinus2u 10-03-2012 05:38 PM

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.


All times are GMT -5. The time now is 03:53 PM.