From owner-freebsd-ports@FreeBSD.ORG Sat Jan 23 22:18:54 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 52C90106566B for ; Sat, 23 Jan 2010 22:18:54 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id F09888FC1A for ; Sat, 23 Jan 2010 22:18:53 +0000 (UTC) Received: (qmail 5236 invoked by uid 399); 23 Jan 2010 22:18:53 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 23 Jan 2010 22:18:53 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B5B75D3.6060005@FreeBSD.org> Date: Sat, 23 Jan 2010 14:18:59 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.5) Gecko/20100114 Thunderbird/3.0 MIME-Version: 1.0 To: Chuck Swiger References: <4B54CFEF.3050006@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: churanov.port.maintainer@gmail.com, 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: Sat, 23 Jan 2010 22:18:54 -0000 On 01/18/10 17:11, Chuck Swiger wrote: > 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, I appreciate the response. Is it possible for me to make just the change you suggested to the libtorrent sources and have it work, or does this require that boost libs be changed too? Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso