NetBSD Problem Report #51509

From www@NetBSD.org  Mon Sep 26 01:43:49 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 2991D7A167
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 Sep 2016 01:43:49 +0000 (UTC)
Message-Id: <20160926014347.C57FD7A297@mollari.NetBSD.org>
Date: Mon, 26 Sep 2016 01:43:47 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: cad/qcad build fails on NetBSD/i386-7.0_STABLE
X-Send-Pr-Version: www-1.0

>Number:         51509
>Category:       pkg
>Synopsis:       cad/qcad build fails on NetBSD/i386-7.0_STABLE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 26 01:45:01 +0000 2016
>Closed-Date:    Sat Oct 15 18:46:18 +0000 2016
>Last-Modified:  Sat Oct 15 18:46:18 +0000 2016
>Originator:     John D. Baker
>Release:        NetBSD/i386-7.0_STABLE, pkgsrc-HEAD (pre-pkgsrc-2016Q3)
>Organization:
>Environment:
NetBSD verthandi 7.0_STABLE NetBSD 7.0_STABLE (VERTHANDI) #10: Sun Sep 11 17:15:07 CDT 2016  sysop@dpe2850b.technoskunk.fur:/d0/build/netbsd-7/obj/i386/sys/arch/i386/compile/VERTHANDI i386

>Description:
Building cad/qcad on NetBSD/i386-7.0_STABLE fails as follows:

[...]
libtool --silent --mode=compile c++ -c -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/qt4/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libdrm -DQ_TRAILING_DIR_SEP -D_REENTRANT -fPIC -DQCAD_DLL -DQCADCORE_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -I/usr/pkg/qt4/mkspecs/default -I. -I/usr/pkg/qt4/include/QtHelp -I/usr/pkg/qt4/include/QtDesigner -I/usr/pkg/qt4/include/QtUiTools -I/usr/pkg/qt4/include/QtCore -I/usr/pkg/qt4/include/QtNetwork -I/usr/pkg/qt4/include/QtGui -I/usr/pkg/qt4/include/QtOpenGL -I/usr/pkg/qt4/include/QtXml -I/usr/pkg/qt4/include/QtXmlPatterns -I/usr/pkg/qt4/include/QtSql -I/usr/pkg/qt4/include/QtSvg -I/usr/pkg/qt4/include/QtScriptTools -I/usr/pkg/qt4/include/QtScript -I/usr/pkg/qt4/include/QtWebKit -I/usr/pkg/qt4/include -I. -Imath -I../grid -I../snap -I../gui -I.
 ./entity -I../operations -I../scripting -I../stemmer -I../scripting/ecmaapi -I../scripting/ecmaapi/generated -I../scripting/ecmaapi/adapters -I../io/dxf -I../spatialindex -I../3rdparty -I../zip -I/usr/pkg/include -I. -I/usr/pkg/include -o RLinetype.lo RLinetype.cpp
In file included from /d0/build/pkgsrc/cad/qcad/work/.buildlink/qt4/include/QtCore/QMetaType:1:0,
                 from RLinetype.h:28,
                 from RLinetype.cpp:19:
/d0/build/pkgsrc/cad/qcad/work/.buildlink/qt4/include/QtCore/qmetatype.h:268:12: error: redefinition of 'struct QMetaTypeId<unsigned int*>'
     struct QMetaTypeId< TYPE >                                          \
            ^
RMetaTypes.h:147:1: note: in expansion of macro 'Q_DECLARE_METATYPE'
 Q_DECLARE_METATYPE(size_t*)
 ^
/d0/build/pkgsrc/cad/qcad/work/.buildlink/qt4/include/QtCore/qmetatype.h:268:12: error: previous definition of 'struct QMetaTypeId<unsigned int*>'
     struct QMetaTypeId< TYPE >                                          \
            ^
RMetaTypes.h:143:1: note: in expansion of macro 'Q_DECLARE_METATYPE'
 Q_DECLARE_METATYPE(unsigned int*)
 ^
*** Error code 1

Stop.
make[2]: stopped in /d0/build/pkgsrc/cad/qcad/work/qcad-3.15.5.3/src/core
*** Error code 1

Stop.
make[1]: stopped in /d0/build/pkgsrc/cad/qcad/work/qcad-3.15.5.3/src
*** Error code 1

Stop.
make: stopped in /d0/build/pkgsrc/cad/qcad/work/qcad-3.15.5.3
*** Error code 1

Stop.
make[1]: stopped in /x/pkgsrc/cad/qcad
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/cad/qcad

>How-To-Repeat:
See above.

"cad/qcad" builds without problem on NetBSD/amd64-7.0_STABLE.

Will investigate behavior on macppc-current at some point.
>Fix:

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51509: cad/qcad build fails on NetBSD/i386-7.0_STABLE
Date: Mon, 26 Sep 2016 14:24:12 +0000

 On Mon, Sep 26, 2016 at 01:45:01AM +0000, jdbaker@mylinuxisp.com wrote:
  > RMetaTypes.h:147:1: note: in expansion of macro 'Q_DECLARE_METATYPE'
  >  Q_DECLARE_METATYPE(size_t*)
  >
  > RMetaTypes.h:143:1: note: in expansion of macro 'Q_DECLARE_METATYPE'
  >  Q_DECLARE_METATYPE(unsigned int*)

 Wrapping the unsigned int one (if you can tell which one it is) in
 #ifdef _LP64 should make it shut up. On 32-bit machines size_t ==
 unsigned int.

 -- 
 David A. Holland
 dholland@netbsd.org

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51509: cad/qcad build fails on NetBSD/i386-7.0_STABLE
Date: Tue, 27 Sep 2016 21:41:20 -0500 (CDT)

 On Mon, 26 Sep 2016, David Holland wrote:

 >  On Mon, Sep 26, 2016 at 01:45:01AM +0000, jdbaker@mylinuxisp.com wrote:
 >   >
 >   > RMetaTypes.h:143:1: note: in expansion of macro 'Q_DECLARE_METATYPE'
 >   >  Q_DECLARE_METATYPE(unsigned int*)
 >  
 >  Wrapping the unsigned int one (if you can tell which one it is) in
 >  #ifdef _LP64 should make it shut up. On 32-bit machines size_t ==
 >  unsigned int.

 The following patch seems to solve the problem.  The build is proceeding
 but not yet finished.

 +--- src/core/RMetaTypes.h.orig	2016-08-29 01:49:22.000000000 -0500
 ++++ src/core/RMetaTypes.h	2016-09-27 21:34:47.000000000 -0500
 +@@ -140,7 +140,9 @@
 + #include "RSingleApplication.h"
 + 
 + Q_DECLARE_METATYPE(int*)
 ++#ifdef _LP64
 + Q_DECLARE_METATYPE(unsigned int*)
 ++#endif
 + Q_DECLARE_METATYPE(qint64*)
 + 
 + #if !defined Q_OS_WIN && !defined Q_OS_LINUX && !defined Q_OS_FREEBSD

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 jdbaker@mylinuxisp.com
Subject: Re: pkg/51509: cad/qcad build fails on NetBSD/i386-7.0_STABLE
Date: Sun, 9 Oct 2016 16:16:04 +0200

 > The following patch seems to solve the problem.  The build is proceeding
 > but not yet finished.

 So did it build in the end?

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51509: cad/qcad build fails on NetBSD/i386-7.0_STABLE
Date: Sun, 9 Oct 2016 15:53:50 -0500 (CDT)

 On Sun, 9 Oct 2016, Benny Siegert wrote:

 > So did it build in the end?

 Yes, the build completed.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51509 CVS commit: pkgsrc/cad/qcad
Date: Sun, 9 Oct 2016 21:35:18 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Sun Oct  9 21:35:18 UTC 2016

 Modified Files:
 	pkgsrc/cad/qcad: distinfo
 Added Files:
 	pkgsrc/cad/qcad/patches: patch-src_core_RMetaTypes.h

 Log Message:
 Add patch from John D. Baker in PR 51509 to fix 32-bit build.


 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 pkgsrc/cad/qcad/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/cad/qcad/patches/patch-src_core_RMetaTypes.h

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

State-Changed-From-To: open->pending-pullups
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 09 Oct 2016 21:44:03 +0000
State-Changed-Why:
pullup-pkgsrc #5129


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51509 CVS commit: [pkgsrc-2016Q3] pkgsrc/cad/qcad
Date: Sat, 15 Oct 2016 18:02:14 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Sat Oct 15 18:02:14 UTC 2016

 Modified Files:
 	pkgsrc/cad/qcad [pkgsrc-2016Q3]: distinfo
 Added Files:
 	pkgsrc/cad/qcad/patches [pkgsrc-2016Q3]: patch-src_core_RMetaTypes.h

 Log Message:
 Pullup ticket #5129 - requested by dholland
 cad/qcad: build fix

 Revisions pulled up:
 - cad/qcad/distinfo                                             1.23
 - cad/qcad/patches/patch-src_core_RMetaTypes.h                  1.1

 ---
    Module Name:	pkgsrc
    Committed By:	dholland
    Date:		Sun Oct  9 21:35:18 UTC 2016

    Modified Files:
    	pkgsrc/cad/qcad: distinfo
    Added Files:
    	pkgsrc/cad/qcad/patches: patch-src_core_RMetaTypes.h

    Log Message:
    Add patch from John D. Baker in PR 51509 to fix 32-bit build.


 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.22.2.1 pkgsrc/cad/qcad/distinfo
 cvs rdiff -u -r0 -r1.1.2.2 \
     pkgsrc/cad/qcad/patches/patch-src_core_RMetaTypes.h

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

State-Changed-From-To: pending-pullups->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 15 Oct 2016 18:46:18 +0000
State-Changed-Why:
pullup done


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