[Kde-print-devel] [Bug 126275] ipprequest.cpp:521: error: `_ipp_free_attr' undeclared (first use this function)

Matthew Carson matthew.carson at tiscali.co.uk
Thu Apr 27 09:26:04 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=126275         




------- Additional Comments From matthew.carson tiscali co uk  2006-04-27 09:26 -------
> > is there a simple patch I could use - how do I fix this pls ?
Yes. Look below. This is also commited to the 3.5 SVN branch right now.

Index: ipprequest.cpp
===================================================================
--- ipprequest.cpp      (revision 534402)
+++ ipprequest.cpp      (working copy)
 @ -511,7 +511,11  @
        cupsFreeOptions(n, options);

        // find an remove that annoying "document-format" attribute
-       // (can't use IppDeleteAttribute as cups 1.0.9 doesn't have that)
+#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
+    ipp_attribute_t *attr = ippFindAttribute(request_, "document-format",
IPP_TAG_NAME);
+    ippDeleteAttribute(request_, attr);
+#else
+       // (can't use IppDeleteAttribute as older cups doesn't have that)
        ipp_attribute_t *attr = request_->attrs;
        while (attr)
        {
 @ -524,4 +528,5  @
                }
                attr = attr->next;
        }
+#endif
 }


More information about the Kde-print-devel mailing list