[Kea-users] Cant "make" the master version with radius hook

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] Cant "make" the master version with radius hook

Itay Rozenberg

Hi guys

I’m getting this error when trying to compile the “master” version:

make[8]: Entering directory `/root/install/kea/kea-1.5.0b-git/premium/src/hooks/dhcp/radius'

  CXX      libradius_la-radius.lo

radius.cc: In member function 'void isc::radius::RadiusImpl::init(isc::data::ElementPtr&)':

radius.cc:143:43: error: 'DatabaseConnection' does not name a type

         auto radiusFactory = [this](const DatabaseConnection::ParameterMap&) {

                                           ^

radius.cc:145:9: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]

         };

         ^

radius.cc:145:10: error: expected ')' before ';' token

         };

          ^

radius.cc: In lambda function:

radius.cc:145:10: error: expected '{' before ';' token

In file included from /usr/local/include/boost/function/detail/maybe_include.hpp:18:0,

                 from /usr/local/include/boost/function/detail/function_iterate.hpp:14,

                 from /usr/local/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:52,

                 from /usr/local/include/boost/function.hpp:64,

                 from ../../../../../src/lib/database/database_connection.h:11,

                 from ../../../../../src/lib/dhcpsrv/host_mgr.h:10,

                 from radius.cc:6:

/usr/local/include/boost/function/function_template.hpp: In instantiation of 'static R boost::detail::function::function_obj_invoker1<FunctionObj, R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with FunctionObj = isc::radius::RadiusImpl::init(isc::data::ElementPtr&)::__lambda0; R = boost::shared_ptr<isc::dhcp::BaseHostDataSource>; T0 = const std::map<std::basic_string<char>, std::basic_string<char> >&]':

/usr/local/include/boost/function/function_template.hpp:925:38:   required from 'void boost::function1<R, T1>::assign_to(Functor) [with Functor = isc::radius::RadiusImpl::init(isc::data::ElementPtr&)::__lambda0; R = boost::shared_ptr<isc::dhcp::BaseHostDataSource>; T0 = const std::map<std::basic_string<char>, std::basic_string<char> >&]'

/usr/local/include/boost/function/function_template.hpp:716:7:   required from 'boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<(! boost::is_integral<Functor>::value), int>::type) [with Functor = isc::radius::RadiusImpl::init(isc::data::ElementPtr&)::__lambda0; R = boost::shared_ptr<isc::dhcp::BaseHostDataSource>; T0 = const std::map<std::basic_string<char>, std::basic_string<char> >&; typename boost::enable_if_c<(! boost::is_integral<Functor>::value), int>::type = int]'

/usr/local/include/boost/function/function_template.hpp:1061:16:   required from 'boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<(! boost::is_integral<Functor>::value), int>::type) [with Functor = isc::radius::RadiusImpl::init(isc::data::ElementPtr&)::__lambda0; R = boost::shared_ptr<isc::dhcp::BaseHostDataSource>; T0 = const std::map<std::basic_string<char>, std::basic_string<char> >&; typename boost::enable_if_c<(! boost::is_integral<Functor>::value), int>::type = int]'

radius.cc:146:71:   required from here

/usr/local/include/boost/function/function_template.hpp:138:42: error: no match for call to '(isc::radius::RadiusImpl::init(isc::data::ElementPtr&)::__lambda0) (const std::map<std::basic_string<char>, std::basic_string<char> >&)'

           return (*f)(BOOST_FUNCTION_ARGS);

                                          ^

radius.cc:143:35: note: candidate is:

         auto radiusFactory = [this](const DatabaseConnection::ParameterMap&) {

                                   ^

radius.cc:145:10: note: isc::radius::RadiusImpl::init(isc::data::ElementPtr&)::__lambda0

         };

          ^

radius.cc:145:10: note:   no known conversion for argument 1 from 'const std::map<std::basic_string<char>, std::basic_string<char> >' to 'int'

In file included from radius.cc:11:0:

./radius_log.h: At global scope:

./radius_log.h:25:11: warning: 'isc::radius::RADIUS_DBG_TRACE' defined but not used [-Wunused-variable]

const int RADIUS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;

           ^

make[8]: *** [libradius_la-radius.lo] Error 1

make[8]: Leaving directory `/root/install/kea/kea-1.5.0b-git/premium/src/hooks/dhcp/radius'

make[7]: *** [all-recursive] Error 1

make[7]: Leaving directory `/root/install/kea/kea-1.5.0b-git/premium/src/hooks/dhcp/radius'

make[6]: *** [all] Error 2

make[6]: Leaving directory `/root/install/kea/kea-1.5.0b-git/premium/src/hooks/dhcp/radius'

make[5]: *** [all-recursive] Error 1

make[5]: Leaving directory `/root/install/kea/kea-1.5.0b-git/premium/src/hooks/dhcp'

make[4]: *** [all-recursive] Error 1

make[4]: Leaving directory `/root/install/kea/kea-1.5.0b-git/premium/src/hooks'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/root/install/kea/kea-1.5.0b-git/premium/src'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/install/kea/kea-1.5.0b-git/premium'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/install/kea/kea-1.5.0b-git'

make: *** [all] Error 2

 

thank you

itay

 

------------------------------------------------------------
This message contains information that may be confidential or privileged.
If you are not the intended recipient, you may not use, copy or disclose
to anyone any of the information in this message. If you have received
this message and are not the intended recipient, kindly notify the sender
and delete this message from your computer.


_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Cant "make" the master version with radius hook

Francis Dupont
Please contact support to get a version of the premium distrib which
includes last changes (database code has been moved since 1.5 release
and premium code updated but privately).

Regards

Francis Dupont <[hidden email]>
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users