NetBSD Problem Report #51471

From gson@gson.org  Mon Sep 12 16:10:44 2016
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DDF707A2A4
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 12 Sep 2016 16:10:43 +0000 (UTC)
Message-Id: <20160912161040.4CF477446DA@guava.gson.org>
Date: Mon, 12 Sep 2016 19:10:40 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: xentools42 does not build on NetBSD-current
X-Send-Pr-Version: 3.95

>Number:         51471
>Category:       pkg
>Synopsis:       xentools42 does not build on NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 12 16:15:00 +0000 2016
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2016.07.08.09.15.38
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

When I try to build the xentools42 package from the current pkgsrc on
a NetBSD-current/amd64 system (CVS source date 2016.07.08.09.15.38)
compilation fails as follows:

   daemon/utils.c: In function 'xen_setup':
   daemon/utils.c:115:3: error: %m is only allowed in syslog(3) like functions [-Werror=format=]
      dolog(LOG_ERR,
      ^
   daemon/utils.c:115:3: error: %m is only allowed in syslog(3) like functions [-Werror=format=]
   daemon/utils.c:122:3: error: %m is only allowed in syslog(3) like functions [-Werror=format=]
      dolog(LOG_ERR, "Failed to contact hypervisor (%m)");
      ^
   daemon/utils.c:122:3: error: %m is only allowed in syslog(3) like functions [-Werror=format=]
   cc1: all warnings being treated as errors
   /usr/pkgsrc/sysutils/xentools42/work/xen-4.2.5/tools/console/../../tools/Rules.mk:93: recipe for target 'daemon/utils.o' failed
   gmake[2]: *** [daemon/utils.o] Error 1

>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.