NetBSD Problem Report #54016

From hf@spg.tu-darmstadt.de  Tue Feb 26 09:13:54 2019
Return-Path: <hf@spg.tu-darmstadt.de>
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 CBE537A1E1
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 26 Feb 2019 09:13:54 +0000 (UTC)
Message-Id: <201902260913.x1Q9DlVu010271@Hochstuhl.nt.e-technik.tu-darmstadt.de>
Date: Tue, 26 Feb 2019 10:13:47 +0100 (CET)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: devel/py-curses build broken
X-Send-Pr-Version: 3.95

>Number:         54016
>Category:       pkg
>Synopsis:       devel/py-curses build broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 26 09:15:00 +0000 2019
>Closed-Date:    Mon Jul 01 09:59:47 +0000 2019
>Last-Modified:  Mon Jul 01 09:59:47 +0000 2019
>Originator:     Hauke Fath
>Release:        NetBSD 8.0_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Hochstuhl 8.0_STABLE NetBSD 8.0_STABLE (MONOLITHIC-$Revision$) #0: Fri Feb 22 14:01:09 CET 2019 hf@Hochstuhl:/var/obj/netbsd-builds/8/amd64/sys/arch/amd64/compile/MONOLITHIC amd64
Architecture: x86_64
Machine: amd64
>Description:

	The build of devel/py-curses is broken for (at least)
	python27:

[...]
running build
running build_ext
building '_curses' extension
creating build
creating build/temp.netbsd-8.0_STABLE-amd64-2.7
creating build/temp.netbsd-8.0_STABLE-amd64-2.7/Modules
gcc -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/include -I/usr/pkg/include -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -fPIC -DHAVE_NCURSES_H -I/include -I/usr/pkg/include/python2.7 -c Modules/_cursesmodule.c -o build/temp.netbsd-8.0_STABLE-amd64-2.7/Modules/_cursesmodule.o
Modules/_cursesmodule.c: In function 'PyCursesWindow_EchoChar':
Modules/_cursesmodule.c:676:44: error: dereferencing pointer to incomplete type 'WINDOW {aka struct __window}'
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 : FALSE)
                                            ^
Modules/_cursesmodule.c:821:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 : FALSE)
                                                       ^
Modules/_cursesmodule.c:821:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
Modules/_cursesmodule.c:676:55: note: each undeclared identifier is reported only once for each function it appears in
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 : FALSE)
                                                       ^
Modules/_cursesmodule.c:821:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
Modules/_cursesmodule.c: In function 'PyCursesWindow_NoOutRefresh':
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 : FALSE)
                                                       ^
Modules/_cursesmodule.c:1263:13: note: in expansion of macro 'py_is_pad'
         if (py_is_pad(self->win))
             ^
Modules/_cursesmodule.c: In function 'PyCursesWindow_Refresh':
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 : FALSE)
                                                       ^
Modules/_cursesmodule.c:1406:13: note: in expansion of macro 'py_is_pad'
         if (py_is_pad(self->win))
             ^
Modules/_cursesmodule.c: In function 'PyCursesWindow_SubWin':
Modules/_cursesmodule.c:676:55: error: '_ISPAD' undeclared (first use in this function)
 #define py_is_pad(win)      ((win) ? ((win)->_flags & _ISPAD) != 0 : FALSE)
                                                       ^
Modules/_cursesmodule.c:1473:9: note: in expansion of macro 'py_is_pad'
     if (py_is_pad(self->win)) {
         ^
error: command 'gcc' failed with exit status 1
*** Error code 1

Stop.
make[1]: stopped in /u/sources/pkgsrc/devel/py-curses
*** Error code 1

	I don't know what is up with the many patch failures, either.




>How-To-Repeat:

	Attempt to build py27-curses.


>Fix:

	Yes, please - this blocks building devel/mercurial.



>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sat, 29 Jun 2019 23:21:24 +0000
State-Changed-Why:
I can't reproduce this, is it still an issue for you?

State-Changed-From-To: feedback->closed
State-Changed-By: hauke@NetBSD.org
State-Changed-When: Mon, 01 Jul 2019 09:59:47 +0000
State-Changed-Why:
Both -27 and -37 versions of the package build fine now.
.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.