NetBSD Problem Report #56520

From www@netbsd.org  Wed Nov 24 10:58:44 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 837A91A9239
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 24 Nov 2021 10:58:44 +0000 (UTC)
Message-Id: <20211124105843.364B61A923A@mollari.NetBSD.org>
Date: Wed, 24 Nov 2021 10:58:43 +0000 (UTC)
From: pekdon@gmail.com
Reply-To: pekdon@gmail.com
To: gnats-bugs@NetBSD.org
Subject: print/libcups fails to compile on Solaris 10
X-Send-Pr-Version: www-1.0

>Number:         56520
>Category:       pkg
>Synopsis:       print/libcups fails to compile on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 24 11:00:00 +0000 2021
>Originator:     Claes Nästen
>Release:        trunk 2021-11-21
>Organization:
>Environment:
SunOS 5.10 sun4u sparc SUNW,Sun-Blade-1500
>Description:
print/libcups (and other common packages I presume) fails to compile on Solaris 10 due to undefined _CUPS_PRIVATE in cups/getifaddrs-internal.h as "versioning.h" is not included when HAVE_GETIFADDRS is undefined.
>How-To-Repeat:
Build print/libcups on Solaris 10
>Fix:
$NetBSD$

--- cups/getifaddrs-internal.h.orig     2021-11-24 10:08:42.502515904 +0000
+++ cups/getifaddrs-internal.h
@@ -27,6 +27,9 @@
 #    include <sys/socket.h>
 #    include <netinet/in.h>
 #    define CUPS_SOCAST
+#    ifndef HAVE_GETIFADDRS
+#      include "versioning.h"
+#    endif /* HAVE_GETIFADDRS */
 #  endif /* _WIN32 */

 #  if defined(__APPLE__) && !defined(_SOCKLEN_T)

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.