NetBSD Problem Report #51247

From www@NetBSD.org  Wed Jun 15 08:18:57 2016
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 892C17A469
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 15 Jun 2016 08:18:57 +0000 (UTC)
Message-Id: <20160615081856.36ECC7AA99@mollari.NetBSD.org>
Date: Wed, 15 Jun 2016 08:18:56 +0000 (UTC)
From: topiarz@post.cz
Reply-To: topiarz@post.cz
To: gnats-bugs@NetBSD.org
Subject: devel/glibmm will not compile, needs c++11
X-Send-Pr-Version: www-1.0

>Number:         51247
>Category:       pkg
>Synopsis:       devel/glibmm will not compile, needs c++11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    maya
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 15 08:20:00 +0000 2016
>Closed-Date:    Tue Sep 27 10:18:50 +0000 2016
>Last-Modified:  Tue Sep 27 10:18:50 +0000 2016
>Originator:     Petr Topiarz
>Release:        pkgsrc-current
>Organization:
Petr Topiarz
>Environment:
NetBSD T40.openunix.eu 6.1.5 NetBSD 6.1.5 (GENERIC) i386
>Description:
Cannot compile mate because of problem with ../../devel/glibmm
I guess it needs a line or two into Makefile and it will work well - however I have no idea how to formulate the option for config.

cd /usr/pkgsrc/meta-pkgs/mate
make install
.
.
=> Full dependency mate-system-monitor>=1.14.0: NOT found
=> Verifying reinstall for ../../sysutils/mate-system-monitor
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for mate-system-monitor-1.14.0.tar.xz
=> Checksum RMD160 OK for mate-system-monitor-1.14.0.tar.xz
=> Checksum SHA512 OK for mate-system-monitor-1.14.0.tar.xz
===> Installing dependencies for mate-system-monitor-1.14.0
=> Tool dependency itstool-[0-9]*: found itstool-2.0.2
=> Tool dependency libxml2-[0-9]*: found libxml2-2.9.4
=> Tool dependency libtool-base>=2.2.6bnb3: found libtool-base-2.4.2nb12
=> Tool dependency intltool>=0.40.0: found intltool-0.51.0nb1
=> Tool dependency gmake>=3.81: found gmake-4.2nb1
=> Tool dependency perl>=5.0: found perl-5.24.0
=> Tool dependency pkgconf-[0-9]*: found pkgconf-0.9.12.20151211nb2
=> Build dependency x11-links>=1.02: found x11-links-1.02
=> Build dependency gcc47>=4.7: found gcc47-4.7.4nb1
=> Full dependency {gcc47,gcc47-libs}>=4.7: found gcc47-4.7.4nb1
=> Full dependency {gcc47,gcc47-libs}>=4.7.0: found gcc47-4.7.4nb1
=> Full dependency glib2>=2.34.0: found glib2-2.48.1
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.22
=> Full dependency glibmm>=2.32.1nb1: NOT found
=> Verifying reinstall for ../../devel/glibmm
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Configuring for glibmm-2.48.1
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports GNU make features... yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking whether c++ supports C++11 features by default... no
checking whether c++ supports C++11 features with -std=c++11... no
checking whether c++ supports C++11 features with -std=c++0x... no
checking whether c++ supports C++11 features with +std=c++11... no
checking whether c++ supports C++11 features with -h std=c++11... no
configure: error: *** A compiler with support for C++11 language features is required.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/glibmm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/glibmm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/sysutils/mate-system-monitor
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/meta-pkgs/mate
T40# 

>How-To-Repeat:
install pkgsrc-current on i386 machine with 6.1.5 base
cd /usr/pkgsrc/meta-pkgs/mate
make install
(and if you go over my two bugs with libintl.la, you will eventually arrive at compiling /usr/pkgsrc/devel/glibmm where it stops)
>Fix:
Probably to change compilation options or the compiler ???

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->youri
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Wed, 15 Jun 2016 18:50:16 +0000
Responsible-Changed-Why:
Over to MATE maintainer.


Responsible-Changed-From-To: youri->adam
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Wed, 15 Jun 2016 19:48:55 +0000
Responsible-Changed-Why:
Sorry, turn over to _this_ package's maintainer.


From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51247: devel/glibmm will not compile, needs c++11
Date: Sat, 25 Jun 2016 16:53:00 +0000

 Maybe try adding
 GCC_REQD+= 4.7

 (newer versions have more C++11 support, too)
 Don't have 6.1.5 readily available to test if it is enough.

From: Petr Topiarz <topiarz@post.cz>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51247: devel/glibmm will not compile, needs c++11
Date: Tue, 28 Jun 2016 08:42:27 +0200

 I tried it, and got a little further, but it ends up with:
 checking  dependency style of c++ ... gcc3
 checking whether c++ suports C++11 features by default ... no
 checking whether c++ suports C++11 features with -std=c++11 ... no
 checking whether c++ suports C++11 features with -std=c++0x ... no
 checking whether c++ suports C++11 features with +std=c++11 ... no
 checking whether c++ suports C++11 features with -h std=c++11 ... no
 configure: error : ***** A compiler with support for C++11 language features is required.
 *** Error code 1

 so it is not really it...
 Peter

 On Sat, Jun 25, 2016 at 04:55:01PM +0000, coypu@SDF.ORG wrote:
 > The following reply was made to PR pkg/51247; it has been noted by GNATS.
 > 
 > From: coypu@SDF.ORG
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/51247: devel/glibmm will not compile, needs c++11
 > Date: Sat, 25 Jun 2016 16:53:00 +0000
 > 
 >  Maybe try adding
 >  GCC_REQD+= 4.7
 >  
 >  (newer versions have more C++11 support, too)
 >  Don't have 6.1.5 readily available to test if it is enough.
 >  

 -- 
 Petr Topiarz
 -------------------------------------
 Sent by Mutt - by hackers for hackers

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51247: devel/glibmm will not compile, needs c++11
Date: Tue, 28 Jun 2016 16:45:28 +0000

 On Tue, Jun 28, 2016 at 06:45:01AM +0000, Petr Topiarz wrote:
  >  I tried it, and got a little further, but it ends up with:
  >  checking  dependency style of c++ ... gcc3
  >  checking whether c++ suports C++11 features by default ... no
  >  checking whether c++ suports C++11 features with -std=c++11 ... no
  >  checking whether c++ suports C++11 features with -std=c++0x ... no
  >  checking whether c++ suports C++11 features with +std=c++11 ... no
  >  checking whether c++ suports C++11 features with -h std=c++11 ... no
  >  configure: error : ***** A compiler with support for C++11 language features is required.
  >  *** Error code 1
  >  
  >  so it is not really it...

 try gcc 4.8? :-/

 (yes it's a pain to build multiple gccs, sorry...)

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51247 CVS commit: pkgsrc/devel/glibmm
Date: Tue, 27 Sep 2016 02:37:32 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Tue Sep 27 02:37:32 UTC 2016

 Modified Files:
 	pkgsrc/devel/glibmm: Makefile

 Log Message:
 glibmm: add GCC_REQD+=4.8. stop failing configure test
 which checks for -std=c++11.

 Fixes PR 51247 "devel/glibmm will not compile, needs c++11"


 To generate a diff of this commit:
 cvs rdiff -u -r1.68 -r1.69 pkgsrc/devel/glibmm/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: adam->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Tue, 27 Sep 2016 10:18:50 +0000
Responsible-Changed-Why:
mine


State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 27 Sep 2016 10:18:50 +0000
State-Changed-Why:
I tested an identical setup and the fix works.


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