Problem installing Nagios 3.3.1 with --enable-embedded-per in CentOS 6 64 bits
Werner, Robert
RWerner at pomwonderful.com
Tue Sep 13 23:53:28 CEST 2011
One quick guess: do you have the perl-devel rpm installed?
--
Robert G. Werner
Oracle Apps Systems Administrator
rwerner at pomwonderful.com
559.521.5089
-----Original Message-----
From: xesos [mailto:xesos at free.fr]
Sent: Tuesday, September 13, 2011 12:37 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Problem installing Nagios 3.3.1 with --enable-embedded-per in CentOS 6 64 bits
Hello,
I can not compile Nagios with --enable-embedded-perl in CentOS 6 64
bits. The system is installed by default (minimal installation).
Here, it's all my procedure and the errors :
- yum install httpd php gcc make gd gd-devel perl perl-devel wget mailx
- groupadd nagios
- useradd -g nagios -d /usr/local/nagios -M -s /bin/bash nagios
- groupadd nagcmd
- usermod -a -G nagcmd nagios
- usermod -a -G nagcmd apache
- cd /usr/local/src/
- wget
http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.3.1/nagios-3.3.1.tar.gz?r=http%3A%2F%2Fwww.nagios.org%2Fdownload%2Fcore%2Fthanks%2F&ts=1315941098&use_mirror=freefr
- tar -xzf nagios-3.3.1.tar.gz
- cd nagios
- ./configure --prefix=/usr/local/nagios --sysconfdir=/etc/nagios
--localstatedir=/var/nagios --with-nagios-user=nagios
--with-nagios-grp=nagios --with-command-user=nagios
--with-command-group=nagcmd --with-gd-lib=/usr/local/lib
--with-gd-inc=/usr/local/include --with-cgiurl=/nagios/cgi-bin
--with-htmurl=/nagios --with-mail=/bin/mail
--with-httpd-conf=/etc/httpd/conf.d --enable-nanosleep
--enable-embedded-perl --with-perlcache
- make all
> cd ./base && make
> make[1]: entrant dans le répertoire « /usr/local/src/nagios/base »
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
broker.o broker.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
nebmods.o nebmods.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
../common/shared.o ../common/shared.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
checks.o checks.c
> Dans le fichier inclus à partir de checks.c:41:
> ../include/epn_nagios.h:11:20: erreur: EXTERN.h : Aucun fichier ou
dossier de ce type
> ../include/epn_nagios.h:12:18: erreur: perl.h : Aucun fichier ou
dossier de ce type
> In file included from checks.c:41:
> ../include/epn_nagios.h:31: erreur: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âvoidâ
> checks.c: In function ârun_async_service_checkâ:
> checks.c:348: erreur: âSVâ undeclared (first use in this function)
> checks.c:348: erreur: (Each undeclared identifier is reported only once
> checks.c:348: erreur: for each function it appears in.)
> checks.c:348: erreur: âplugin_hndlr_crâ undeclared (first use in this
function)
> checks.c:354: erreur: âdSPâ undeclared (first use in this function)
> checks.c:551: erreur: âENTERâ undeclared (first use in this function)
> checks.c:552: erreur: âSAVETMPSâ undeclared (first use in this function)
> checks.c:553: attention : implicit declaration of function âPUSHMARKâ
> checks.c:553: erreur: âSPâ undeclared (first use in this function)
> checks.c:554: attention : implicit declaration of function âXPUSHsâ
> checks.c:554: attention : implicit declaration of function âsv_2mortalâ
> checks.c:554: attention : implicit declaration of function ânewSVpvâ
> checks.c:558: erreur: âPUTBACKâ undeclared (first use in this function)
> checks.c:562: attention : implicit declaration of function âcall_pvâ
> checks.c:562: erreur: âG_SCALARâ undeclared (first use in this function)
> checks.c:562: erreur: âG_EVALâ undeclared (first use in this function)
> checks.c:564: erreur: âSPAGAINâ undeclared (first use in this function)
> checks.c:566: attention : implicit declaration of function âSvTRUEâ
> checks.c:566: erreur: âERRSVâ undeclared (first use in this function)
> checks.c:575: erreur: âPOPsâ undeclared (first use in this function)
> checks.c:578: attention : implicit declaration of function âSvPVXâ
> checks.c:623: attention : implicit declaration of function ânewSVsvâ
> checks.c:628: erreur: âFREETMPSâ undeclared (first use in this function)
> checks.c:629: erreur: âLEAVEâ undeclared (first use in this function)
> checks.c:707: erreur: âG_ARRAYâ undeclared (first use in this function)
> checks.c:711: erreur: âPOPpxâ undeclared (first use in this function)
> checks.c:712: erreur: âPOPiâ undeclared (first use in this function)
> make[1]: *** [checks.o] Erreur 1
> make[1]: quittant le répertoire « /usr/local/src/nagios/base »
> make: *** [all] Erreur 2
- yum install mlocate
- updatedb
- locate EXTERN.h
> /usr/lib64/perl5/CORE/EXTERN.h
- locate perl.h
> /usr/lib64/perl5/CORE/perl.h
- export CPPFLAGS="-I/usr/lib64/perl5/CORE/"
- make all
> cd ./base && make
> make[1]: entrant dans le répertoire « /usr/local/src/nagios/base »
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o broker.o broker.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o nebmods.o nebmods.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
../common/shared.o ../common/shared.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o checks.o checks.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o config.o config.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o commands.o commands.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o events.o events.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o flapping.o flapping.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o logging.o logging.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
macros-base.o ../common/macros.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o netutils.o netutils.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o notifications.o notifications.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o sehandlers.o sehandlers.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
skiplist.o ../common/skiplist.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE
-I/usr/lib64/perl5/CORE/ -c -o utils.o utils.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
retention-base.o sretention.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
xretention-base.o ../xdata/xrddefault.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
comments-base.o ../common/comments.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
xcomments-base.o ../xdata/xcddefault.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
objects-base.o ../common/objects.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
xobjects-base.o ../xdata/xodtemplate.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
statusdata-base.o ../common/statusdata.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
xstatusdata-base.o ../xdata/xsddefault.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
perfdata-base.o perfdata.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
xperfdata-base.o ../xdata/xpddefault.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
downtime-base.o ../common/downtime.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o
xdowntime-base.o ../xdata/xdddefault.c
> gcc -Wall -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o
nagios nagios.c broker.o nebmods.o ../common/shared.o 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,-export-dynamic -L/usr/local/lib -lm -lpthread -ldl
> gcc: perlxsi.o : Aucun fichier ou dossier de ce type
> make[1]: *** [nagios] Erreur 1
> make[1]: quittant le répertoire « /usr/local/src/nagios/base »
> make: *** [all] Erreur 2
An idea of the problem ?
Thanks,
Regards.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
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
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
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