-
Notifications
You must be signed in to change notification settings - Fork 6
Compilation error #11
Description
I am getting below error while compiling on HHVM 3.5 Centos 6.5. Fyi I have build HHVM from source
In file included from /home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:9:0:
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic_profiler.h: In constructor âHPHP::NewRelicProfiler::NewRelicProfiler(int64_t)â:
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic_profiler.h:31:69: error: no matching function for call to âHPHP::Profiler::Profiler()â
explicit NewRelicProfiler(int64_t mdepth) : max_depth(mdepth) {
^
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic_profiler.h:31:69: note: candidates are:
In file included from /home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:5:0:
/usr/local/include/hphp/runtime/ext/ext_hotprofiler.h:138:12: note: HPHP::Profiler::Profiler(bool)
explicit Profiler(bool needCPUAffinity);
^
/usr/local/include/hphp/runtime/ext/ext_hotprofiler.h:138:12: note: candidate expects 1 argument, 0 provided
/usr/local/include/hphp/runtime/ext/ext_hotprofiler.h:136:7: note: constexpr HPHP::Profiler::Profiler(const HPHP::Profiler&)
class Profiler {
^
/usr/local/include/hphp/runtime/ext/ext_hotprofiler.h:136:7: note: candidate expects 1 argument, 0 provided
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp: In function âHPHP::Variant HPHP::f_newrelic_get_scoped_generic_segment(const HPHP::String&)â:
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:162:42: error: expected primary-expression before â)â token
segment = NEWOBJ(ScopedGenericSegment)(name.c_str());
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:162:42: error: âNEWOBJâ was not declared in this scope
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp: In function âHPHP::Variant HPHP::f_newrelic_get_scoped_database_segment(const HPHP::String&, const HPHP::String&)â:
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:168:44: error: expected primary-expression before â)â token
segment = NEWOBJ(ScopedDatastoreSegment)(table.c_str(), operation.c_str());
^
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:168:44: error: âNEWOBJâ was not declared in this scope
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp: In function âHPHP::Variant HPHP::f_newrelic_get_scoped_external_segment(const HPHP::String&, const HPHP::String&)â:
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:174:43: error: expected primary-expression before â)â token
segment = NEWOBJ(ScopedExternalSegment)(host.c_str(), name.c_str());
^
/home/upendras/dev/hhvm-newrelic-ext-for-hhvm-3.4/newrelic.cpp:174:43: error: âNEWOBJâ was not declared in this scope
make[2]: *** [CMakeFiles/newrelic.dir/newrelic.cpp.o] Error 1
make[1]: *** [CMakeFiles/newrelic.dir/all] Error 2
make: *** [all] Error 2
Please help me out.