I tried both 0.1 and from git, this is the output of the 0.1 version: [ 1%] Building CXX object libkcups/CMakeFiles/kcupslib.dir/KCupsConnection.o /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp: In member function ‘int KCupsConnection::renewDBusSubscription(int, int, const QStringList&)’: /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:410:17: error: invalid use of incomplete type ‘ipp_t {aka struct _ipp_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:365:16: error: forward declaration of ‘ipp_t {aka struct _ipp_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:416:23: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp: In static member function ‘static ReturnArguments KCupsConnection::parseIPPVars(ipp_t*, int, bool)’: /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:584:25: error: invalid use of incomplete type ‘ipp_t {aka struct _ipp_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:365:16: error: forward declaration of ‘ipp_t {aka struct _ipp_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:584:59: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:588:28: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:589:24: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:600:28: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:600:65: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:601:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:602:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:603:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:604:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:605:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:606:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:607:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:608:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:609:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:610:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:611:21: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:618:50: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp: In static member function ‘static QVariant KCupsConnection::ippAttrToVariant(ipp_attribute_t*)’: /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:670:17: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:673:17: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:674:23: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:677:37: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:678:31: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:684:17: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:685:41: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:688:37: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:689:49: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:697:33: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:698:27: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:699:27: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:705:17: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:706:41: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:709:37: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:710:49: error: invalid use of incomplete type ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ In file included from /usr/include/cups/cups.h:38:0, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.h:31, from /home/bash/builds/print-manager/src/print-manager-0.1.0/libkcups/KCupsConnection.cpp:22: /usr/include/cups/ipp.h:366:16: error: forward declaration of ‘ipp_attribute_t {aka struct _ipp_attribute_s}’ make[2]: *** [libkcups/CMakeFiles/kcupslib.dir/KCupsConnection.o] Error 1 make[1]: *** [libkcups/CMakeFiles/kcupslib.dir/all] Error 2 make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. Download print-manager 0.1 sources 2. Update cups to 1.6.0 3. Try to build it Actual Results: The build fails Expected Results: It builds cups 1.6.0
Which distro do you use? Fedora rawhide, ubuntu ppa's openSUSE noone of then have it packaged, so I can't try myself...
Arch Linux has cups in the [testing] repo
ok, CUPS 1.6 has some API changes I hope I can make it build with both. I'm downloading Arch now, and will install on a VM and try to fix this, I'll update this bug report as soon as it is fixed.
(In reply to comment #3) > ok, CUPS 1.6 has some API changes I hope I can make it build with both. > I'm downloading Arch now, and will install on a VM and try to fix this, I'll > update this bug report as soon as it is fixed. Great. I'm available if you want me to test the patches.
When patches are available for testing, where will the links be posted?
Ah I have fixed this, tho CUPS 1.6 is a major pain for Linux users thanks to Apple, the git code compiles but now I need to integrate with Avahi to be able to browse for new printers... run cmake -DCUPS_1_6=ON and it will build.