NetBSD Problem Report #46710

From Ephaeton@gmx.net  Mon Jul 16 19:10:26 2012
Return-Path: <Ephaeton@gmx.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id C741863B85F
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 16 Jul 2012 19:10:26 +0000 (UTC)
Message-Id: <20120716190659.D9D9513631@agamemnon.entropie.local>
Date: Mon, 16 Jul 2012 15:06:59 -0400 (EDT)
From: Ephaeton@gmx.net
Reply-To: Ephaeton@gmx.net
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc-2012Q2 xosview won't build on amd64/6.0
X-Send-Pr-Version: 3.95

>Number:         46710
>Category:       pkg
>Synopsis:       pkgsrc-2012Q2 xosview won't build on amd64/6.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 16 19:15:00 +0000 2012
>Last-Modified:  Wed Jul 18 01:30:02 +0000 2012
>Originator:     Martin S. Weber
>Release:        NetBSD 6.0_BETA2
>Organization:

>Environment:
xosview Makefile $NetBSD: Makefile,v 1.68 2010/06/27 17:34:35 joerg Exp $


System: NetBSD agamemnon.entropie.local 6.0_BETA2 NetBSD 6.0_BETA2 (GENERIC) #1: Sat Jul 14 19:25:57 EDT 2012 root@agamemnon.entropie.local:/space/obj-amd64/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
xosview won't build because it references a non-existent file.


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

        * UVM = yes

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Build dependency kbproto>=1.0.2: found kbproto-1.0.6
=> Build dependency xproto>=7.0.9: found xproto-7.0.23
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.7.1nb1
=> Full dependency libXpm>=3.5.4.2: found libXpm-3.5.10
===> Overriding tools for xosview-1.8.3nb2
===> Extracting for xosview-1.8.3nb2
===> Patching for xosview-1.8.3nb2
=> Applying pkgsrc patches for xosview-1.8.3nb2
===> Creating toolchain wrappers for xosview-1.8.3nb2
===> Configuring for xosview-1.8.3nb2
=> Substituting "unpriv" in config/Makefile.top.in
checking build system type... amd64-unknown-netbsd6.0.
checking host system type... amd64-unknown-netbsd6.0.
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking whether c++ supports bool types... yes
checking whether c++ supports long long types... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/pkg/lib, headers /usr/pkg/include
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for gawk... gawk
checking for ranlib... ranlib
disabled automatic dependencies by default
checking for snprintf... yes
checking how to run the C++ preprocessor... c++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking fstream usability... yes
checking fstream presence... yes
checking for fstream... yes
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking for XpmCreateImageFromData in -lXpm... yes
configure: WARNING:
***************  Warning  *****************
  xosview has not been tested on netbsd6.0..
  So far, it is known to work on the following NetBSD versions:
    netbsd1.0
    netbsd1.1
    netbsd1.2
    netbsd1.3
    netbsd1.4
    netbsd1.5 / netbsdelf1.5
  If it works for version netbsd6.0., please send mail to:
	bgrayson@netbsd.org
  If this message is in error, also notify bgrayson -- we're new
to autoconf!
  Thanks!
*******************************************

host_dir is bsd
checking for swapctl... yes
checking for usleep... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bsd/Makefile
config.status: creating Makefile.config
config.status: creating Makefile.GNU.autodep
config.status: creating Xdefaults
=> Fixing manpage path.
===> Building for xosview-1.8.3nb2
cd ./bsd && /usr/bin/make
c++ -O2 -pipe -DUVM -I/usr/pkg/include -O2 -pipe -DUVM -I/usr/pkg/include  -I/usr/pkg/include  -DXOSVIEW_VERSION=\"1.8.3\" -I/space/obj/sysutils/xosview/work/xosview-1.8.3 -I/space/obj/sysutils/xosview/work/xosview-1.8.3/bsd -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DHAVE_XPM=1 -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_BATTERY_METER=1 -DHAVE_USLEEP=1 -I..  -c MeterMaker.cc -o MeterMaker.o
MeterMaker.cc:34:1: warning: deprecated conversion from string constant to 'char*'
MeterMaker.cc:35:1: warning: deprecated conversion from string constant to 'char*'
MeterMaker.cc:36:1: warning: deprecated conversion from string constant to 'char*'
c++ -O2 -pipe -DUVM -I/usr/pkg/include -O2 -pipe -DUVM -I/usr/pkg/include  -I/usr/pkg/include  -DXOSVIEW_VERSION=\"1.8.3\" -I/space/obj/sysutils/xosview/work/xosview-1.8.3 -I/space/obj/sysutils/xosview/work/xosview-1.8.3/bsd -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DHAVE_XPM=1 -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_BATTERY_METER=1 -DHAVE_USLEEP=1 -I..  -c btrymeter.cc -o btrymeter.o
btrymeter.cc:23:28: fatal error: machine/apmvar.h: No such file or directory
compilation terminated.
*** Error code 1

>How-To-Repeat:
on 6.0/amd64, go to $PKGSRC, cvs update to -rpkgsrc-2012Q2,
cd sysutils/xosview && make

>Fix:
	I reported it, now it's your turn.


>Audit-Trail:
From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46710: pkgsrc-2012Q2 xosview won't build on amd64/6.0
Date: Tue, 17 Jul 2012 03:40:22 -0400

 On Mon, 16 Jul 2012 19:15:00 +0000 (UTC)
 Ephaeton@gmx.net wrote:

 > c++ -O2 -pipe -DUVM -I/usr/pkg/include -O2 -pipe -DUVM -I/usr/pkg/include  -I/usr/pkg/include  -DXOSVIEW_VERSION=\"1.8.3\" -I/space/obj/sysutils/xosview/work/xosview-1.8.3 -I/space/obj/sysutils/xosview/work/xosview-1.8.3/bsd -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DHAVE_XPM=1 -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_BATTERY_METER=1 -DHAVE_USLEEP=1 -I..  -c btrymeter.cc -o btrymeter.o
 > btrymeter.cc:23:28: fatal error: machine/apmvar.h: No such file or directory
 > compilation terminated.
 > *** Error code 1
 > 	
 > >How-To-Repeat:
 > on 6.0/amd64, go to $PKGSRC, cvs update to -rpkgsrc-2012Q2,
 > cd sysutils/xosview && make

 Unfortunately, I'm unable to reproduce this error on netbsd-6/amd64.
 I can't find any attempt to build btrymeter.cc in the backlog either,
 however, so I assume that this only matters if a battery meter was
 found at configure time, setting -DHAVE_BATTERY_METER.  This is itself
 bogus, as one may want to select which features to support when
 building, to run the package on another system...

 Meanwhile, does gkrellm work better for you?  Ideally our native systat
 should also be more powerful, but that's another matter :)

 I'll try to look further into this when I have more time and possibly
 replace those detected options by mk options, or simply force all
 options to be enabled; then it should be easier to reproduce the build
 error and patch the package.  It also seems that neither netbsd-5 nor
 netbsd-6 have machine/apmvar.h exposed in a machine-independent way
 anymore (and we have envsys for sensors today):

 cd /usr/include/ && grep -r apmvar *
 i386/apmvar.h:/*        $NetBSD: apmvar.h,v 1.25 2008/04/28 20:23:24 martin Exp $       */
 -- 
 Matt

From: "Martin S. Weber" <Ephaeton@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46710: pkgsrc-2012Q2 xosview won't build on amd64/6.0
Date: Tue, 17 Jul 2012 07:22:20 -0400

 On Tue, Jul 17, 2012 at 07:45:02AM +0000, Matthew Mondor wrote:
 > The following reply was made to PR pkg/46710; it has been noted by GNATS.
 > 
 > From: Matthew Mondor <mm_lists@pulsar-zone.net>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/46710: pkgsrc-2012Q2 xosview won't build on amd64/6.0
 > Date: Tue, 17 Jul 2012 03:40:22 -0400
 > 
 >  On Mon, 16 Jul 2012 19:15:00 +0000 (UTC)
 >  Ephaeton@gmx.net wrote:
 >  
 >  > c++ -O2 -pipe -DUVM -I/usr/pkg/include -O2 -pipe -DUVM -I/usr/pkg/include  -I/usr/pkg/include  -DXOSVIEW_VERSION=\"1.8.3\" -I/space/obj/sysutils/xosview/work/xosview-1.8.3 -I/space/obj/sysutils/xosview/work/xosview-1.8.3/bsd -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DHAVE_XPM=1 -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_BATTERY_METER=1 -DHAVE_USLEEP=1 -I..  -c btrymeter.cc -o btrymeter.o
 >  > btrymeter.cc:23:28: fatal error: machine/apmvar.h: No such file or directory
 >  > compilation terminated.
 >  > *** Error code 1
 >  > 	
 >  > >How-To-Repeat:
 >  > on 6.0/amd64, go to $PKGSRC, cvs update to -rpkgsrc-2012Q2,
 >  > cd sysutils/xosview && make
 >  
 >  Unfortunately, I'm unable to reproduce this error on netbsd-6/amd64.
 >  I can't find any attempt to build btrymeter.cc in the backlog either,
 >  however, so I assume that this only matters if a battery meter was
 >  found at configure time, setting -DHAVE_BATTERY_METER.  This is itself
 >  bogus, as one may want to select which features to support when
 >  building, to run the package on another system...

 Hmm, I thought that in $WRKDIR/bsd/Makefile the btrmeter.o is always
 included. The configure script seems to check for /dev/apm existence?
 Maybe I should nuke my /dev/ and re-MAKEDEV it, as it stems from eons
 ago (/dev/apm is from Sep 14 2008) and that's the real source of the problem.
 (I recently switched i386->amd64 and didn't nuke my /dev/ then, somehow
 assuming that we only grow /dev and never remove nodes from MAKEDEV)

 Indeed, removing /dev/apm makes xosview build.

 >  Meanwhile, does gkrellm work better for you?  

 Ugh. It ain't so bad but I prefer my xosview for I have spent the time
 to write the proper xresource configuration for it. Besides I hate the
 fact that gkrellm doesn't have a memory graph :)

 I'm unsure on whether or not this can be closed, as it's only caused by
 bogus /dev/ entries. Then again, the configure script shouldn't probably
 check for nodes in /dev/, but for existing symbols in header files or
 sysctl nodes, should it?

 Regards,
 -Martin

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46710: pkgsrc-2012Q2 xosview won't build on amd64/6.0
Date: Tue, 17 Jul 2012 21:07:35 -0400

 On Tue, 17 Jul 2012 11:25:01 +0000 (UTC)
 "Martin S. Weber" <Ephaeton@gmx.net> wrote:

 >  I'm unsure on whether or not this can be closed, as it's only caused by
 >  bogus /dev/ entries. Then again, the configure script shouldn't probably
 >  check for nodes in /dev/, but for existing symbols in header files or
 >  sysctl nodes, should it?

 Exactly, ideally from header files only, such that the package can be
 used on other systems with the same OS.

 I think that considering there's really an issue, the PR can probably
 remain open, however the synopsis could probably be changed to
 something like "xosview configure should rely on header files
 and compile with all functionality"

 If I understand, now that you deleted the stray device node it doesn't
 build with support for battery anymore?  Ideally it should, but using
 the new interface, and at runtime detecting if a battery sensor is
 present, so more work will be needed, including sending patches to
 upstream...
 -- 
 Matt

From: "Martin S. Weber" <Ephaeton@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46710: pkgsrc-2012Q2 xosview won't build on amd64/6.0
Date: Tue, 17 Jul 2012 21:29:00 -0400

 On Wed, Jul 18, 2012 at 01:10:06AM +0000, Matthew Mondor wrote:
 > The following reply was made to PR pkg/46710; it has been noted by GNATS.
 > 
 > From: Matthew Mondor <mm_lists@pulsar-zone.net>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/46710: pkgsrc-2012Q2 xosview won't build on amd64/6.0
 > Date: Tue, 17 Jul 2012 21:07:35 -0400
 > (...)
 >  If I understand, now that you deleted the stray device node it doesn't
 >  build with support for battery anymore?  

 I think it can get to battery status only via APM, not other means,
 but I might be mistaken. Calling xosview +battery (forcing display
 of battery level) does not display a graph for the battery, so I assume
 this functionality is not available the way I built it.

 I agree the synopsis can be updated.

 Regards,
 -Martin

>Unformatted:

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.