Thanks for the diffs, Mike. I'll get them a try shortly when I have Boost 1.66.0 release installed. Cheers! - MLD
On Mon, Dec 18, 2017, at 10:05 AM, Mike wrote: > > Zitat von Michael Dickens <michael.dick...@ettus.com>: > > > Hi Mike - Thanks for the pointer. Just to be clear, are you talking > > about Boost 1.66.0 beta 1? That seems to be the latest version available > > Not exactly. > Its RC2 in the meanwhile. > https://dl.bintray.com/boostorg/release/1.66.0/source/ > So I wouldn't expect any API changes anymore. > If I get the docu right, the following patches against 3.10.2.0 should > be sufficient: > > Index: files/patch-host_examples_network_relay.cpp > =================================================================== > --- files/patch-host_examples_network_relay.cpp (nicht existent) > +++ files/patch-host_examples_network_relay.cpp (Arbeitskopie) > @@ -0,0 +1,16 @@ > +--- host/examples/network_relay.cpp.orig 2017-12-17 > 19:37:02.232333000 +0000 > ++++ host/examples/network_relay.cpp 2017-12-17 19:37:35.331222000 > +0000 > +@@ -128,5 +128,5 @@ > + std::vector<char> buff(insane_mtu); > + while (not boost::this_thread::interruption_requested()){ > +- if (wait_for_recv_ready(_server_socket->native())){ > ++ if (wait_for_recv_ready(_server_socket->native_handle())){ > + boost::mutex::scoped_lock lock(_endpoint_mutex); > + const size_t len = > _server_socket->receive_from(asio::buffer(&buff.front(), buff.size()), > _endpoint); > +@@ -154,5 +154,5 @@ > + std::vector<char> buff(insane_mtu); > + while (not boost::this_thread::interruption_requested()){ > +- if (wait_for_recv_ready(_client_socket->native())){ > ++ if (wait_for_recv_ready(_client_socket->native_handle())){ > + const size_t len = > _client_socket->receive(asio::buffer(&buff.front(), buff.size())); > + boost::mutex::scoped_lock lock(_endpoint_mutex); > > Index: files/patch-host_lib_transport_tcp_zero_copy.cpp > =================================================================== > --- files/patch-host_lib_transport_tcp_zero_copy.cpp (nicht existent) > +++ files/patch-host_lib_transport_tcp_zero_copy.cpp (Arbeitskopie) > @@ -0,0 +1,9 @@ > +--- host/lib/transport/tcp_zero_copy.cpp.orig 2017-12-17 > 19:39:49.890757000 +0000 > ++++ host/lib/transport/tcp_zero_copy.cpp 2017-12-17 > 19:40:36.125127000 +0000 > +@@ -155,5 +155,5 @@ > + _socket.reset(new asio::ip::tcp::socket(_io_service)); > + _socket->connect(receiver_endpoint); > +- _sock_fd = _socket->native(); > ++ _sock_fd = _socket->native_handle(); > + > + //packets go out ASAP > > Index: files/patch-host_lib_transport_udp_simple.cpp > =================================================================== > --- files/patch-host_lib_transport_udp_simple.cpp (nicht existent) > +++ files/patch-host_lib_transport_udp_simple.cpp (Arbeitskopie) > @@ -0,0 +1,9 @@ > +--- host/lib/transport/udp_simple.cpp.orig 2017-12-17 > 19:40:02.609104000 +0000 > ++++ host/lib/transport/udp_simple.cpp 2017-12-17 19:40:47.660730000 > +0000 > +@@ -57,5 +57,5 @@ > + > + size_t recv(const asio::mutable_buffer &buff, double timeout){ > +- if (not wait_for_recv_ready(_socket->native(), timeout)) return > 0; > ++ if (not wait_for_recv_ready(_socket->native_handle(), > timeout)) return 0; > + return _socket->receive_from(asio::buffer(buff), > _recv_endpoint); > + } > > > Index: files/patch-host_lib_transport_udp_zero_copy.cpp > =================================================================== > --- files/patch-host_lib_transport_udp_zero_copy.cpp (nicht existent) > +++ files/patch-host_lib_transport_udp_zero_copy.cpp (Arbeitskopie) > @@ -0,0 +1,9 @@ > +--- host/lib/transport/udp_zero_copy.cpp.orig 2017-12-17 > 16:25:59.637675000 +0100 > ++++ host/lib/transport/udp_zero_copy.cpp 2017-12-17 > 16:26:12.713784000 +0100 > +@@ -191,5 +191,5 @@ > + _socket->open(asio::ip::udp::v4()); > + _socket->connect(receiver_endpoint); > +- _sock_fd = _socket->native(); > ++ _sock_fd = _socket->native_handle(); > + > + //allocate re-usable managed receive buffers > > > So its basically replacing native() with native_handle()... > > Greetings > --- > Mike > > > from boost.org. Boost often goes through a few betas before a release, > > so it's possible that the API will be restored or further altered; I > > haven't looked into whether the "native" method was already deprecated, > > or if maybe this was a mix-up API change as does sometimes happen. We > > really shouldn't be fixing a potential future problem unless there's a > > more compatible API for doing so -- a function or method that's been > > around for many releases that isn't marked or discussed as currently or > > to be deprecated. We will certainly be on top of things once the actual > > boost 1.66.0 release is out. Cheers! - MLD > > > > On Sun, Dec 17, 2017, at 11:02 AM, Mike via USRP-users wrote: > >> compiling the latest uhd fails for the upcoming boost 1.66 release on > >> FreeBSD 11: > >> > >> ... > >> FAILED: lib/CMakeFiles/uhd.dir/transport/udp_zero_copy.cpp.o > >> /usr/local/libexec/ccache/c++ -DHAVE_CONFIG_H -DUHD_DLL_EXPORTS > >> -DUHD_IMAGES_DIR=OFF -DUHD_TXRX_DEBUG_PRINTS -Iinclude > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/include > >> -I/usr/local/include -Ilib/ic_reg_maps > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/convert > >> -Ilib/convert > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/rfnoc > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/rfnoc/nocscript > >> -Ilib/rfnoc/nocscript > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/usrp > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/usrp/cores > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/usrp/common > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/usrp/common/ad9361_driver > >> -I/wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/experts > >> -Ilib/transport/nirio/lvbitx -O2 -pipe -fstack-protector > >> -fno-strict-aliasing -msse2 -fvisibility=hidden > >> -fvisibility-inlines-hidden -O2 -pipe -fstack-protector > >> -fno-strict-aliasing -msse2 -fPIC -Wall -Wextra -Wsign-compare -MD -MT > >> lib/CMakeFiles/uhd.dir/transport/udp_zero_copy.cpp.o -MF > >> lib/CMakeFiles/uhd.dir/transport/udp_zero_copy.cpp.o.d -o > >> lib/CMakeFiles/uhd.dir/transport/udp_zero_copy.cpp.o -c > >> /wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/transport/udp_zero_copy.cpp > >> /wrkdirs/usr/ports/comms/uhd/work/uhd-c705922a08e32c8b0ec7ef6af6137835f87b2f42/host/lib/transport/udp_zero_copy.cpp:193:29: > >> error: no member named 'native' in > >> 'boost::asio::basic_datagram_socket<boost::asio::ip::udp>' > >> _sock_fd = _socket->native(); > >> ~~~~~~~ ^ > >> 1 error generated. > >> ... > >> > >> Seems like the member native() has changed. > > > -- > Greetings > ---- > Mike > _______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com