Version: 3.5.2 (using KDE KDE 3.5.2) Installed from: Compiled From Sources Compiler: gcc 4.0.2 OS: Linux Im running on AMD64, with GCC-4.0.2 build commands : ./configure --prefix=/opt/kde \ --sysconfdir=/etc/kde \ --disable-debug --disable-dependency-tracking \ --enable-final make I get this when I try to compile kdelibs: ipprequest.cpp: In member function `void IppRequest::setMap(const QMap<QString, QString>&)': ipprequest.cpp:521: error: `_ipp_free_attr' undeclared (first use this function) ipprequest.cpp:521: error: (Each undeclared identifier is reported only once for each function it appears in.) make[4]: *** [ipprequest.lo] Error 1 make[4]: Leaving directory `kdelibs-3.5.2/kdeprint/cups' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `kdelibs-3.5.2/kdeprint/cups' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `kdelibs-3.5.2/kdeprint' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `kdelibs-3.5.2' make: *** [all] Error 2 Pls help ! Thx But I might d/l kdelibs from cvs and try it at home !
Apparently, the patch was reversed in 3.5 branch because it doesn't work with older version of CUPS. I guess that some #ifdef would solve it. *** This bug has been marked as a duplicate of 124157 ***
Great, but Im not a C developer tho ! :@( is there a simple patch I could use - how do I fix this pls ? Michael Goffioul wrote: [bugs.kde.org quoted mail]
> > 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 }
*** *** *** *** *** *** *** *** with special thanks to : Cristian Tibirna, KDE developer *** *** *** *** *** *** *** ***
Closing old Resolved status bug.