agent_sdk_samples icon indicating copy to clipboard operation
agent_sdk_samples copied to clipboard

Compilation error

Open singhupendra opened this issue 10 years ago • 1 comments

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.

singhupendra avatar Jan 20 '15 21:01 singhupendra

Unfortunately, this was only tested with HHVM 2.0, and was intended to be a sample. You might check out this blog post, though: http://blog.liip.ch/archive/2015/01/19/new-relic-extension-for-hhvm-updated-to-latest-version.html

kfrugia-newrelic avatar Jan 21 '15 17:01 kfrugia-newrelic