Page 1 of 1

Nagios 3 on FreeBSD

PostPosted: Sun Jul 24, 2011 3:46 pm
by Aaron5
He everyone,

I have been trying to install Nagios 3.2.3 on FreeBSD using ports. When I
Code: Select all
make install clean
, here is the error that I get:

Code: Select all
===>  Building for nagios-3.2.3
cd ./base && make
cc -O2 -pipe -I/usr/local/include -fPIC -fno-strict-aliasing  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.14.1/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include  -I/usr/local/lib/perl5/5.14.1/mach/CORE  -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c  checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.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,-R/usr/local/lib/perl5/5.14.1/mach/CORE -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/local/lib/perl5/5.14.1/mach/CORE -lperl -lm -lcrypt -lutil -lm  -lthr  -lthr -L/usr/local/lib
checks.o(.text+0x4e5f): In function `run_async_service_check':
: undefined reference to `Perl_sv_2bool_flags'
checks.o(.text+0x4e7d): In function `run_async_service_check':
: undefined reference to `Perl_gv_add_by_type'
checks.o(.text+0x4e8d): In function `run_async_service_check':
: undefined reference to `Perl_gv_add_by_type'
checks.o(.text+0x4e9d): In function `run_async_service_check':
: undefined reference to `Perl_gv_add_by_type'
checks.o(.text+0x4ead): In function `run_async_service_check':
: undefined reference to `Perl_gv_add_by_type'
checks.o(.text+0x4ebd): In function `run_async_service_check':
: undefined reference to `Perl_gv_add_by_type'
checks.o(.text+0x4ecd): more undefined references to `Perl_gv_add_by_type' follow
utils.o(.text+0x6890): In function `my_system':
: undefined reference to `Perl_sv_2bool_flags'
utils.o(.text+0x68a1): In function `my_system':
: undefined reference to `Perl_gv_add_by_type'
utils.o(.text+0x6925): In function `my_system':
: undefined reference to `Perl_gv_add_by_type'
utils.o(.text+0x6935): In function `my_system':
: undefined reference to `Perl_gv_add_by_type'
utils.o(.text+0x69d8): In function `my_system':
: undefined reference to `Perl_gv_add_by_type'
utils.o(.text+0x69fd): In function `my_system':
: undefined reference to `Perl_gv_add_by_type'
utils.o(.text+0x6a5d): more undefined references to `Perl_gv_add_by_type' follow
*** Error code 1

Stop in /usr/ports/net-mgmt/nagios/work/nagios-3.2.3/base.
*** Error code 1

Stop in /usr/ports/net-mgmt/nagios/work/nagios-3.2.3.
*** Error code 1

Stop in /usr/ports/net-mgmt/nagios.
*** Error code 1

Stop in /usr/ports/net-mgmt/nagios.



I have tried reinstalling all the packages I could think of and checked out several tutorials, but I cant seem to find a solution. do you have any idea what could be going wrong here?