Nagios-1.2 compilation error

Martin mgursky at zmail.sk
Sat May 29 21:41:49 CEST 2004


Hi,I need help with me compilation Nagios-1.2.tar.gz I have Mandrake 
10.0 Community. I don`t compile Nagios-1.2. Please help. Sorry for me 
english.
Martin from Slovakia


[root at server nagios-1.2]# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for strip... (cached) /usr/bin/strip
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for ctype.h... (cached) yes
checking for dirent.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for getopt.h... (cached) yes
checking for grp.h... (cached) yes
checking for limits.h... (cached) yes
checking for math.h... (cached) yes
checking for pwd.h... (cached) yes
checking for signal.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for uio.h... (cached) no
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for sys/msg.h... (cached) yes
checking for working const... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) yes
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... (cached) gid_t
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for strtoul... (cached) yes
checking for initgroups... (cached) yes
checking for type of socket size... size_t
checking for mail... (cached) /bin/mail
Init script directory:  /etc/rc.d/init.d
We'll use default routines (in xdata/xsddefault.*) for status data I/O...
We'll use default routines (in xdata/xcddefault.*) for comment data I/O...
We'll use template-based routines (in xdata/xedtemplate.*) for extended 
data I/O...
We'll use default routines (in xdata/xrddefault.*) for retention data I/O...
We'll use template-based routines (in xdata/xodtemplate.*) for object 
data I/O...
We'll use default routines (in xdata/xpddefault.*) for performance data 
I/O...
We'll use default routines (in xdata/xdddefault.*) for scheduled 
downtime data I/O...
checking for main in -liconv... (cached) no
checking for gdImagePng in -lgd (order 1)... (cached) yes
GD library was found!
checking for traceroute... (cached) /usr/sbin/traceroute
checking for snprintf... (cached) yes
checking for type va_list... yes
checking for perl... (cached) /usr/bin/perl
creating ./config.status
creating Makefile
creating subst
creating pkginfo
creating base/Makefile
creating common/Makefile
creating contrib/Makefile
creating cgi/Makefile
creating html/Makefile
creating xdata/Makefile
creating daemon-init
creating html/index.html
creating html/side.html
creating common/config.h
common/config.h is unchanged
creating common/snprintf.h
common/snprintf.h is unchanged
creating base/nagios.h
creating cgi/cgiutils.h
cgi/cgiutils.h is unchanged

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


*** Configuration summary for nagios 1.2 02-02-2004 ***:

  General Options:
  -------------------------
         Nagios executable:  nagios
         Nagios user/group:  nagios,nagios
        Command user/group:  nagios,nagios
             Embedded Perl:  no
         Install ${prefix}:  /usr/local/nagios
                 Lock file:  ${prefix}/var/nagios.lock
            Init directory:  /etc/rc.d/init.d

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

  External Data Routines:
  ------------------------
               Status data:  Default (text file)
               Object data:  Template-based (text file)
              Comment data:  Default (text file)
             Downtime data:  Default (text file)
            Retention data:  Default (text file)
           Peformance data:  Default (external commands)
        Extended info data:  Template-based (text file)


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


[root at server nagios-1.2]# make all
cd ./base && make
make[1]: Entering directory `/home/martin/install/Nagios/nagios-1.2/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE  nagios.c checks.o config.o 
commands.o flapping.o logging.o notifications.o sehandlers.o utils.o 
sretention.o ../xdata/xrddefault.c ../common/comments.c 
../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c 
../common/statusdata.c ../xdata/xsddefault.c perfdata.o 
../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c    -lm 
-o nagios
make[1]: Leaving directory `/home/martin/install/Nagios/nagios-1.2/base'
cd ./cgi && make
make[1]: Entering directory `/home/martin/install/Nagios/nagios-1.2/cgi'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  statusmap.c getcgi.o cgiutils.o 
auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c 
../common/statusdata.c ../xdata/xsddefault.c -lgd  -lz -lm -lpng -ljpeg 
edata.o ../xdata/xedtemplate.c -o statusmap.cgi
/root/tmp/ccgSwIh2.o(.text+0x3670): In function `load_image_from_file':
/home/martin/install/Nagios/nagios-1.2/cgi/statusmap.c:2224: undefined 
reference to `gdImageCreateFromJpeg'
collect2: ld returned 1 exit status
make[1]: *** [statusmap.cgi] Error 1
make[1]: Leaving directory `/home/martin/install/Nagios/nagios-1.2/cgi'
make: *** [all] Error 2




Martin


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&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