Git Product home page Git Product logo

muduo-udns's Introduction

Muduo Non-blocking Address Resolver using UDNS
https://github.com/chenshuo/muduo-udns

Copyright (C) 2012  Chen Shuo <[email protected]>
This file is part of muduo-udns library, a non-blocking DNS
stub resolver built on top of UDNS (www.corpit.ru/mjt/udns.html)
and Muduo (code.google.com/p/muduo).
Requires Muduo 0.3.2 and above.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library, in file named COPYING.LGPL; if not,
write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA  02111-1307  USA

Note: muduo-udns is LGPL, because it redistributes UDNS, and UDNS is LGPL.

muduo-udns's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

muduo-udns's Issues

make has failed 是不是新版本boost 语法不支持旧的boost 了?

g++ -std=c++11 -g -O2 -Wall -Wextra -Werror -Wconversion -Wno-unused-parameter -Wold-style-cast -Woverloaded-virtual -Wpointer-arith -Wshadow -Wwrite-strings -march=native -rdynamic -I/home/youthterm/build/release-install/include -I./udns-0.2 -c Resolver.cc In file included from /usr/include/boost/bind.hpp:22, from Resolver.cc:5: /usr/include/boost/bind/bind.hpp: In instantiation of ‘void boost::_bi::list2<A1, A2>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = boost::_mfi::mf1<void, muduo::net::Resolver, muduo::Timestamp>; A = boost::_bi::rrlist1<muduo::Timestamp>; A1 = boost::_bi::value<muduo::net::Resolver*>; A2 = boost::_bi::value<std::_Placeholder<1> >]’: /usr/include/boost/bind/bind.hpp:1306:50: required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&&) [with A1 = muduo::Timestamp; R = void; F = boost::_mfi::mf1<void, muduo::net::Resolver, muduo::Timestamp>; L = boost::_bi::list2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > >; boost::_bi::bind_t<R, F, L>::result_type = void]’ /usr/include/c++/9/bits/std_function.h:300:37: required from ‘static void std::_Function_handler<void(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, muduo::net::Resolver, muduo::Timestamp>, boost::_bi::list2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > > >; _ArgTypes = {muduo::Timestamp}]’ /usr/include/c++/9/bits/std_function.h:676:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, muduo::net::Resolver, muduo::Timestamp>, boost::_bi::list2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > > >; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {muduo::Timestamp}]’ Resolver.cc:79:69: required from here /usr/include/boost/bind/bind.hpp:319:35: error: no match for call to ‘(boost::_mfi::mf1<void, muduo::net::Resolver, muduo::Timestamp>) (muduo::net::Resolver*&, std::_Placeholder<1>&)’ 319 | unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/mem_fn.hpp:215, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from Resolver.h:6, from Resolver.cc:1: /usr/include/boost/bind/mem_fn_template.hpp:163:7: note: candidate: ‘R boost::_mfi::mf1<R, T, A1>::operator()(T*, A1) const [with R = void; T = muduo::net::Resolver; A1 = muduo::Timestamp]’ 163 | R operator()(T * p, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/mem_fn_template.hpp:163:28: note: no known conversion for argument 2 from ‘std::_Placeholder<1>’ to ‘muduo::Timestamp’ 163 | R operator()(T * p, A1 a1) const | ~~~^~ /usr/include/boost/bind/mem_fn_template.hpp:168:25: note: candidate: ‘template<class U> R boost::_mfi::mf1<R, T, A1>::operator()(U&, A1) const [with U = U; R = void; T = muduo::net::Resolver; A1 = muduo::Timestamp]’ 168 | template<class U> R operator()(U & u, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/mem_fn_template.hpp:168:25: note: template argument deduction/substitution failed: In file included from /usr/include/boost/bind.hpp:22, from Resolver.cc:5: /usr/include/boost/bind/bind.hpp:319:35: note: cannot convert ‘(& a)->boost::_bi::rrlist1<muduo::Timestamp>::operator[]<std::_Placeholder<1> >(((boost::_bi::list2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > >*)this)->boost::_bi::list2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > >::<anonymous>.boost::_bi::storage2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > >::a2_)’ (type ‘std::_Placeholder<1>’) to type ‘muduo::Timestamp’ 319 | unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/mem_fn.hpp:215, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from Resolver.h:6, from Resolver.cc:1: /usr/include/boost/bind/mem_fn_template.hpp:176:25: note: candidate: ‘template<class U> R boost::_mfi::mf1<R, T, A1>::operator()(const U&, A1) const [with U = U; R = void; T = muduo::net::Resolver; A1 = muduo::Timestamp]’ 176 | template<class U> R operator()(U const & u, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/mem_fn_template.hpp:176:25: note: template argument deduction/substitution failed: In file included from /usr/include/boost/bind.hpp:22, from Resolver.cc:5: /usr/include/boost/bind/bind.hpp:319:35: note: cannot convert ‘(& a)->boost::_bi::rrlist1<muduo::Timestamp>::operator[]<std::_Placeholder<1> >(((boost::_bi::list2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > >*)this)->boost::_bi::list2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > >::<anonymous>.boost::_bi::storage2<boost::_bi::value<muduo::net::Resolver*>, boost::_bi::value<std::_Placeholder<1> > >::a2_)’ (type ‘std::_Placeholder<1>’) to type ‘muduo::Timestamp’ 319 | unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/mem_fn.hpp:215, from /usr/include/boost/mem_fn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from Resolver.h:6, from Resolver.cc:1: /usr/include/boost/bind/mem_fn_template.hpp:184:7: note: candidate: ‘R boost::_mfi::mf1<R, T, A1>::operator()(T&, A1) const [with R = void; T = muduo::net::Resolver; A1 = muduo::Timestamp]’ 184 | R operator()(T & t, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/mem_fn_template.hpp:184:22: note: no known conversion for argument 1 from ‘muduo::net::Resolver*’ to ‘muduo::net::Resolver&’ 184 | R operator()(T & t, A1 a1) const | ~~~~^ make: *** [Makefile:41:Resolver.o] 错误 1
boost version 1.71 是不是新版本boost 语法不支持旧的了?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.