From nobody@FreeBSD.org  Sat Apr 19 18:00:43 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 0540A54A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Apr 2014 18:00:43 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id E69311CD9
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Apr 2014 18:00:42 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3JI0gb3063490
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Apr 2014 18:00:42 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3JI0gAG063484;
	Sat, 19 Apr 2014 18:00:42 GMT
	(envelope-from nobody)
Message-Id: <201404191800.s3JI0gAG063484@cgiserv.freebsd.org>
Date: Sat, 19 Apr 2014 18:00:42 GMT
From: Jason Bacon <jwbacon@tds.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/xfce4-print does not build when CUPS support is enaled
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188799
>Category:       ports
>Synopsis:       print/xfce4-print does not build when CUPS support is enaled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-xfce
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 19 18:10:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sat May 24 13:50:00 UTC 2014
>Originator:     Jason Bacon
>Release:        10.0-RELEASE
>Organization:
Acadix Consulting, LLC
>Environment:
FreeBSD freebie.acadix.biz 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:

Build fails due to direct use of ipp_t fields in cups.c, which is no longer supported.

>How-To-Repeat:

make config
select CUPS
make
>Fix:

cups.c needs to be edited to use accessor functions instead of referencing ipp_t fields directly.

Partial patch to demonstrate the approach:

--- printing-systems/cups/cups.c.orig   2014-04-19 12:20:18.000000000 -0500
+++ printing-systems/cups/cups.c        2014-04-19 12:27:02.000000000 -0500
@@ -133,8 +133,10 @@
 
   language = cupsLangDefault ();
   request = ippNew ();
-  request->request.op.operation_id = operation_id;
-  request->request.op.request_id = 1;
+  //request->request.op.operation_id = operation_id;
+  ippSetOperation(request,operation_id);
+  //request->request.op.request_id = 1;
+  ippSetRequestId(request,1);
 
   ippAddString (request, IPP_TAG_OPERATION, IPP_TAG_CHARSET, "attributes-charset", NULL, "utf-8");
 
@@ -242,7 +244,7 @@
 
       if (!request)
         continue;
-      if (request->state == IPP_ERROR || request->state == IPP_IDLE) {
+      if (ippGetState(request) == IPP_ERROR || request->state == IPP_IDLE) {
         ippDelete (request);
         continue;
       }

Not all the fixes appear to be so straightforward and I don't have time to work on it at the moment.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Apr 19 19:16:30 UTC 2014 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=188799 
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-xfce 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Apr 19 19:16:49 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=188799 

From: Kevin Zheng <kevinz5000@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/188799: print/xfce4-print does not build when CUPS support
 is enaled
Date: Sat, 24 May 2014 08:40:26 -0500

 Hi there,
 
 I'm having the same problem Jason is describing. The partial patch seems
 to fix one error, but there are quite a few more to go.
 
 Thanks,
 Kevin Zheng
>Unformatted:
