Bug 47873

Summary: <buildin nagios plugins fails
Product: Ports & Packages Reporter: clb <clb>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description clb 2003-02-03 22:10:09 UTC
	<Makefile for nagios fails when trying to build the plugins.  
===>  Building for nagios-plugins-1.3.0.b2
Making all in plugins
gmake[1]: Entering directory `/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0-beta2/plugins'
cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include     -O -pipe  -c check_mysql.c
check_mysql.c:24: mysql/mysql.h: No such file or directory
check_mysql.c:25: mysql/errmsg.h: No such file or directory
check_mysql.c:31: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:43: syntax error before `mysql'
check_mysql.c:50: `mysql' undeclared (first use in this function)
check_mysql.c:50: (Each undeclared identifier is reported only once
check_mysql.c:50: for each function it appears in.)
check_mysql.c:56: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:61: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:66: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:71: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:76: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:89: warning: passing arg 2 of `sprintf' makes pointer from integer without a cast
check_mysql.c:94: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:99: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:104: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c: In function `print_help':
check_mysql.c:256: `MYSQL_PORT' undeclared (first use in this function)
gmake[1]: *** [check_mysql.o] Error 1
gmake[1]: Leaving directory `/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0-beta2/plugins'
gmake: *** [all-recursive] Error 1
*** Error code 2

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

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

Stop in /usr/ports/net/nagios.

===>  Building for nagios-plugins-1.3.0.b2
Making all in plugins
gmake[1]: Entering directory `/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0-beta2/plugins'
cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include     -O -pipe  -c check_mysql.c
check_mysql.c:24: mysql/mysql.h: No such file or directory
check_mysql.c:25: mysql/errmsg.h: No such file or directory
check_mysql.c:31: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:43: syntax error before `mysql'
check_mysql.c:50: `mysql' undeclared (first use in this function)
check_mysql.c:50: (Each undeclared identifier is reported only once
check_mysql.c:50: for each function it appears in.)
check_mysql.c:56: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:61: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:66: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:71: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:76: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:89: warning: passing arg 2 of `sprintf' makes pointer from integer without a cast
check_mysql.c:94: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:99: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:104: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c: In function `print_help':
check_mysql.c:256: `MYSQL_PORT' undeclared (first use in this function)
gmake[1]: *** [check_mysql.o] Error 1
gmake[1]: Leaving directory `/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0-beta2/plugins'
gmake: *** [all-recursive] Error 1
*** Error code 2

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

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

Stop in /usr/ports/net/nagios.

>

How-To-Repeat: 	<make install clean in /usr/ports/net/nagios>
Comment 1 blaz 2003-03-06 22:01:49 UTC
This sounds like a broken MySQL installation is on your system.
Comment 2 Mathieu Arnold 2003-04-25 17:04:43 UTC
As the compile line is :
cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include     -O
-pipe  -c check_mysql.c

which does not include ${PREFIX}/include, it cannot really be a mysql
problem, but more a nagios-plugins problem...

-- 
Mathieu Arnold
Comment 3 blaz 2003-04-25 20:07:21 UTC
I can not reproduce this problem. Please retry with the latest
nagios-plugins port and send me the output of pkg_info.
Comment 4 clb 2003-05-04 22:50:53 UTC
pkg_info output

XFree86-libraries-4.3.0_1 XFree86-4 libraries and headers
acid-0.9.6b23       Analysis Console for Intrusion Databases (ACID) 
with Snort
adodb-2.50          A database library for PHP4
apache-1.3.27_4     The extremely popular Apache http server.  Very 
fast, very
autoconf213-2.13.000227_5 Automatically configure source code on many 
Un*x platforms
automake14-1.4.5_9  GNU Standards-compliant Makefile generator (legacy 
version
bash-2.05b.004      The GNU Bourne Again Shell
cvsup-without-gui-16.1g General network file distribution system 
optimized for CVS
elm-2.5.6           A once-popular mail user agent, version 2.5.x
expat-1.95.6_1      XML 1.0 parser written in C
expect-5.38.0_1     A sophisticated scripter based on tcl/tk
ezm3-1.0            Easier, more portable Modula-3 distribution for 
building CV
fontconfig-2.2.0    An XML-based font configuration API for X Windows
fping-2.4b2         Quickly ping N hosts w/o flooding the network
freetype2-2.1.4_1   A free and portable TrueType font rendering engine
gd-1.8.4_6          A graphics library for fast image creation
gettext-0.11.5_1    GNU gettext package
gmake-3.80          GNU version of 'make' utility
imake-4.3.0         Imake and other utilities from XFree86
ispell-3.2.06_3     An interactive spelling checker for multiple 
languages
jpeg-6b_1           IJG's jpeg compression utilities
jpgraph-1.12.1      Draw both "quick and dirty" graphs with a minimum 
of code
libgnugetopt-1.2    GNU getopt library
libiconv-1.8_2      A character set conversion library
libtool-1.3.4_4     Generic shared library support script
lrzsz-0.12.20       Receive/Send files via X/Y/ZMODEM protocol.  
(unrestrictive
m4-1.4_1            GNU m4
minicom-2.00.0      An MS-DOS Telix serial communication program 
"workalike"
mod_php4-4.3.1      PHP4 module for Apache
mysql-client-3.23.56 Multithreaded SQL database (client)
mysql-server-3.23.56 Multithreaded SQL database (server)
net-snmp-5.0.8_1    An extendable SNMP implementation
nmap-3.25           Port scanning utility for large networks
nut-1.2.1           Network UPS Tools
p5-CGI.pm-2.91,1    Simple Common Gateway Interface Class for Perl
p5-Crypt-DES-2.03   Perl5 interface to DES block cipher
p5-DBI-1.34_1       The perl5 Database Interface.  Required for DBD::* 
modules
p5-Data-ShowTable-3.3 Perl5 module to pretty-print arrays of data
p5-Digest-HMAC-1.01 Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-MD5-2.22  Perl5 interface to the MD5 algorithm
p5-Digest-SHA1-2.02 Perl interface to the SHA-1 Algorithm
p5-File-Spec-0.82   A Perl module for portably manipulating file 
specifications
p5-LockFile-Simple-0.2.5 Perl module implementing simple file locking
p5-Mysql-modules-1.2219 Perl5 modules for accessing MySQL databases
p5-Net-Daemon-0.36  Perl5 extension for portable daemons
p5-Net-SNMP-4.0.3_1 A perl module for SNMP... Net::SNMP
p5-PlRPC-0.2016     Perl module for writing RPC servers and clients
p5-Storable-2.06    Persistency for perl data structures
p5-Test-Harness-2.26 Run perl standard test scripts with statistics
p5-Test-Simple-0.47_1 Basic utilities for writing tests in perl
perl-5.6.1_13       Practical Extraction and Report Language
phplot-4.4.6        A PHP class for creating scientific and business 
charts
pkgconfig-0.15.0    An utility used to retrieve information about 
installed lib
png-1.2.5_2         Library for manipulating PNG images
rancid-2.2.2_1      Really Awesome New Cisco confIg Differ
sex-1.0_1           Spouts silly mad-lib-style porn-like text
snort-2.0.0         Lightweight network intrusion detection system
tcl-8.3.5_2         Tool Command Language
tk-8.3.5_1          Graphical toolkit for TCL
wget-1.8.2_3        Retrieve files from the Net via HTTP and FTP



When building Nagios, on the "NetSaint plugins configuration options" 
menu, I chose Fping, NetSNMP. and MySQL.

(MySQL is installed and running successfully with Snort and ACID)

Here's a log of the terminal session:


Shutting down connection to server
Finished successfully
wumpus# cd /usr/ports/net/nagios
wumpus# make install
===>  Extracting for nagios-1.0_1
 >> Checksum OK for nagios-1.0.tar.gz.
===>  Patching for nagios-1.0_1
===>  Applying FreeBSD patches for nagios-1.0_1
===>   nagios-1.0_1 depends on shared library: gd.2 - found
===>   nagios-1.0_1 depends on shared library: gnugetopt.1 - found
===>  Configuring for nagios-1.0_1
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g 
wheel
checking for gcc... cc
checking whether the C compiler (cc -O -pipe  -I/usr/local/include ) 
works... yes
checking whether the C compiler (cc -O -pipe  -I/usr/local/include ) is 
a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking whether make sets ${MAKE}... yes
checking for strip... /usr/bin/strip
checking how to run the C preprocessor... cc -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 ctype.h... yes
checking for dirent.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for getopt.h... yes
checking for grp.h... yes
checking for limits.h... yes
checking for math.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for strings.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for uio.h... no
checking for sys/types.h... yes
checking for sys/time.h... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking for sys/stat.h... yes
checking for sys/ipc.h... yes
checking for sys/msg.h... yes
checking for working const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... 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 strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for type of socket size... size_t
checking for mail... /usr/bin/mail
Init script directory:  /usr/local/etc/rc.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 gdImagePng in -lgd (order 1)... yes
GD library was found!
checking for traceroute... /usr/sbin/traceroute
checking for snprintf... yes
checking for type va_list... yes
checking for perl... /usr/bin/perl
updating cache ./config.cache
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
creating common/snprintf.h
creating base/nagios.h
creating cgi/cgiutils.h

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


*** Configuration summary for nagios 1.0 11-24-2002 ***:

  General Options:
  -------------------------
         Nagios executable:  nagios
         Nagios user/group:  nagios,nagios
        Command user/group:  nagios,www
             Embedded Perl:  no
         Install ${prefix}:  /usr/local
                 Lock file:  /var/spool/nagios/nagios.lock
            Init directory:  /usr/local/etc/rc.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.

===>  Building for nagios-1.0_1
cd ./base && make
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c checks.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c config.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c commands.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c flapping.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c logging.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c notifications.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c sehandlers.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c utils.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c sretention.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -c perfdata.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCORE -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt 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
cd ./cgi && make
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -c getcgi.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -c cgiutils.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -c auth.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -c popen.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt avail.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c -o avail.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt cmd.c  getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c 
../common/downtime.c ../xdata/xdddefault.c -o cmd.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt config.c  getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c -o config.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -c edata.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt extinfo.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c 
edata.o ../xdata/xedtemplate.c ../common/downtime.c 
../xdata/xdddefault.c -o extinfo.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -c lifo.c
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt history.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c lifo.o -o history.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt notifications.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c lifo.o -o notifications.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt outages.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c -o 
outages.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt showlog.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c lifo.o -o showlog.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt status.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c 
edata.o ../xdata/xedtemplate.c -o status.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt statuswml.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c -o statuswml.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt summary.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c -o summary.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt tac.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c 
edata.o ../xdata/xedtemplate.c -o tac.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt statuswrl.c getcgi.o cgiutils.o auth.o popen.o  
../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c 
../xdata/xsddefault.c -lm edata.o ../xdata/xedtemplate.c -o 
statuswrl.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt 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
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt trends.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 -o trends.cgi
cc -O -pipe  -I/usr/local/include -I/usr/local/include/gd 
-DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -L/usr/local/lib -lgd 
-lgnugetopt histogram.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 -o histogram.cgi
cd ./html && make

*** Compile finished ***

If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

   make install
      - This installs the main program, CGIs, and HTML files

   make install-init
      - This installs the init script in /usr/local/etc/rc.d

   make install-commandmode
      - This installs and configures permissions on the
        directory for holding the external command file

   make install-config
      - This installs *SAMPLE* config files in /usr/local/etc/nagios
        You'll have to modify these sample files before you can
        use Nagios.  Read the HTML documentation for more info
        on doing this.  Pay particular attention to the docs on
        object configuration files, as they determine what/how
        things get monitored!


*** Support Notes *******************************************

If you have questions about configuring or running Nagios,
please make sure that you:

      - Look at the sample config files
      - Read the HTML documentation
      - Read the FAQs online at http://www.nagios.org/faqs

before you post a question to one of the mailing lists.
Also make sure to include pertinent information that could
help others help you.  This might include:

      - What version of Nagios you are using
      - What version of the plugins you are using
      - Relevant snippets from your config files
      - Relevant error messages from the Nagios log file

For those of you who are interested in contract support or
consulting services for Nagios, please visit:

        http://www.nagios.org/contractsupport

*************************************************************

Enjoy.

===>  Installing for nagios-1.0_1
===>   nagios-1.0_1 depends on file: 
/usr/local/libexec/nagios/check_nagios - not found
===>    Verifying install for /usr/local/libexec/nagios/check_nagios in 
/usr/ports/net/nagios-plugins
===>  Building for nagios-plugins-1.3.0
Making all in lib
gmake[1]: Entering directory 
`/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0/lib'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory 
`/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0/lib'
Making all in plugins
gmake[1]: Entering directory 
`/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0/plugins'
cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib   
-I/usr/include     -O -pipe  -c check_mysql.c
check_mysql.c:24: mysql/mysql.h: No such file or directory
check_mysql.c:25: mysql/errmsg.h: No such file or directory
check_mysql.c:31: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:42: syntax error before `mysql'
check_mysql.c:49: `mysql' undeclared (first use in this function)
check_mysql.c:49: (Each undeclared identifier is reported only once
check_mysql.c:49: for each function it appears in.)
check_mysql.c:55: `CR_UNKNOWN_HOST' undeclared (first use in this 
function)
check_mysql.c:60: `CR_VERSION_ERROR' undeclared (first use in this 
function)
check_mysql.c:65: `CR_OUT_OF_MEMORY' undeclared (first use in this 
function)
check_mysql.c:70: `CR_IPSOCK_ERROR' undeclared (first use in this 
function)
check_mysql.c:75: `CR_SOCKET_CREATE_ERROR' undeclared (first use in 
this function)
check_mysql.c:88: warning: passing arg 2 of `sprintf' makes pointer 
from integer without a cast
check_mysql.c:93: `CR_SERVER_GONE_ERROR' undeclared (first use in this 
function)
check_mysql.c:98: `CR_SERVER_LOST' undeclared (first use in this 
function)
check_mysql.c:103: `CR_UNKNOWN_ERROR' undeclared (first use in this 
function)
check_mysql.c: In function `print_help':
check_mysql.c:256: `MYSQL_PORT' undeclared (first use in this function)
gmake[1]: *** [check_mysql.o] Error 1
gmake[1]: Leaving directory 
`/usr/ports/net/nagios-plugins/work/nagios-plugins-1.3.0/plugins'
gmake: *** [all-recursive] Error 1
*** Error code 2

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

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

Stop in /usr/ports/net/nagios.
wumpus#



On Friday, April 25, 2003, at 02:07  PM, Blaz Zupan wrote:

> I can not reproduce this problem. Please retry with the latest
> nagios-plugins port and send me the output of pkg_info.
>
>
>
Comment 5 Blaz Zupan 2003-05-06 18:07:55 UTC
You have some cruft left in /usr/ports/net/nagios-plugins, probably from some
earlier partial build. Looking at your compile output:

> ===>  Installing for nagios-1.0_1
> ===>   nagios-1.0_1 depends on file:
> /usr/local/libexec/nagios/check_nagios - not found

Ok, so nagios is being installed. It depends on nagios-plugins, so we are now
trying to compile that:

> ===>    Verifying install for /usr/local/libexec/nagios/check_nagios in
> /usr/ports/net/nagios-plugins
> ===>  Building for nagios-plugins-1.3.0

Huh? We went straight to building nagios-plugins. We're missing the configure
and patch stage. Go to /usr/ports/net/nagios-plugins and do a "make clean" or
simply remove the /usr/ports/net/nagios-plugins/work directory together with
its contents and the port should compile jsut fine.
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2003-05-19 20:38:57 UTC
State Changed
From-To: open->closed

Submitter had stale files in a dependencies work dir.