NetBSD Problem Report #55321
From www@netbsd.org Sat May 30 17:27:48 2020
Return-Path: <www@netbsd.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 "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 412601A921A
for <gnats-bugs@gnats.NetBSD.org>; Sat, 30 May 2020 17:27:48 +0000 (UTC)
Message-Id: <20200530172747.3E92A1A9227@mollari.NetBSD.org>
Date: Sat, 30 May 2020 17:27:47 +0000 (UTC)
From: chwalek@poczta.onet.pl
Reply-To: chwalek@poczta.onet.pl
To: gnats-bugs@NetBSD.org
Subject: Cygwin, devel/popt error: static declaration of 'glob_pattern_p' follows non-static declaration
X-Send-Pr-Version: www-1.0
>Number: 55321
>Category: pkg
>Synopsis: Cygwin, devel/popt error: static declaration of 'glob_pattern_p' follows non-static declaration
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 30 17:30:00 +0000 2020
>Originator: Pawel Chwalowski
>Release: pkgsrc-2020Q1
>Organization:
>Environment:
CYGWIN_NT-10.0 xxxx2 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin
>Description:
I can't compile devel/popt on Cygwin.
chwal@xxxx2 ~/NetBSD/pkgsrc/devel/popt
$ bmake
=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20151004nb2
===> Skipping vulnerability checks.
WARNING: No /home/chwal/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/home/chwal/pkg/sbin/pkg_admin -K /home/chwal/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for popt-1.16nb2
/home/chwal/pkg/bin/gmake all-recursive
gmake[1]: Entering directory '/home/chwal/NetBSD/pkgsrc/devel/popt/work/popt-1.16'
Making all in po
gmake[2]: Entering directory '/home/chwal/NetBSD/pkgsrc/devel/popt/work/popt-1.16/po'
gmake[2]: Leaving directory '/home/chwal/NetBSD/pkgsrc/devel/popt/work/popt-1.16/po'
Making all in .
gmake[2]: Entering directory '/home/chwal/NetBSD/pkgsrc/devel/popt/work/popt-1.16'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/chwal/pkg/include -O -I/home/chwal/pkg/include -Wall -W -D_GNU_SOURCE -D_REENTRANT -MT poptconfig.lo -MD -MP -MF .deps/poptconfig.Tpo -c -o poptconfig.lo poptconfig.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/chwal/NetBSD/pkgsrc/devel/popt/work/.buildlink/include -O -Wall -W -D_GNU_SOURCE -D_REENTRANT -MT poptconfig.lo -MD -MP -MF .deps/poptconfig.Tpo -c poptconfig.c -DDLL_EXPORT -DPIC -o .libs/poptconfig.o
poptconfig.c:52:1: error: static declaration of 'glob_pattern_p' follows non-static declaration
52 | glob_pattern_p (const char * pattern, int quote)
| ^~~~~~~~~~~~~~
In file included from poptconfig.c:25:
/usr/include/glob.h:104:15: note: previous declaration of 'glob_pattern_p' was here
104 | int DLLEXPORT glob_pattern_p (const char *, int);
| ^~~~~~~~~~~~~~
poptconfig.c: In function 'poptReadConfigFile':
poptconfig.c:402:9: warning: variable 'xx' set but not used [-Wunused-but-set-variable]
402 | int xx;
| ^~
gmake[2]: *** [Makefile:528: poptconfig.lo] Error 1
gmake[2]: Leaving directory '/home/chwal/NetBSD/pkgsrc/devel/popt/work/popt-1.16'
gmake[1]: *** [Makefile:628: all-recursive] Error 1
gmake[1]: Leaving directory '/home/chwal/NetBSD/pkgsrc/devel/popt/work/popt-1.16'
gmake: *** [Makefile:383: all] Error 2
*** Error code 2
Stop.
bmake[1]: stopped in /home/chwal/NetBSD/pkgsrc/devel/popt
*** Error code 1
Stop.
bmake: stopped in /home/chwal/NetBSD/pkgsrc/devel/popt
chwal@zurg2 ~/NetBSD/pkgsrc/devel/popt
$
>How-To-Repeat:
Run bmake in devel/popt on the Cygwin
>Fix:
(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.