[cups-devel] CUPS 2.x on HP-UX

Peter Klosky peterklosky at yahoo.com
Mon Dec 29 14:01:51 PST 2014


Two things:
1.  Can anyone other than myself see this email?  I'm not sure if my emails are reaching list members, though I do see that the list archives show them.
2.  At first glance, the source to ippserver.c appears to be inconsistent with respect to AVAHI vs. DNSSD vs. neither. Two contrasting ways it is handled are shown below.
Thoughts?
thanks,
Peter
Method one follows, in which both HAVE_DNSSD and HAVE_AVARI are checked, and the possibility that neither is present is handled.
#ifdef HAVE_DNSSD
typedef DNSServiceRef _ipp_srv_t;       /* Service reference */
typedef TXTRecordRef _ipp_txt_t;        /* TXT record */#elif defined(HAVE_AVAHI)
typedef AvahiEntryGroup *_ipp_srv_t;    /* Service reference */
typedef AvahiStringList *_ipp_txt_t;    /* TXT record */#else
typedef void *_ipp_srv_t;               /* Service reference */
typedef void *_ipp_txt_t;               /* TXT record */
#endif /* HAVE_DNSSD */

Method two follows, in which the code assumes HAVE_AVARI without checking.
#  ifdef HAVE_DNSSD
static DNSServiceRef    DNSSDMaster = NULL;
#  else /* HAVE_AVAHI */
static AvahiThreadedPoll *DNSSDMaster = NULL;
static AvahiClient      *DNSSDClient = NULL;
#  endif /* HAVE_DNSSD */

      From: Peter Klosky <peterklosky at yahoo.com>
 To: "cups-devel at cups.org" <cups-devel at cups.org> 
 Sent: Monday, December 29, 2014 4:06 PM
 Subject: CUPS 2.x on HP-UX
   
 Hello CUPS Developer Friends,
Trying to compile 2.0.1 CUPS on HP-UX, I see an error regarding Avahi, shown below.  Do I need to take any special steps to install Avahi before attempting to compile CUPS?  Has anyone ever been able to run CUPS on HP-UX?
thanks,
Peter
Compiling ippserver.c...
"ippserver.c", line 425: error #2020: identifier "AvahiThreadedPoll" is
          undefined


  


More information about the cups mailing list