Bug 227540 - comms/gnuradio: fails to build with boost 1.67
Summary: comms/gnuradio: fails to build with boost 1.67
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: hamradio
URL:
Keywords: needs-patch
Depends on:
Blocks: 227427
  Show dependency treegraph
 
Reported: 2018-04-16 03:48 UTC by Jan Beich
Modified: 2018-04-18 12:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (hamradio)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2018-04-16 03:48:01 UTC
After bug 227427 lands this port will end up BROKEN. Can you help? See ports r467364 for an example fix.

$ fetch -qo- 'https://reviews.freebsd.org/D15030?download=true' | patch -Efsp0 -d /usr/ports
$ make all deinstall install clean -C/usr/ports/devel/boost-jam
$ make all deinstall install clean -C/usr/ports/devel/boost-libs
$ make all deinstall install clean -C/usr/ports/devel/boost-python-libs
$ make -C/usr/ports/comms/gnuradio
[...]
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::posix_time::time_duration, 1000>')
        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<boost::posix_time::time_duration, 1000>' 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<boost::is_integral<T>, void>::type* = 0) :
                                                          ^

http://package22.nyi.freebsd.org/data/103amd64-default-PR227427/2018-04-15_16h39m34s/logs/errors/gnuradio-3.7.11_1.log
http://package23.nyi.freebsd.org/data/111i386-default-PR227427/2018-04-15_19h03m01s/logs/errors/gnuradio-3.7.11_1.log
Regressed by: https://github.com/boostorg/date_time/commit/f9f2aaf5216c
Comment 2 Jan Beich freebsd_committer 2018-04-18 12:41:13 UTC
I've added a patch in ports r467709. Boost.Thread also needs explicit -lpthread because libc doesn't have a stub for pthread_condattr_*.