Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Oct 2011 14:44:01 GMT
From:      Kaspars Bankovskis <kaspars@bankovskis.lv>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/161491: [patch] print/hplip build problem
Message-ID:  <201110111444.p9BEi18G093635@red.freebsd.org>
Resent-Message-ID: <201110111450.p9BEo6Gv008779@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         161491
>Category:       ports
>Synopsis:       [patch] print/hplip build problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 11 14:50:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Kaspars Bankovskis
>Release:        
>Organization:
>Environment:
>Description:
print/hplip build fails with this error:

ppsfilter.o `test -f 'prnt/hpps/hppsfilter.c' || echo './'`prnt/hpps/hppsfilter.c
prnt/hpps/hppsfilter.c: In function 'require_bod':
prnt/hpps/hppsfilter.c:119: error: 'ppd_attr_t' undeclared (first use in this function)
prnt/hpps/hppsfilter.c:119: error: (Each undeclared identifier is reported only once
prnt/hpps/hppsfilter.c:119: error: for each function it appears in.)
prnt/hpps/hppsfilter.c:119: error: 'pattr' undeclared (first use in this function)
prnt/hpps/hppsfilter.c:120: error: 'ppd_file_t' undeclared (first use in this function)
prnt/hpps/hppsfilter.c:120: error: 'pppd' undeclared (first use in this function)
*** Error code 1
1 error
*** Error code 1
>How-To-Repeat:

>Fix:
Attached patch fixes the problem

Patch attached with submission follows:

diff -ruN hplip.bak/files/patch-prnt__hpps__hppsfilter.c hplip/files/patch-prnt__hpps__hppsfilter.c
--- hplip.bak/files/patch-prnt__hpps__hppsfilter.c	1970-01-01 03:00:00.000000000 +0300
+++ hplip/files/patch-prnt__hpps__hppsfilter.c	2011-10-11 17:26:53.000000000 +0300
@@ -0,0 +1,10 @@
+--- prnt/hpps/hppsfilter.c.orig	2011-10-11 17:25:10.000000000 +0300
++++ prnt/hpps/hppsfilter.c	2011-10-11 17:25:29.000000000 +0300
+@@ -38,6 +38,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <cups/cups.h>
++#include <cups/ppd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110111444.p9BEi18G093635>