Problem compiling with embedded perl option

Tong Young Tong at ingenio.com
Fri Feb 18 01:48:02 CET 2005


I am trying to use the --enable-embedded-perl flag but I get the
following error when running make all.

This is nagios 2.0b2 on debian sarge.  I have perl 5.8 installed.  Any
help would be appreciated.  I'm assuming that I'm missing some packages.

gcc -g -O2  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -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 notifications.o sehandlers.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   -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 -lnsl
-lpthread -ldl 
checks.o(.text+0x56): In function `run_service_check':
/tmp/nagios-2.0b2/base/checks.c:118: undefined reference to `PL_thr_key'
checks.o(.text+0x73e):/tmp/nagios-2.0b2/base/checks.c:338: undefined
reference to `Perl_push_scope'
checks.o(.text+0x759):/tmp/nagios-2.0b2/base/checks.c:339: undefined
reference to `Perl_save_int'
....
....
: undefined reference to `Perl_form'
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.text+0xbdb
): In function `boot_DynaLoader':
: undefined reference to `Perl_get_sv'
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.text+0xc05
): In function `boot_DynaLoader':
: undefined reference to `Perl_sv_2pv_flags'
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/tmp/nagios-2.0b2/base'
make: *** [all] Error 2



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list