[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    compiling kdelibs 3.5.2 and cups 1.2.0
From:       Stefan Fiedler <stefan.fiedler () students ! jku ! at>
Date:       2006-05-19 16:35:51
Message-ID: 200605191835.51868.stefan.fiedler () students ! jku ! at
[Download RAW message or body]

Hi all,

the following patch is required to compile kdelibs 3.5.2 against cups 1.2.0. 
It should work with cups 1.1.19 or later. The problem with cups 1.2.0 is that 
the function _ipp_free_attr is no longer defined in usr/include/cups/ipp.h.

With best regards,
	Stefan Fiedler

--- kdelibs-3.5.2/kdeprint/cups/ipprequest.cpp~     2005-10-10 
17:06:30.000000000 +0200
+++ kdelibs-3.5.2/kdeprint/cups/ipprequest.cpp      2006-05-17 
19:55:52.000000000 +0200
@@ -516,9 +516,7 @@
        {
                if (attr->next && strcmp(attr->next->name, "document-format") 
== 0)
                {
-                       ipp_attribute_t *attr2 = attr->next;
-                       attr->next = attr2->next;
-                       _ipp_free_attr(attr2);
+                       ippDeleteAttribute(request_, attr);
                        break;
                }
                attr = attr->next;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic