From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 26 22:10:13 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7121D16A4CF for ; Wed, 26 Jan 2005 22:10:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3689843D3F for ; Wed, 26 Jan 2005 22:10:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0QMADs1032697 for ; Wed, 26 Jan 2005 22:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0QMAD8D032696; Wed, 26 Jan 2005 22:10:13 GMT (envelope-from gnats) Resent-Date: Wed, 26 Jan 2005 22:10:13 GMT Resent-Message-Id: <200501262210.j0QMAD8D032696@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Mark A. Wicks" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9990716A4CE for ; Wed, 26 Jan 2005 22:09:02 +0000 (GMT) Received: from mirapoint.kettering.edu (mirapoint.kettering.edu [192.138.137.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5555843D45 for ; Wed, 26 Jan 2005 22:09:01 +0000 (GMT) (envelope-from mwicks@gaspra.kettering.edu) Received: from gaspra.kettering.edu (gaspra.kettering.edu [198.110.4.97]) by mirapoint.kettering.edu (MOS 3.5.5-GR) with ESMTP id BOV18424 (AUTH via LOGINBEFORESMTP); Wed, 26 Jan 2005 17:08:59 -0500 (EST) Received: from gaspra.kettering.edu (localhost [127.0.0.1]) by gaspra.kettering.edu (8.13.1/8.13.1) with ESMTP id j0QM8xgs021521 for ; Wed, 26 Jan 2005 17:08:59 -0500 (EST) (envelope-from mwicks@gaspra.kettering.edu) Received: (from mwicks@localhost) by gaspra.kettering.edu (8.13.1/8.13.1/Submit) id j0QM8xTr021520; Wed, 26 Jan 2005 17:08:59 -0500 (EST) (envelope-from mwicks) Message-Id: <200501262208.j0QM8xTr021520@gaspra.kettering.edu> Date: Wed, 26 Jan 2005 17:08:59 -0500 (EST) From: "Mark A. Wicks" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/76730: [patch] dynamic_bitset broken in boost 1.32 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Mark A. Wicks" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 22:10:13 -0000 >Number: 76730 >Category: ports >Synopsis: [patch] dynamic_bitset broken in boost 1.32 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jan 26 22:10:12 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Mark A. Wicks >Release: FreeBSD 5.3-RELEASE-p5 i386 >Organization: Kettering University >Environment: System: FreeBSD gaspra.kettering.edu 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #13: Fri Jan 21 09:14:40 EST 2005 mwicks@gaspra.kettering.edu:/usr/obj/usr/src/sys/gaspra-5.3 i386 gcc version 3.4.2 [FreeBSD] 20040728 >Description: Having BOOST_NO_INCLASS_MEMBER_INITIALIZATION defined in bsd.hpp causes boost to use anonymous enums. Anonymous enums are considered to be different types in gcc 3.4.0 even when declared identically. As a result, any ports using dynamic_bitset won't compile. >How-To-Repeat: Compile the following program: #include int main(int, char*[]) { boost::dynamic_bitset<> x(2); return 0; } This produces the following errors: usr/local/include/boost/dynamic_bitset/dynamic_bitset.hpp: In constructor `boost::dynamic_bitset::dynamic_bitset(size_t, long unsigned int, const Allocator&) [with Block = long unsigned int, Allocator = std::allocator]': foo.cc:4: instantiated from here /usr/local/include/boost/dynamic_bitset/dynamic_bitset.hpp:541: warning: comparison between `enum boost::dynamic_bitset >::' and `enum boost::dynamic_bitset >::' foo.cc:4: instantiated from here /usr/local/include/boost/dynamic_bitset/dynamic_bitset.hpp:548: error: no matching function for call to `make_non_const(boost::dynamic_bitset >::)' >Fix: *** ./bsd.hpp-orig Wed Jan 26 15:29:17 2005 --- ./bsd.hpp Wed Jan 26 16:17:59 2005 *************** *** 52,59 **** # define BOOST_NO_CWCTYPE #endif - #define BOOST_NO_INCLASS_MEMBER_INITIALIZATION - // // The BSD has macros only, no functions: // --- 52,57 ---- Not defining BOOST_NO_INCLASS_MEMBER_INITIALIZATION produces standard code. This #define shouldn't be required on compilers that follow standards. I don't know if this definition was necessary on older versions of GCC. >Release-Note: >Audit-Trail: >Unformatted: