[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problème de compilation de nagios avec le cache de perl



Bonjour a tous

j'ai un soucis de compilation de nagios v 3.1.2

j'utilise pour le configure :
./configure --enable-dependency-tracking --enable-extra-opts --enable-perl-modules --with-gnu-ld --with-pic --without-ipv6 --enable-embedded-perl --with-perlcache

à priori tout ce passe bien :

creating base/perlxsi.c
Embedded Perl interpreter will be compiled in...
Internally compiled Perl scripts will be cached...
Using threaded perl
checking for traceroute... /usr/sbin/traceroute
checking for type va_list... yes
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating pkginfo
config.status: creating base/Makefile
config.status: creating common/Makefile
config.status: creating contrib/Makefile
config.status: creating cgi/Makefile
config.status: creating html/Makefile
config.status: creating module/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating t-tap/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/snprintf.h
config.status: include/snprintf.h is unchanged
config.status: creating include/cgiutils.h
config.status: include/cgiutils.h is unchanged

Creating sample config files in sample-config/ ...


*** Configuration summary for nagios 3.1.2 06-23-2009 ***:

 General Options:
 -------------------------
        Nagios executable:  nagios
        Nagios user/group:  nagios,nagios
       Command user/group:  nagios,nagios
            Embedded Perl:  yes, with caching
             Event Broker:  yes
        Install ${prefix}:  /usr/local/nagios
                Lock file:  ${prefix}/var/nagios.lock
   Check result directory:  ${prefix}/var/spool/checkresults
           Init directory:  /etc/init.d
  Apache conf.d directory:  /etc/apache2/conf.d
             Mail program:  /usr/bin/mail
                  Host OS:  linux-gnu

 Web Interface Options:
 ------------------------
                 HTML URL:  http://localhost/nagios/
                  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):  /usr/sbin/traceroute


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.

cependant lors de la compile j' ai une insulte :

gcc -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/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 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 -Wl,-E -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -lm -lpthread -lltdl
/usr/bin/ld: cannot find -lperl
collect2: ld a retourné 1 code d'état d'exécution
make[1]: *** [nagios] Erreur 1
make[1]: quittant le répertoire « /var/source/nagios/nagios-3.1.2/base »
make: *** [all] Erreur 2

ps : je suis en kernel 2.6.26-2-xen-686 mais en sid, ma version de perl est v5.10.0 built for i486-linux-gnu-thread-multi

si j'enlève le cache de perl la compile se passe bien
Est ce que quelqu n a une idee?

merci

philippe



Reply to: