For some reason if I try and install Nagios with Embedded Perl I get error messages when I do the “make all” command
root@nagiossvr01:/tmp/nagios-3.0# make all
cd ./base && make
make[1]: Entering directory /tmp/nagios-3.0/base' gcc -g -O2 -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o perlxsi.o -Wl,-export-dynamic -L/usr/local/lib -Wl,-E -L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -ldl -lm -lpthread -lc -lcrypt -lm -lpthread -ldl checks.o: In function
run_async_service_check’:
/tmp/nagios-3.0/base/checks.c:346: undefined reference to PL_thr_key' /tmp/nagios-3.0/base/checks.c:532: undefined reference to
Perl_push_scope’
/tmp/nagios-3.0/base/checks.c:533: undefined reference to Perl_save_int' /tmp/nagios-3.0/base/checks.c:535: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/checks.c:535: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/checks.c:536: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/checks.c:536: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/checks.c:537: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/checks.c:537: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/checks.c:538: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/checks.c:538: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/checks.c:543: undefined reference to
Perl_call_pv’
/tmp/nagios-3.0/base/checks.c:604: undefined reference to Perl_newSVsv' /tmp/nagios-3.0/base/checks.c:609: undefined reference to
Perl_free_tmps’
/tmp/nagios-3.0/base/checks.c:610: undefined reference to Perl_pop_scope' /tmp/nagios-3.0/base/checks.c:538: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/checks.c:535: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/checks.c:537: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/checks.c:536: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/checks.c:547: undefined reference to
Perl_sv_2bool’
/tmp/nagios-3.0/base/checks.c:534: undefined reference to Perl_markstack_grow' /tmp/nagios-3.0/base/checks.c:668: undefined reference to
Perl_push_scope’
/tmp/nagios-3.0/base/checks.c:669: undefined reference to Perl_save_int' /tmp/nagios-3.0/base/checks.c:670: undefined reference to
Perl_markstack_grow’
/tmp/nagios-3.0/base/checks.c:672: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/checks.c:672: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/checks.c:672: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/checks.c:673: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/checks.c:673: undefined reference to Perl_newSVpv' /tmp/nagios-3.0/base/checks.c:673: undefined reference to
Perl_sv_2mortal’
/tmp/nagios-3.0/base/checks.c:674: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/checks.c:675: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/checks.c:675: undefined reference to Perl_newSVpv' /tmp/nagios-3.0/base/checks.c:675: undefined reference to
Perl_sv_2mortal’
/tmp/nagios-3.0/base/checks.c:679: undefined reference to Perl_call_pv' /tmp/nagios-3.0/base/checks.c:695: undefined reference to
Perl_free_tmps’
/tmp/nagios-3.0/base/checks.c:696: undefined reference to Perl_pop_scope' /tmp/nagios-3.0/base/checks.c:684: undefined reference to
Perl_sv_2iv’
/tmp/nagios-3.0/base/checks.c:683: undefined reference to Perl_sv_2pv_flags' utils.o: In function
deinit_embedded_perl’:
/tmp/nagios-3.0/base/utils.c:3643: undefined reference to perl_destruct' /tmp/nagios-3.0/base/utils.c:3644: undefined reference to
perl_free’
/tmp/nagios-3.0/base/utils.c:3645: undefined reference to PL_op_mutex' /tmp/nagios-3.0/base/utils.c:3645: undefined reference to
Perl_croak_nocontext’
utils.o: In function init_embedded_perl': /tmp/nagios-3.0/base/utils.c:3628: undefined reference to
perl_construct’
/tmp/nagios-3.0/base/utils.c:3629: undefined reference to perl_parse' /tmp/nagios-3.0/base/utils.c:3631: undefined reference to
perl_run’
/tmp/nagios-3.0/base/utils.c:3611: undefined reference to PL_sigfpe_saved' /tmp/nagios-3.0/base/utils.c:3613: undefined reference to
perl_alloc’
utils.o: In function my_system': /tmp/nagios-3.0/base/utils.c:307: undefined reference to
PL_thr_key’
/tmp/nagios-3.0/base/utils.c:349: undefined reference to Perl_push_scope' /tmp/nagios-3.0/base/utils.c:350: undefined reference to
Perl_save_int’
/tmp/nagios-3.0/base/utils.c:353: undefined reference to Perl_newSVpv' /tmp/nagios-3.0/base/utils.c:353: undefined reference to
Perl_sv_2mortal’
/tmp/nagios-3.0/base/utils.c:354: undefined reference to Perl_newSVpv' /tmp/nagios-3.0/base/utils.c:354: undefined reference to
Perl_sv_2mortal’
/tmp/nagios-3.0/base/utils.c:355: undefined reference to Perl_newSVpv' /tmp/nagios-3.0/base/utils.c:355: undefined reference to
Perl_sv_2mortal’
/tmp/nagios-3.0/base/utils.c:356: undefined reference to Perl_newSVpv' /tmp/nagios-3.0/base/utils.c:356: undefined reference to
Perl_sv_2mortal’
/tmp/nagios-3.0/base/utils.c:360: undefined reference to Perl_call_pv' /tmp/nagios-3.0/base/utils.c:356: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/utils.c:354: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/utils.c:353: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/utils.c:355: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/utils.c:381: undefined reference to
Perl_newSVsv’
/tmp/nagios-3.0/base/utils.c:387: undefined reference to Perl_pop_scope' /tmp/nagios-3.0/base/utils.c:453: undefined reference to
Perl_push_scope’
/tmp/nagios-3.0/base/utils.c:454: undefined reference to Perl_save_int' /tmp/nagios-3.0/base/utils.c:457: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/utils.c:457: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/utils.c:458: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/utils.c:458: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/utils.c:460: undefined reference to
Perl_newSVpv’
/tmp/nagios-3.0/base/utils.c:460: undefined reference to Perl_sv_2mortal' /tmp/nagios-3.0/base/utils.c:464: undefined reference to
Perl_call_pv’
/tmp/nagios-3.0/base/utils.c:477: undefined reference to Perl_pop_scope' /tmp/nagios-3.0/base/utils.c:469: undefined reference to
Perl_sv_2pv_flags’
/tmp/nagios-3.0/base/utils.c:460: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/utils.c:459: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/utils.c:458: undefined reference to Perl_stack_grow' /tmp/nagios-3.0/base/utils.c:457: undefined reference to
Perl_stack_grow’
/tmp/nagios-3.0/base/utils.c:386: undefined reference to Perl_free_tmps' /tmp/nagios-3.0/base/utils.c:351: undefined reference to
Perl_markstack_grow’
/tmp/nagios-3.0/base/utils.c:476: undefined reference to Perl_free_tmps' /tmp/nagios-3.0/base/utils.c:473: undefined reference to
Perl_sv_2iv’
/tmp/nagios-3.0/base/utils.c:364: undefined reference to Perl_sv_2bool' /tmp/nagios-3.0/base/utils.c:455: undefined reference to
Perl_markstack_grow’
perlxsi.o: In function xs_init': /tmp/nagios-3.0/base/perlxsi.c:15: undefined reference to
Perl_newXS’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function XS_DynaLoader_dl_undef_symbols': DynaLoader.c:(.text+0x59): undefined reference to
Perl_croak’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function boot_DynaLoader': DynaLoader.c:(.text+0x148): undefined reference to
Perl_newXS’
DynaLoader.c:(.text+0x16b): undefined reference to Perl_newXS' DynaLoader.c:(.text+0x18e): undefined reference to
Perl_newXS’
DynaLoader.c:(.text+0x1b1): undefined reference to Perl_newXS' DynaLoader.c:(.text+0x1d4): undefined reference to
Perl_newXS’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o):DynaLoader.c:(.text+0x1f7): more undefined references to Perl_newXS' follow /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function
boot_DynaLoader’:
DynaLoader.c:(.text+0x226): undefined reference to Perl_hv_fetch' DynaLoader.c:(.text+0x23b): undefined reference to
Perl_newSV’
DynaLoader.c:(.text+0x25f): undefined reference to Perl_sv_setuv' DynaLoader.c:(.text+0x27c): undefined reference to
Perl_newSVpvn’
DynaLoader.c:(.text+0x336): undefined reference to Perl_croak' DynaLoader.c:(.text+0x35b): undefined reference to
Perl_sv_2pv_flags’
DynaLoader.c:(.text+0x398): undefined reference to Perl_form' DynaLoader.c:(.text+0x3af): undefined reference to
Perl_get_sv’
DynaLoader.c:(.text+0x3e7): undefined reference to Perl_form' DynaLoader.c:(.text+0x3fe): undefined reference to
Perl_get_sv’
DynaLoader.c:(.text+0x446): undefined reference to Perl_sv_2pv_flags' /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function
XS_DynaLoader_dl_error’:
DynaLoader.c:(.text+0x4cc): undefined reference to Perl_hv_fetch' DynaLoader.c:(.text+0x4f9): undefined reference to
Perl_sv_setpv’
DynaLoader.c:(.text+0x514): undefined reference to Perl_mg_set' DynaLoader.c:(.text+0x538): undefined reference to
Perl_sv_2uv’
DynaLoader.c:(.text+0x544): undefined reference to Perl_sv_newmortal' DynaLoader.c:(.text+0x55e): undefined reference to
Perl_croak’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function XS_DynaLoader_dl_install_xsub': DynaLoader.c:(.text+0x625): undefined reference to
Perl_newXS’
DynaLoader.c:(.text+0x634): undefined reference to Perl_newRV' DynaLoader.c:(.text+0x643): undefined reference to
Perl_sv_2mortal’
DynaLoader.c:(.text+0x66b): undefined reference to Perl_sv_2iv' DynaLoader.c:(.text+0x692): undefined reference to
Perl_sv_2pv_flags’
DynaLoader.c:(.text+0x6bf): undefined reference to Perl_sv_2pv_flags' DynaLoader.c:(.text+0x6d9): undefined reference to
Perl_croak’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function SaveError': DynaLoader.c:(.text+0x71f): undefined reference to
Perl_hv_fetch’
DynaLoader.c:(.text+0x748): undefined reference to Perl_vmess' DynaLoader.c:(.text+0x77b): undefined reference to
Perl_sv_setpvn’
DynaLoader.c:(.text+0x78f): undefined reference to Perl_sv_2uv' DynaLoader.c:(.text+0x7ae): undefined reference to
Perl_sv_2pv_flags’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function XS_DynaLoader_dl_find_symbol': DynaLoader.c:(.text+0x83b): undefined reference to
Perl_sv_newmortal’
DynaLoader.c:(.text+0x860): undefined reference to Perl_sv_setiv' DynaLoader.c:(.text+0x87f): undefined reference to
Perl_sv_2iv’
DynaLoader.c:(.text+0x8b0): undefined reference to Perl_sv_2pv_flags' DynaLoader.c:(.text+0x8ff): undefined reference to
Perl_croak’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function XS_DynaLoader_dl_unload_file': DynaLoader.c:(.text+0x9ac): undefined reference to
Perl_sv_setiv’
DynaLoader.c:(.text+0x9be): undefined reference to Perl_mg_set' DynaLoader.c:(.text+0xa04): undefined reference to
Perl_sv_newmortal’
DynaLoader.c:(.text+0xa18): undefined reference to Perl_sv_2iv' DynaLoader.c:(.text+0xa32): undefined reference to
Perl_croak’
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o): In function XS_DynaLoader_dl_load_file': DynaLoader.c:(.text+0xaef): undefined reference to
Perl_hv_fetch’
DynaLoader.c:(.text+0xb2b): undefined reference to Perl_sv_newmortal' DynaLoader.c:(.text+0xb51): undefined reference to
Perl_sv_setiv’
DynaLoader.c:(.text+0xb80): undefined reference to Perl_sv_2uv' DynaLoader.c:(.text+0xbab): undefined reference to
Perl_sv_2pv_flags’
DynaLoader.c:(.text+0xbc2): undefined reference to Perl_sv_2iv' DynaLoader.c:(.text+0xc04): undefined reference to
Perl_croak’
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/tmp/nagios-3.0/base’
make: *** [all] Error 2
This is on Ubuntu. What is the issue?