NetBSD Problem Report #49340

From oster@cs.usask.ca  Thu Oct 30 16:34:15 2014
Return-Path: <oster@cs.usask.ca>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(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 375BDA669B
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 30 Oct 2014 16:34:15 +0000 (UTC)
Message-Id: <20141030163320.7F42587D36@mickey.usask.ca>
Date: Thu, 30 Oct 2014 10:33:20 -0600 (CST)
From: oster@netbsd.org
Reply-To: oster@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: graphics/libgltf fails to build on NetBSD-6.1.5/amd64
X-Send-Pr-Version: 3.95

>Number:         49340
>Category:       pkg
>Synopsis:       graphics/libgltf fails to build on NetBSD-6.1.5/amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 30 16:35:00 +0000 2014
>Last-Modified:  Thu Jan 01 20:10:01 +0000 2015
>Originator:     Greg Oster
>Release:        NetBSD 6.1.5
>Organization:
>Environment:
System: NetBSD mickey 6.1.5 NetBSD 6.1.5 (QUAD) #0: Tue Sep 30 09:10:25 CST 2014 oster@quad:/u1/builds/build254/src/obj/amd64/u1/builds/build254/src/sys/arch/amd64/compile/QUAD amd64
Architecture: x86_64
Machine: amd64
>Description:

graphics/libgltf fails to build on amd64 with over 8000 lines of error
output, ending with:

...
/usr/pkgsrc/graphics/libgltf/work.mickey/.buildlink/include/boost/spirit/home/classic/core/composite/kleene_star.hpp:45:5: warning: base class 'class boost::spirit::classic::unary<boost::spirit::classic::difference<boost::spirit::classic::rule<boost::spirit::classic::scanner<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, boost::spirit::classic::scanner_policies<boost::spirit::classic::no_skipper_iteration_policy<boost::spirit::classic::skip_parser_iteration_policy<boost::spirit::classic::alternative<boost::spirit::classic::alternative<boost::spirit::classic::space_parser, boost::spirit::classic::confix_parser<boost::spirit::classic::strlit<const char*>, boost::spirit::classic::kleene_star<boost::spirit::classic::anychar_parser>, boost::spirit::classic::alternative<boost::spirit::classic::eol_parser, boost::spirit::classic::end_parser>, boost::spirit::classic::unary_parser_category, boost::spirit::classic::non_nested, boost::spirit::classic::is
 _lexeme> >, boost::spirit::classic::confix_parser<boost::spirit::classic::strlit<const char*>, boost::spirit::classic::kleene_star<boost::spirit::classic::anychar_parser>, boost::spirit::classic::strlit<const char*>, boost::spirit::classic::unary_parser_category, boost::spirit::classic::non_nested, boost::spirit::classic::is_lexeme> >, boost::spirit::classic::iteration_policy> >, boost::spirit::classic::match_policy, boost::spirit::classic::action_policy> >, boost::spirit::classic::nil_t, boost::spirit::classic::nil_t>, boost::spirit::classic::chlit<char> >, boost::spirit::classic::parser<boost::spirit::classic::kleene_star<boost::spirit::classic::difference<boost::spirit::classic::rule<boost::spirit::classic::scanner<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, boost::spirit::classic::scanner_policies<boost::spirit::classic::no_skipper_iteration_policy<boost::spirit::classic::skip_parser_iteration_policy<boost::spirit::classic::alternative
 <boost::spirit::classic::alternative<boost::spirit::classic::space_parser, boost::spirit::classic::confix_parser<boost::spirit::classic::strlit<const char*>, boost::spirit::classic::kleene_star<boost::spirit::classic::anychar_parser>, boost::spirit::classic::alternative<boost::spirit::classic::eol_parser, boost::spirit::classic::end_parser>, boost::spirit::classic::unary_parser_category, boost::spirit::classic::non_nested, boost::spirit::classic::is_lexeme> >, boost::spirit::classic::confix_parser<boost::spirit::classic::strlit<const char*>, boost::spirit::classic::kleene_star<boost::spirit::classic::anychar_parser>, boost::spirit::classic::strlit<const char*>, boost::spirit::classic::unary_parser_category, boost::spirit::classic::non_nested, boost::spirit::classic::is_lexeme> >, boost::spirit::classic::iteration_policy> >, boost::spirit::classic::match_policy, boost::spirit::classic::action_policy> >, boost::spirit::classic::nil_t, boost::spirit::classic::nil_t>, boost::spi
 rit::classic::chlit<char> > > > >' has a non-virtual destructor
*** [LoadScene.lo] Error code 1

make: stopped in /usr/pkgsrc/graphics/libgltf/work.mickey/libgltf-0.0.2/src
8 errors

...


>How-To-Repeat:

cd /usr/pkgsrc/graphics/libgltf
make install package

>Fix:

Please.  Without this libreoffice4 doesn't build.

Thanks.

(details, logs, etc, available upon request.  It's easy to reproduce.)


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sun, 02 Nov 2014 10:00:39 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, oster@netbsd.org
Cc: 
Subject: Re: pkg/49340: graphics/libgltf fails to build on
 NetBSD-6.1.5/amd64
Date: Mon, 03 Nov 2014 23:51:43 +0900 (JST)

 Hi,

 Adding

 # Fix build with GCC 4.5.3 under NetBSD 6.1
 BUILDLINK_TRANSFORM+=   rm:-Weffc++

 to pkgsrc/graphics/libgltf/Makefile

 and removing throw() from posix_memalign definition
 in /usr/include/gcc-4.5/mm_malloc.h .
 (See thread that starts from
 http://mail-index.netbsd.org/current-users/2014/03/08/msg024419.html
 and PR http://gnats.netbsd.org/49199 .)

 are required to build libgltf with GCC 4.5.3.

 Thank you.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: Greg Oster <oster@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: ryo_on@yk.rim.or.jp, ryoon@NetBSD.org, gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/49340: graphics/libgltf fails to build on
 NetBSD-6.1.5/amd64
Date: Wed, 26 Nov 2014 10:22:52 -0600

 On Mon,  3 Nov 2014 14:55:00 +0000 (UTC)
 Ryo ONODERA <ryo_on@yk.rim.or.jp> wrote:

 > The following reply was made to PR pkg/49340; it has been noted by
 > GNATS.
 > 
 > From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
 > To: gnats-bugs@NetBSD.org, oster@netbsd.org
 > Cc: 
 > Subject: Re: pkg/49340: graphics/libgltf fails to build on
 >  NetBSD-6.1.5/amd64
 > Date: Mon, 03 Nov 2014 23:51:43 +0900 (JST)
 > 
 >  Hi,
 >  
 >  Adding
 >  
 >  # Fix build with GCC 4.5.3 under NetBSD 6.1
 >  BUILDLINK_TRANSFORM+=   rm:-Weffc++
 >  
 >  to pkgsrc/graphics/libgltf/Makefile
 >  
 >  and removing throw() from posix_memalign definition
 >  in /usr/include/gcc-4.5/mm_malloc.h .
 >  (See thread that starts from
 >  http://mail-index.netbsd.org/current-users/2014/03/08/msg024419.html
 >  and PR http://gnats.netbsd.org/49199 .)
 >  
 >  are required to build libgltf with GCC 4.5.3.

 Adding this:

 GCC_REQD+=4.7

 to the Makefile let things build without having to modify anything on
 the local system.  I suspect something similar to this is preferable to
 asking people to modify the default system.

 Thanks.

 Later...

 Greg Oster

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49340: graphics/libgltf fails to build on
 NetBSD-6.1.5/amd64
Date: Fri, 02 Jan 2015 04:12:04 +0900 (JST)

 Hi,

 netbsd-6 has a fix for this problem now.
 See
 http://mail-index.netbsd.org/source-changes/2014/11/03/msg060077.html .

 Can I close this PR?
 Ideally we should provide a solution for released NetBSD...

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49340: graphics/libgltf fails to build on NetBSD-6.1.5/amd64
Date: Thu, 1 Jan 2015 20:09:56 +0000

 On Thu, Jan 01, 2015 at 07:15:00PM +0000, Ryo ONODERA wrote:
  >  netbsd-6 has a fix for this problem now.
  >  See
  >  http://mail-index.netbsd.org/source-changes/2014/11/03/msg060077.html .
  >  
  >  Can I close this PR?
  >  Ideally we should provide a solution for released NetBSD...

 Setting GCC_REQD for the specific netbsd-6 releases that don't work
 would serve.

 -- 
 David A. Holland
 dholland@netbsd.org

>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.