From owner-svn-ports-head@freebsd.org Wed Apr 18 12:38:20 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47CDFF86F29; Wed, 18 Apr 2018 12:38:20 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EC97581CC1; Wed, 18 Apr 2018 12:38:19 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E37F41B061; Wed, 18 Apr 2018 12:38:19 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3ICcJfi039652; Wed, 18 Apr 2018 12:38:19 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3ICcJKO039651; Wed, 18 Apr 2018 12:38:19 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201804181238.w3ICcJKO039651@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 18 Apr 2018 12:38:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467709 - head/comms/gnuradio/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/comms/gnuradio/files X-SVN-Commit-Revision: 467709 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2018 12:38:20 -0000 Author: jbeich Date: Wed Apr 18 12:38:19 2018 New Revision: 467709 URL: https://svnweb.freebsd.org/changeset/ports/467709 Log: comms/gnuradio: unbreak with boost 1.67 gr-blocks/lib/message_strobe_impl.cc:93:35: error: no matching conversion for functional-style cast from 'float' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration') boost::this_thread::sleep(boost::posix_time::milliseconds(d_period_ms)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/boost/date_time/time_duration.hpp:270:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'float' to 'const boost::date_time::subsecond_duration' for 1st argument class BOOST_SYMBOL_VISIBLE subsecond_duration : public base_duration ^ /usr/local/include/boost/date_time/time_duration.hpp:286:59: note: candidate template ignored: disabled by 'enable_if' [with T = float] typename boost::enable_if, void>::type* = 0) : ^ /usr/local/bin/ld: CMakeFiles/tags_demo.dir/tags_demo.cc.o: undefined reference to symbol 'pthread_condattr_init@@FBSD_1.0' //lib/libthr.so.3: error adding symbols: DSO missing from command line c++: error: linker command failed with exit code 1 (use -v to see invocation) *** [gr-uhd/examples/c++/tags_demo] Error code 1 PR: 227427 Reported by: antoine (via exp-run) Obtained from: Homebrew Added: head/comms/gnuradio/files/patch-boost-1.67 (contents, props changed) Added: head/comms/gnuradio/files/patch-boost-1.67 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/gnuradio/files/patch-boost-1.67 Wed Apr 18 12:38:19 2018 (r467709) @@ -0,0 +1,75 @@ +Regressed by https://github.com/boostorg/date_time/commit/f9f2aaf5216c + +gr-blocks/lib/message_strobe_impl.cc:93:35: error: no matching conversion for functional-style cast from 'float' to 'boost::posix_time::milliseconds' (aka 'subsecond_duration') + boost::this_thread::sleep(boost::posix_time::milliseconds(d_period_ms)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/local/include/boost/date_time/time_duration.hpp:270:30: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'float' to 'const boost::date_time::subsecond_duration' for 1st argument + class BOOST_SYMBOL_VISIBLE subsecond_duration : public base_duration + ^ +/usr/local/include/boost/date_time/time_duration.hpp:286:59: note: candidate template ignored: disabled by 'enable_if' [with T = float] + typename boost::enable_if, void>::type* = 0) : + ^ + +Regressed by https://github.com/boostorg/thread/commit/1e84b978b2bb + +/usr/local/bin/ld: CMakeFiles/tags_demo.dir/tags_demo.cc.o: undefined reference to symbol 'pthread_condattr_init@@FBSD_1.0' +//lib/libthr.so.3: error adding symbols: DSO missing from command line +c++: error: linker command failed with exit code 1 (use -v to see invocation) +*** [gr-uhd/examples/c++/tags_demo] Error code 1 + +--- gr-blocks/lib/message_strobe_impl.cc.orig 2017-02-27 23:19:00 UTC ++++ gr-blocks/lib/message_strobe_impl.cc +@@ -90,7 +90,7 @@ namespace gr { + void message_strobe_impl::run() + { + while(!d_finished) { +- boost::this_thread::sleep(boost::posix_time::milliseconds(d_period_ms)); ++ boost::this_thread::sleep(boost::posix_time::milliseconds(long(d_period_ms))); + if(d_finished) { + return; + } +--- gr-blocks/lib/message_strobe_random_impl.cc.orig 2017-02-27 23:19:00 UTC ++++ gr-blocks/lib/message_strobe_random_impl.cc +@@ -108,7 +108,7 @@ namespace gr { + void message_strobe_random_impl::run() + { + while(!d_finished) { +- boost::this_thread::sleep(boost::posix_time::milliseconds(std::max(0.0f,next_delay()))); ++ boost::this_thread::sleep(boost::posix_time::milliseconds(long(std::max(0.0f,next_delay())))); + if(d_finished) { + return; + } +--- gr-uhd/examples/c++/CMakeLists.txt.orig 2017-02-27 23:19:00 UTC ++++ gr-uhd/examples/c++/CMakeLists.txt +@@ -37,6 +37,11 @@ link_directories(${Boost_LIBRARY_DIRS}) + add_executable(tags_demo tags_demo.cc) + target_link_libraries(tags_demo gnuradio-uhd) + ++if(UNIX AND NOT APPLE) ++ # Boost.Thread 1.67+ headers reference pthread_condattr_* ++ target_link_libraries(tags_demo pthread) ++endif(UNIX AND NOT APPLE) ++ + INSTALL(TARGETS + tags_demo + DESTINATION ${GR_PKG_UHD_EXAMPLES_DIR} +--- gr-uhd/lib/usrp_block_impl.cc.orig 2017-02-27 23:19:00 UTC ++++ gr-uhd/lib/usrp_block_impl.cc +@@ -128,7 +128,7 @@ bool usrp_block_impl::_wait_for_locked_sensor( + + while (true) { + if ((not first_lock_time.is_not_a_date_time()) and +- (boost::get_system_time() > (first_lock_time + boost::posix_time::seconds(LOCK_TIMEOUT)))) { ++ (boost::get_system_time() > (first_lock_time + boost::posix_time::seconds(long(LOCK_TIMEOUT))))) { + break; + } + +@@ -139,7 +139,7 @@ bool usrp_block_impl::_wait_for_locked_sensor( + else { + first_lock_time = boost::system_time(); //reset to 'not a date time' + +- if (boost::get_system_time() > (start + boost::posix_time::seconds(LOCK_TIMEOUT))){ ++ if (boost::get_system_time() > (start + boost::posix_time::seconds(long(LOCK_TIMEOUT)))){ + return false; + } + }