[MacPorts] #69739: input-leap @2.4.0-20231009: error: no viable conversion from returned value of type 'unique_ptr<inputleap::SecureSocket>' to function return type 'unique_ptr<inputleap::IDataSocket>'

MacPorts noreply at macports.org
Mon Apr 15 11:02:01 UTC 2024


#69739: input-leap @2.4.0-20231009: error: no viable conversion from returned value
of type 'unique_ptr<inputleap::SecureSocket>' to function return type
'unique_ptr<inputleap::IDataSocket>'
------------------------+------------------------
 Reporter:  ryandesign  |      Owner:  koston@…
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.9.3
 Keywords:              |       Port:  input-leap
------------------------+------------------------
 input-leap doesn't build on OS X 10.11 or earlier:

 https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/258542/steps
 /install-port/logs/stdio

 {{{
 /opt/local/var/macports/build
 /_opt_bblocal_var_buildworker_ports_build_ports_aqua_input-leap/input-
 leap/work/input-leap-
 edaa634551eb530a4ae6eaf1d31d62a72d70c961/src/lib/net/SecureListenSocket.cpp:55:16:
 error: no viable conversion from returned value of type
 'unique_ptr<inputleap::SecureSocket>' to function return type
 'unique_ptr<inputleap::IDataSocket>'
         return socket;
                ^~~~~~
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2553:29:
 note: candidate constructor (the implicit copy constructor) not viable: no
 known conversion from 'std::unique_ptr<SecureSocket>' to 'const
 std::__1::unique_ptr<inputleap::IDataSocket,
 std::__1::default_delete<inputleap::IDataSocket> > &' for 1st argument
 class _LIBCPP_TYPE_VIS_ONLY unique_ptr
                             ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2582:49:
 note: candidate constructor not viable: no known conversion from
 'std::unique_ptr<SecureSocket>' to 'nullptr_t' for 1st argument
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unique_ptr(nullptr_t)
 _NOEXCEPT
                                                 ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2609:31:
 note: candidate constructor not viable: no known conversion from
 'std::unique_ptr<SecureSocket>' to
 'std::__1::unique_ptr<inputleap::IDataSocket,
 std::__1::default_delete<inputleap::IDataSocket> > &&' for 1st argument
     _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
                               ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2613:9:
 note: candidate constructor [with _Up = inputleap::SecureSocket, _Ep =
 std::__1::default_delete<inputleap::SecureSocket>] not viable: no known
 conversion from 'std::unique_ptr<SecureSocket>' to
 'unique_ptr<inputleap::SecureSocket,
 std::__1::default_delete<inputleap::SecureSocket> > &&' for 1st argument
         unique_ptr(unique_ptr<_Up, _Ep>&& __u,
         ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2628:35:
 note: candidate template ignored: could not match 'auto_ptr' against
 'unique_ptr'
         _LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
                                   ^
 1 error generated.
 }}}

 Since the version we're using is a several-months-old commit, maybe the
 first thing to try it to update to a newer commit.

-- 
Ticket URL: <https://trac.macports.org/ticket/69739>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list