pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/48882: print/cups build fails



The following reply was made to PR pkg/48882; it has been noted by GNATS.

From: Leonardo Taccari <iamleot%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/48882: print/cups build fails
Date: Sun, 8 Jun 2014 22:46:25 +0200

 --x+6KMIRAuhnl3hBn
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Sun, Jun 08, 2014 at 07:35:00PM +0000, Hauke Fath wrote:
 > [...]
 > Compiling dirsvc.c...
 > Reaping winning child 0x7f7ff7b631b0 PID 13928 
 > Live child 0x7f7ff7b631b0 (dirsvc.o) PID 25792 
 > libtool: compile:  gcc -Wall -Wno-format-y2k -Wunused -fPIC -Os -g 
 > -fstack-protector -Wno-tautological-compare -I.. -D_CUPS_SOURCE 
 > -I/var/obj/pkgsrc/print/cups/work/.buildlink/include -O2 -pipe -Wall 
 > -Wno-error -DOPENSSL_DISABLE_OLD_DES_SUPPORT -D_LARGEFILE_SOURCE 
 > -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -c dirsvc.c  -fPIC -DPIC 
 > -o .libs/dirsvc.o
 > dirsvc.c: In function 'dnssdErrorString':
 > dirsvc.c:835:10: error: 'kDNSServiceErr_Timeout' undeclared (first use in 
 > this function)
 > dirsvc.c:835:10: note: each undeclared identifier is reported only once for 
 > each function it appears in
 > At top level:
 > cc1: warning: unrecognized command line option "-Wno-tautological-compare"
 > Reaping losing child 0x7f7ff7b631b0 PID 25792 
 > ../Makedefs:247: recipe for target 'dirsvc.o' failed
 > gmake[1]: *** [dirsvc.o] Error 1
 > Removing child 0x7f7ff7b631b0 PID 25792 from chain.
 > Reaping losing child 0x7f7ff7b5d200 PID 22199 
 > Makefile:31: recipe for target 'all' failed
 > gmake: *** [all] Error 1
 > Removing child 0x7f7ff7b5d200 PID 22199 from chain.
 > *** Error code 2
 Sorry, I forgot to add this patch... The attached patches should fix
 this problem.
 
 --x+6KMIRAuhnl3hBn
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=cups-patches
 
 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/print/cups/distinfo,v
 retrieving revision 1.101
 diff -u -r1.101 distinfo
 --- distinfo   7 Jun 2014 11:54:54 -0000       1.101
 +++ distinfo   8 Jun 2014 20:41:31 -0000
 @@ -17,4 +17,4 @@
  SHA1 (patch-config.h.in) = c18c4afac00eb2c4e03e5886095152091fd217aa
  SHA1 (patch-ppdc_Makefile) = a45af3310e706dd6433f029c55cf62e492de3448
  SHA1 (patch-scheduler_auth.c) = 70f1eda9d6d81eabc080c037fac0c2d4bb229db4
 -SHA1 (patch-scheduler_dirsvc.c) = a4967c2c5841a8b51c24becd5a0f796daa3c5be2
 +SHA1 (patch-scheduler_dirsvc.c) = 79bcc46c2120a77465fc33b1684d60eeee689f8b
 Index: patches/patch-scheduler_dirsvc.c
 ===================================================================
 RCS file: /cvsroot/pkgsrc/print/cups/patches/patch-scheduler_dirsvc.c,v
 retrieving revision 1.3
 diff -u -r1.3 patch-scheduler_dirsvc.c
 --- patches/patch-scheduler_dirsvc.c   7 Jun 2014 11:54:54 -0000       1.3
 +++ patches/patch-scheduler_dirsvc.c   8 Jun 2014 20:41:32 -0000
 @@ -1,6 +1,10 @@
  $NetBSD: patch-scheduler_dirsvc.c,v 1.3 2014/06/07 11:54:54 wiz Exp $
  
 ---- scheduler/dirsvc.c.orig     2014-03-05 21:11:32.000000000 +0000
 +o Fix building without dnssd option.
 +o net/mDNSResponder-258.14 does not define kDNSServiceErr_Timeout, just threat
 + it like kDNSServiceErr_Unknown.
 +
 +--- scheduler/dirsvc.c.orig   2014-03-05 21:11:32.000000000 +0000
  +++ scheduler/dirsvc.c
  @@ -237,11 +237,13 @@ cupsdStartBrowsing(void)
     if (BrowseLocalProtocols & BROWSE_SMB)
 @@ -32,3 +36,13 @@
     if ((BrowseLocalProtocols & BROWSE_DNSSD) && DNSSDMaster)
       dnssdStop();
   #endif /* HAVE_DNSSD || HAVE_AVAHI */
 +@@ -829,9 +831,6 @@ dnssdErrorString(int error)               /* I - Erro
 + 
 +     case kDNSServiceErr_PollingMode :
 +         return ("Service polling mode error.");
 +-
 +-    case kDNSServiceErr_Timeout :
 +-        return ("Service timeout.");
 +   }
 + 
 + #  else /* HAVE_AVAHI */
 
 --x+6KMIRAuhnl3hBn--
 


Home | Main Index | Thread Index | Old Index