Hello,
I am working on instrumenting a Perl application with C SDK , so that I could monitor key functionalities of the application in New Relic App.
I have installed C SDK on a Linux based system.
I am using Inline::C of Perl , and I have included the following in the perl files ;
use Inline C => Config => LIBS => ‘-L/home/sourav/NewRelic/c-sdk/libnewrelic.a’;
I have also tried by using the following :
use Inline C => Config => LIBS => ‘-L/home/sourav/NewRelic/c-sdk/include/libnewrelic.h’;
Makefile.PL is being generated without errors , as follows:
use ExtUtils::MakeMaker;
my %options = %{
{
‘VERSION’ => ‘0.00’,
‘LIBS’ => [
‘-L/home/sourav/NewRelic/c-sdk/libnewrelic.a’
],
‘TYPEMAPS’ => [
‘/usr/share/perl/5.18/ExtUtils/typemap’
],
‘INC’ => ‘-iquote"/home/sourav/betterknow/script" -iquote"/home/sourav/NewRelic/c-sdk/include"’,
‘NAME’ => ‘BetterKnow::Controller::Courses_4e3a’
}
};
WriteMakefile(%options);
I am still getting the following error :
"symbol lookup error: /home/sourav/betterknow/script/_Inline/lib/auto/BetterKnow/Controller/Courses_d38b/Courses_d38b.so: undefined symbol: newrelic_create_app_config."
On running the perl application , it is showing undefined symbols for the new relic APIs.
Am I missing something , Any help is appreciated.
Thanks in advance.