My current version is 3.4.1, try to install 3.4.2.
My actions:
0. FreeBSD 8.0-RELEASE # 0: Thu Jan 13 15:12:53 MSK 2011 / usr/obj/usr/src/sys/kernel20110113 amd64
1. /usr/local/etc/rc.d/nagios stop
2. ./configure - with-command-group = nagios
3. make all
And on the last command make all get the error.
# ./configure --with-command-group=nagios
Code: Select all
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-freebsd8.0
checking host system type... x86_64-unknown-freebsd8.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for strip... /usr/bin/strip
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pthreads.h usability... no
checking pthreads.h presence... no
checking for pthreads.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking uio.h usability... no
checking uio.h presence... no
checking for uio.h... no
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for library containing getservbyname... none required
checking for library containing connect... none required
checking for initgroups... yes
checking for setenv... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for unsetenv... yes
checking for type of socket size... size_t
checking for pthread_create in -lcma... no
checking for pthread_create in -lpthread... yes
checking for library containing nanosleep... none required
checking for mail... /usr/bin/mail
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 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... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no
*** GD, PNG, and/or JPEG libraries could not be located... *********
Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs. Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.
NOTE: In addition to the gd-devel library, you'll also need to make
sure you have the png-devel and jpeg-devel libraries installed
on your system.
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the GD, PNG, and JPEG libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make clean' in the Nagios distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
NOTE: If you can't get the configure script to recognize the GD libs
on your system, get over it and move on to other things. The
CGIs that use the GD libs are just a small part of the entire
Nagios package. Get everything else working first and then
revisit the problem. Make sure to check the nagios-users
mailing list archives for possible solutions to GD library
problems when you resume your troubleshooting.
********************************************************************
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... no
checking for extra flags needed to export symbols... -Wl,-export-dynamic
checking for linker flags for loadable modules... -shared
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: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating lib/Makefile
config.status: creating subst
config.status: WARNING: 'subst.in' seems to ignore the --datarootdir setting
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: WARNING: 'html/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating module/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating t/Makefile
config.status: creating t-tap/Makefile
config.status: creating include/config.h
config.status: creating include/snprintf.h
Creating sample config files in sample-config/ ...
*** Configuration summary for nagios 3.4.2 11-09-2012 ***:
General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagios
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/etc/nagios
Lock file: ${prefix}/var/run/nagios/nagios.lock
Check result directory: ${prefix}/var/spool/nagios/checkresults
Init directory: /usr/local/etc/rc.d
Apache conf.d directory: /usr/local/etc/apache22/conf.d
Mail program: /usr/bin/mail
Host OS: freebsd8.0
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.Code: Select all
cd ./base && make
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c broker.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c nebmods.c
nebmods.c: In function 'neb_load_module':
nebmods.c:218: warning: implicit declaration of function 'dlopen'
nebmods.c:218: warning: cast to pointer from integer of different size
nebmods.c:225: warning: implicit declaration of function 'dlerror'
nebmods.c:225: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
nebmods.c:249: warning: implicit declaration of function 'dlsym'
nebmods.c:249: warning: cast to pointer from integer of different size
nebmods.c:266: warning: cast to pointer from integer of different size
nebmods.c:299: warning: cast to pointer from integer of different size
nebmods.c: In function 'neb_unload_module':
nebmods.c:363: warning: implicit declaration of function 'dlclose'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c checks.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c config.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c commands.c
commands.c: In function 'cmd_signal_process':
commands.c:2000: warning: assignment makes integer from pointer without a cast
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c events.c
events.c: In function 'schedule_new_event':
events.c:819: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'void *'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c flapping.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c logging.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c netutils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c notifications.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c sehandlers.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c utils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
make -C ../lib
ar cr libnagios.a
gcc -Wall -g -O2 -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 -Wl,-export-dynamic -lm -lpthread ../lib/libnagios.a
events.o(.text+0xb4): In function `init_event_queue':
/usr/home/sha/pakets/nagios/base/events.c:773: undefined reference to `squeue_create'
events.o(.text+0x1b6): In function `compensate_for_system_time_change':
/usr/home/sha/pakets/nagios/base/events.c:1378: undefined reference to `squeue_size'
events.o(.text+0x1bd):/usr/home/sha/pakets/nagios/base/events.c:1378: undefined reference to `squeue_create'
events.o(.text+0x1cc):/usr/home/sha/pakets/nagios/base/events.c:1379: undefined reference to `squeue_pop'
events.o(.text+0x1f3):/usr/home/sha/pakets/nagios/base/events.c:1391: undefined reference to `squeue_add_usec'
events.o(.text+0x20b):/usr/home/sha/pakets/nagios/base/events.c:1394: undefined reference to `squeue_add'
events.o(.text+0x234):/usr/home/sha/pakets/nagios/base/events.c:1397: undefined reference to `squeue_destroy'
events.o(.text+0x9e4): In function `add_event':
/usr/home/sha/pakets/nagios/base/events.c:866: undefined reference to `squeue_add_usec'
events.o(.text+0xa1b):/usr/home/sha/pakets/nagios/base/events.c:869: undefined reference to `squeue_add'
events.o(.text+0xbd5): In function `event_execution_loop':
/usr/home/sha/pakets/nagios/base/events.c:956: undefined reference to `squeue_peek'
events.o(.text+0x998): In function `remove_event':
/usr/home/sha/pakets/nagios/base/events.c:895: undefined reference to `squeue_remove'
utils.o(.text+0x9d0): In function `free_memory':
/usr/home/sha/pakets/nagios/base/utils.c:4002: undefined reference to `squeue_destroy'
*** Error code 1
Stop in /usr/home/sha/pakets/nagios/base.
*** Error code 1
Stop in /usr/home/sha/pakets/nagios.user# pkg_info | grep gd
Code: Select all
apr-devrandom-gdbm-db42-1.4.5.1.3.12_1 Apache Portability Library
eggdbus-0.6_1 D-Bus bindings for GObject
gd-2.0.35_7,1 A graphics library for fast creation of images
gdbm-1.9.1 The GNU database manager
gdk-pixbuf-2.23.5_2 A graphic library for GTK+
Code: Select all
png-1.4.11 Library for manipulating PNG images
scr2png-1.2_4 Converts the output of "vidcontrol -p" to PNGCode: Select all
jpeg-8_3 IJG's jpeg compression utilitiesPlease tell me what is the problem???