From owner-freebsd-ports@FreeBSD.ORG Tue Jan 19 01:11:55 2010 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FC6A106566C for ; Tue, 19 Jan 2010 01:11:55 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout024.mac.com (asmtpout024.mac.com [17.148.16.99]) by mx1.freebsd.org (Postfix) with ESMTP id EF6DB8FC1A for ; Tue, 19 Jan 2010 01:11:54 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp024.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KWG006WZZBUM670@asmtp024.mac.com>; Mon, 18 Jan 2010 17:11:54 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1001180246 From: Chuck Swiger In-reply-to: <4B54CFEF.3050006@FreeBSD.org> Date: Mon, 18 Jan 2010 17:11:53 -0800 Message-id: References: <4B54CFEF.3050006@FreeBSD.org> To: Doug Barton X-Mailer: Apple Mail (2.1077) Cc: freebsd-ports@FreeBSD.org Subject: Re: Need help from someone with boost fu + RELENG_6 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 01:11:55 -0000 Hi, Doug-- On Jan 18, 2010, at 1:17 PM, Doug Barton wrote: > However I apparently inherited some build problems on 6-stable that I > don't understand, and since I don't have a 6-stable system available I > cannot test fixes for. The problems appear to be boost-related, both > more or less look like this: > > In file included from /usr/local/include/boost/thread/future.hpp:12, > from /usr/local/include/boost/thread.hpp:24, > from ../include/libtorrent/storage.hpp:45, > from ../include/libtorrent/peer_connection.hpp:63, > from peer_connection.cpp:41: > /usr/local/include/boost/exception_ptr.hpp:43: error: looser throw > specifier for `virtual boost::exception_ptr::~exception_ptr()' > /usr/local/include/boost/exception/detail/exception_ptr_base.hpp:27: > error: overriding `virtual > boost::exception_detail::exception_ptr_base::~exception_ptr_base() throw ()' [ ... ] Whether this constitutes a legitimate problem or something that the compiler should figure out seems to be arguable-- evidently this sort of error is highly dependent upon the compiler version. The following changes seems to allow net-p2p/rblibtorrent to build successfully under 6-STABLE: --- /usr/local/include/boost/exception/detail/exception_ptr_base.hpp~ 2010-01-18 18:20:52.000000000 -0500 +++ /usr/local/include/boost/exception/detail/exception_ptr_base.hpp 2010-01-18 19:03:46.000000000 -0500 @@ -23,7 +23,7 @@ protected: virtual - ~exception_ptr_base() throw() + ~exception_ptr_base() { } }; --- libtorrent-0.13/src/storage.cpp~ 2010-01-18 17:11:00.000000000 -0500 +++ libtorrent-0.13/src/storage.cpp 2010-01-18 19:19:05.000000000 -0500 @@ -378,7 +378,7 @@ size_type read_impl(char* buf, int slot, int offset, int size, bool fill_zero); - ~storage() + ~storage() throw () { m_files.release(this); } boost::intrusive_ptr m_info; Eww. It's entirely possible that adding a USE_GCC=4.2+ line to Boost or these ports might provide a cleaner solution. Or consult someone who knows C++ better than I... Regards, -- -Chuck