NetBSD Problem Report #45593

From diro@nixsyspaus.org  Wed Nov  9 14:43:47 2011
Return-Path: <diro@nixsyspaus.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 4998963C39E
	for <gnats-bugs@gnats.netbsd.org>; Wed,  9 Nov 2011 14:43:47 +0000 (UTC)
Message-Id: <20111109144342.E8D542041E5@asche.nixsyspaus.org>
Date: Wed,  9 Nov 2011 14:43:42 +0000 (UTC)
From: diro@nixsyspaus.org
Reply-To: diro@nixsyspaus.org
To: gnats-bugs@gnats.netbsd.org
Subject: comms/obexapp fails on build
X-Send-Pr-Version: 3.95

>Number:         45593
>Category:       pkg
>Synopsis:       comms/obexapp fails on build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 09 14:45:00 +0000 2011
>Closed-Date:    Sun May 15 04:35:05 +0000 2022
>Last-Modified:  Sun May 15 04:35:05 +0000 2022
>Originator:     diro@nixsyspaus.org
>Release:        NetBSD 5.1.0_PATCH
>Organization:
>Environment:
System: NetBSD themobe.lan 5.1.0_PATCH NetBSD 5.1.0_PATCH (THEMOBE2) #1: Tue Oct
25 20:58:49 UTC 2011  root@themobe.lan:/usr/obj/sys/arch/i386/compile/THEMOBE2
i386
Architecture: i386
Machine: i386
>Description:

=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for obexapp-1.4.15.tar.gz
=> Checksum RMD160 OK for obexapp-1.4.15.tar.gz
===> Installing dependencies for obexapp-1.4.15
==========================================================================
The following variables will affect the build process of this package,
obexapp-1.4.15.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * VARBASE = /var

Based on these variables, the following variables have been set:

        * CURSES_TYPE = ncurses
        * TERMCAP_TYPE = curses

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Full dependency openobex>=1.5: found openobex-1.5
=> Full dependency libiconv>=1.9.1nb4: found libiconv-1.14nb2
=> Full dependency readline>=6.0: found readline-6.2
=> Full dependency expat>=2.0.0nb1: found expat-2.0.1nb2
===> Overriding tools for obexapp-1.4.15
===> Extracting for obexapp-1.4.15
mv /usr/pkgsrc/comms/obexapp/work/obexapp /usr/pkgsrc/comms/obexapp/work/obexapp-1.4.15
===> Patching for obexapp-1.4.15
=> Applying pkgsrc patches for obexapp-1.4.15
===> Creating toolchain wrappers for obexapp-1.4.15
===> Configuring for obexapp-1.4.15
=> Substituting "paths" in Makefile obexapp.1 obexapp.h
INFO: [subst.mk:paths] Nothing changed in ./obexapp.1.
INFO: [subst.mk:paths] Nothing changed in ./obexapp.h.
===> Building for obexapp-1.4.15
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c client.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c event.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c log.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c main.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c sdp.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c server.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c stream.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c transport.c
cc -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include  -I/usr/pkg/include/openobex  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror  -I/usr/pkg/include -I/usr/pkg/include/ncurses -c util.c
cc1: warnings being treated as errors
In file included from /usr/pkgsrc/comms/obexapp/work/.buildlink/include/readline/readline.h:37,
                 from util.c:48:
/usr/pkgsrc/comms/obexapp/work/.buildlink/include/readline/rltypedefs.h:34: warning: function declaration isn't a prototype
/usr/pkgsrc/comms/obexapp/work/.buildlink/include/readline/rltypedefs.h:35: warning: function declaration isn't a prototype
/usr/pkgsrc/comms/obexapp/work/.buildlink/include/readline/rltypedefs.h:36: warning: function declaration isn't a prototype
/usr/pkgsrc/comms/obexapp/work/.buildlink/include/readline/rltypedefs.h:37: warning: function declaration isn't a prototype
In file included from util.c:48:
/usr/pkgsrc/comms/obexapp/work/.buildlink/include/readline/readline.h:382: warning: function declaration isn't a prototype
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/comms/obexapp/work/obexapp-1.4.15
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/comms/obexapp
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/comms/obexapp
>How-To-Repeat:
cd pkgsrc/comms/obexapp; bmake;
>Fix:


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 20 Dec 2011 16:49:17 +0000
State-Changed-Why:
It builds for me.

Because obexapp sets USE_BSD_MAKEFILE it can be broken by mk.conf
settings; do you maybe have a non-default WARNS in there?


From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45593 (comms/obexapp fails on build)
Date: Fri, 23 Dec 2011 11:54:16 -0500

 > 
 > Because obexapp sets USE_BSD_MAKEFILE it can be broken by mk.conf
 > settings; do you maybe have a non-default WARNS in there?

 Nothing like that. :\

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45593 (comms/obexapp fails on build)
Date: Sat, 24 Dec 2011 22:29:18 +0000

 On Fri, Dec 23, 2011 at 04:55:03PM +0000, diro@nixsyspaus.org wrote:
  >  > Because obexapp sets USE_BSD_MAKEFILE it can be broken by mk.conf
  >  > settings; do you maybe have a non-default WARNS in there?
  >  
  >  Nothing like that. :\

 You're getting a lot more -W* options than I do, so they must be
 coming from somewhere... dunno what other vector to suggest though.

 Worst case you can hack it by adding

 BUILDLINK_TRANSFORM+=	rm:-Werror

 since fixing readline probably isn't in the cards

 -- 
 David A. Holland
 dholland@netbsd.org

From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45593 (comms/obexapp fails on build)
Date: Wed, 11 Jan 2012 18:00:09 -0500

 On Sat, Dec 24, 2011 at 10:30:04PM +0000, David Holland wrote:
 >  Worst case you can hack it by adding
 >  
 >  BUILDLINK_TRANSFORM+=	rm:-Werror
 >  
 >  since fixing readline probably isn't in the cards

 That definitely fixed it for me. The package builds and installs correctly
 now.

 Thanks!

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 24 Apr 2012 06:47:42 +0000
State-Changed-Why:
Problem is readline's broken headers interacting with -W options
coming from an unknown source. Submitter has a workaround, but I
think this should be fixed properly if possible.


State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 May 2022 04:35:05 +0000
State-Changed-Why:
Was a local problem


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 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.