[Pdns-users] metronome

Ciro Iriarte cyruspy at gmail.com
Wed Dec 17 06:54:24 UTC 2014


2014-12-12 11:56 GMT-03:00 Keresztes Péter-Zoltán <zozo at z0z0.tk>:
> Hello guy,
>
> I have tried to get metronome on a server to test it. When I run make I get
> lots of errors.
>
> # make
> g++ -Wall -O3 -ggdb -I. -I yahttp/yahttp  -pthread -MMD -MP  -std=gnu++0x
> -c -o metronome.o metronome.cc
> In file included from metronome.cc:2:
> iputils.hh:36:34: warning: boost/lexical_cast.hpp: No such file or directory
> iputils.hh:37:28: warning: boost/format.hpp: No such file or directory
> metronome.cc:13:37: warning: boost/program_options.hpp: No such file or
> directory
> In file included from metronome.cc:2:
> iputils.hh:47: error: ‘boost’ has not been declared
> iputils.hh: In member function ‘std::string ComboAddress::toStringWithPort()
> const’:
> iputils.hh:181: error: ‘lexical_cast’ was not declared in this scope
> iputils.hh:181: error: expected primary-expression before ‘>’ token
> iputils.hh:183: error: ‘lexical_cast’ was not declared in this scope
> iputils.hh:183: error: expected primary-expression before ‘>’ token
> iputils.hh: In member function ‘std::string Netmask::toString() const’:
> iputils.hh:301: error: ‘lexical_cast’ was not declared in this scope
> iputils.hh:301: error: expected primary-expression before ‘>’ token
> metronome.cc: At global scope:
> metronome.cc:15: error: ‘boost’ has not been declared
> metronome.cc:15: error: ‘program_options’ is not a namespace-name
> metronome.cc:15: error: expected namespace-name before ‘;’ token
> metronome.cc:16: error: ‘po’ has not been declared
> metronome.cc:16: error: expected constructor, destructor, or type conversion
> before ‘g_vm’
> metronome.cc: In function ‘void startCarbonThread(int, ComboAddress)’:
> metronome.cc:25: error: ‘g_vm’ was not declared in this scope
> metronome.cc:25: error: expected primary-expression before ‘>’ token
> metronome.cc:25: error: expected primary-expression before ‘)’ token
> metronome.cc:26: error: ‘boost’ has not been declared
> metronome.cc:26: error: ‘boost’ has not been declared
> metronome.cc:42: error: ‘boost’ has not been declared
> metronome.cc:42: error: ‘boost’ has not been declared
> metronome.cc:47: error: ‘boost’ has not been declared
> metronome.cc:47: error: ‘boost’ has not been declared
> metronome.cc: In function ‘void dumpRequest(const YaHTTP::Request&)’:
> metronome.cc:55: error: expected initializer before ‘:’ token
> metronome.cc:59: error: expected primary-expression before ‘for’
> metronome.cc:59: error: expected ‘)’ before ‘for’
> metronome.cc:59: error: expected initializer before ‘:’ token
> metronome.cc:63: error: expected ‘)’ before ‘;’ token
> metronome.cc: In function ‘std::pair<double, double> smooth(const
> std::vector<StatStorage::Datum, std::allocator<StatStorage::Datum> >&,
> double, int)’:
> metronome.cc:122: error: call of overloaded ‘push_back(<brace-enclosed
> initializer list>)’ is ambiguous
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:733:
> note: candidates are: void std::vector<_Tp, _Alloc>::push_back(const _Tp&)
> [with _Tp = InterpolateDatum, _Alloc = std::allocator<InterpolateDatum>]
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:746:
> note:                 void std::vector<_Tp, _Alloc>::push_back(_Tp&&) [with
> _Tp = InterpolateDatum, _Alloc = std::allocator<InterpolateDatum>]
> metronome.cc: In function ‘void startWebserverThread(int, ComboAddress)’:
> metronome.cc:136: error: ‘boost’ has not been declared
> metronome.cc:136: error: ‘boost’ has not been declared
> metronome.cc:147: error: ‘boost’ has not been declared
> metronome.cc:147: error: ‘boost’ has not been declared
> metronome.cc:150: error: ‘boost’ has not been declared
> metronome.cc:150: error: ‘boost’ has not been declared
> metronome.cc:162: error: ‘g_vm’ was not declared in this scope
> metronome.cc:162: error: expected primary-expression before ‘>’ token
> metronome.cc:162: error: expected primary-expression before ‘)’ token
> metronome.cc:167: error: ‘g_vm’ was not declared in this scope
> metronome.cc:167: error: expected primary-expression before ‘>’ token
> metronome.cc:167: error: expected primary-expression before ‘)’ token
> metronome.cc:173: error: expected initializer before ‘:’ token
> metronome.cc:179: error: expected primary-expression before ‘}’ token
> metronome.cc:179: error: expected ‘)’ before ‘}’ token
> metronome.cc:179: error: expected primary-expression before ‘}’ token
> metronome.cc:179: error: expected ‘;’ before ‘}’ token
> metronome.cc:181: error: ‘g_vm’ was not declared in this scope
> metronome.cc:181: error: expected primary-expression before ‘>’ token
> metronome.cc:181: error: expected primary-expression before ‘)’ token
> metronome.cc:185: error: expected initializer before ‘:’ token
> metronome.cc:189: error: expected primary-expression before ‘}’ token
> metronome.cc:189: error: expected ‘;’ before ‘}’ token
> metronome.cc:189: error: expected primary-expression before ‘}’ token
> metronome.cc:189: error: expected ‘)’ before ‘}’ token
> metronome.cc:189: error: expected primary-expression before ‘}’ token
> metronome.cc:189: error: expected ‘;’ before ‘}’ token
> metronome.cc:192: error: ‘g_vm’ was not declared in this scope
> metronome.cc:192: error: expected primary-expression before ‘>’ token
> metronome.cc:192: error: expected primary-expression before ‘)’ token
> metronome.cc:209: error: expected initializer before ‘:’ token
> metronome.cc:369: error: expected primary-expression at end of input
> metronome.cc:369: error: expected ‘;’ at end of input
> metronome.cc:369: error: expected primary-expression at end of input
> metronome.cc:369: error: expected ‘)’ at end of input
> metronome.cc:369: error: expected statement at end of input
> metronome.cc:200: warning: unused variable ‘begin’
> metronome.cc:201: warning: unused variable ‘end’
> metronome.cc:207: warning: unused variable ‘first’
> metronome.cc:369: error: expected ‘}’ at end of input
> metronome.cc:369: error: expected ‘}’ at end of input
> metronome.cc:369: error: expected ‘}’ at end of input
> metronome.cc:369: error: expected ‘catch’ at end of input
> metronome.cc:369: error: expected ‘(’ at end of input
> metronome.cc:369: error: expected type-specifier at end of input
> metronome.cc:369: error: expected ‘)’ at end of input
> metronome.cc:369: error: expected ‘{’ at end of input
> metronome.cc: At global scope:
> metronome.cc:67: warning: ‘void daemonize()’ defined but not used
> make: *** [metronome.o] Error 1
>
> is there anything I missed?
>
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>

You need eigen3-devel, gcc-c++, git and boost-devel. At least that's
where I'm stuck:

[root at admin metronome-master]# make
fatal: Not a git repository (or any of the parent directories): .git
g++ -Wall -O3 -ggdb -I. -I yahttp/yahttp  -pthread -MMD -MP
-std=gnu++0x    -c -o metronome.o metronome.cc
metronome.cc: In function ‘void dumpRequest(const YaHTTP::Request&)’:
metronome.cc:55: error: expected initializer before ‘:’ token
metronome.cc:59: error: expected primary-expression before ‘for’
metronome.cc:59: error: expected ‘)’ before ‘for’
metronome.cc:59: error: expected initializer before ‘:’ token
metronome.cc:63: error: expected ‘)’ before ‘;’ token
metronome.cc: In function ‘std::pair<double, double> smooth(const
std::vector<StatStorage::Datum, std::allocator<StatStorage::Datum> >&,
double, int)’:
metronome.cc:122: error: call of overloaded ‘push_back(<brace-enclosed
initializer list>)’ is ambiguous
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:733:
note: candidates are: void std::vector<_Tp, _Alloc>::push_back(const
_Tp&) [with _Tp = InterpolateDatum, _Alloc =
std::allocator<InterpolateDatum>]
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:746:
note:                 void std::vector<_Tp, _Alloc>::push_back(_Tp&&)
[with _Tp = InterpolateDatum, _Alloc =
std::allocator<InterpolateDatum>]
metronome.cc: In function ‘void startWebserverThread(int, ComboAddress)’:
metronome.cc:173: error: expected initializer before ‘:’ token
metronome.cc:179: error: expected primary-expression before ‘}’ token
metronome.cc:179: error: expected ‘)’ before ‘}’ token
metronome.cc:179: error: expected primary-expression before ‘}’ token
metronome.cc:179: error: expected ‘;’ before ‘}’ token
metronome.cc:185: error: expected initializer before ‘:’ token
metronome.cc:189: error: expected primary-expression before ‘}’ token
metronome.cc:189: error: expected ‘;’ before ‘}’ token
metronome.cc:189: error: expected primary-expression before ‘}’ token
metronome.cc:189: error: expected ‘)’ before ‘}’ token
metronome.cc:189: error: expected primary-expression before ‘}’ token
metronome.cc:189: error: expected ‘;’ before ‘}’ token
metronome.cc:209: error: expected initializer before ‘:’ token
metronome.cc:369: error: expected primary-expression at end of input
metronome.cc:369: error: expected ‘;’ at end of input
metronome.cc:369: error: expected primary-expression at end of input
metronome.cc:369: error: expected ‘)’ at end of input
metronome.cc:369: error: expected statement at end of input
metronome.cc:200: warning: unused variable ‘begin’
metronome.cc:201: warning: unused variable ‘end’
metronome.cc:207: warning: unused variable ‘first’
metronome.cc:369: error: expected ‘}’ at end of input
metronome.cc:369: error: expected ‘}’ at end of input
metronome.cc:369: error: expected ‘}’ at end of input
metronome.cc:369: error: expected ‘catch’ at end of input
metronome.cc:369: error: expected ‘(’ at end of input
metronome.cc:369: error: expected type-specifier at end of input
metronome.cc:369: error: expected ‘)’ at end of input
metronome.cc:369: error: expected ‘{’ at end of input
metronome.cc: At global scope:
metronome.cc:67: warning: ‘void daemonize()’ defined but not used
make: *** [metronome.o] Error 1

Regards,

-- 
Ciro Iriarte
http://iriarte.it
--




More information about the Pdns-users mailing list