HPLIP does not build with CUPS 1.6.1 or newer

Bug #1056214 reported by Till Kamppeter on 2012-09-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Sanjay Kumar

Bug Description

The internal data structure (struct _ipp_s) of ipp_t in the CUPS API (cups/ipp.h) is private (not intended to be directly accessed from non-CUPS programs). In CUPS 1.6.0 and earlier it was still accessible as it was unconditionally available in cups/ipp.h. From CUPS 1.6.1 on it is packed into a conditional making it only available for CUPS' own programs.

The correct solution is not using this internal structure any more, the quick workaround is compiling HPLIP with the "-D_IPP_PRIVATE_STRUCTURES=1" compiler argument.

I have found the problem in prnt/cupsext/cupsext.c but it probably occurs also in other files.

HPLIP is 3.12.6 on Ubuntu Quantal.

Related branches

Changed in hplip:
status: New → Confirmed
status: Confirmed → In Progress
assignee: nobody → Sanjay Kumar (sanjay-kumar14)
Sanjay Kumar (sanjay-kumar14) wrote :

Hello Till,

Thanks for the update. We will make use of the accessor functions in the future HPLIP versions as suggested in CUPS ipp.h, however for our next release HPLIP-3.12.10 we have enabled the _IPP_PRIVATE_STRUCTURES macro.

Thanks,
Sanjay

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers